Commit Graph
11 Commits
Author SHA1 Message Date
magnusandClaude Opus 4.6 bca9da4639 Add tailwind target and auto-start system in make run
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 13:56:55 +01:00
magnusandClaude Opus 4.6 9e78275c83 Add Today/Tomorrow tabs for price display
HTMX-powered tabs switch between today's and tomorrow's prices without
full page reload. Today tab is active by default.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 13:42:52 +01:00
magnusandClaude Opus 4.6 4fc2f82fbb Split API fetch into separate requests per price area
One request per area (DK1, DK2) avoids hitting the 200-record limit
that was truncating tomorrow's data when both areas were fetched together.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 13:38:33 +01:00
magnusandClaude Opus 4.6 97a95684cf Skip existing prices on insert and add unique index on (time_dk, price_area)
Changed upsert to INSERT ON CONFLICT DO NOTHING so existing prices are
never overwritten. Added unique index on (time_dk, price_area) to enforce
no duplicate quarter-hour entries per area.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 13:14:28 +01:00
magnusandClaude Opus 4.6 9554e511ad Collapse quarter-hour details by default
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 12:57:24 +01:00
magnusandClaude Opus 4.6 7e7b28cf85 Group prices by hour with expandable quarter details and blue borders
Each hour shows as an open-by-default card with the average price and
indented quarter-hour rows. Added @source directive to Tailwind v4 input
so .clj files are scanned for utility classes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 12:51:07 +01:00
magnusandClaude Opus 4.6 c5ccada192 Fix URL encoding of JSON filter parameter in API request
URI/create rejects raw braces/brackets in query strings. URL-encode the
filter JSON so the request succeeds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 12:32:44 +01:00
magnusandClaude Opus 4.6 1b600ad8d4 Fetch and display day-ahead electricity spot prices from Energi Data Service
Adds a prices controller that fetches DK1/DK2 hourly spot prices via the
Energi Data Service API, stores them in PostgreSQL, and displays today's
and tomorrow's DK1 prices on the home page in øre/kWh. An HTMX "Refresh
Prices" button triggers the fetch-and-display cycle.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 12:23:40 +01:00
magnusandClaude Opus 4.6 07b442a579 Add CLAUDE.md with project architecture and development commands
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 12:03:38 +01:00
magnusandClaude Opus 4.6 c3b2efd68c Remove unused kit-mysql require from core.clj
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 11:50:12 +01:00
magnusandClaude Opus 4.6 c1f386ef44 Initial Kit project with PostgreSQL, HTMX, Hiccup, and Tailwind
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 11:45:09 +01:00