Commit Graph
17 Commits
Author SHA1 Message Date
magnusandClaude Opus 4.6 2000154c8a Display prices as total(spot) including N1 network tariff
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:26:07 +01:00
magnusandClaude Opus 4.6 d4fd3a7512 Add N1 network tariff data with season/hour-based lookup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:22:48 +01:00
magnusandClaude Opus 4.6 4d8d692dfc Hide Tomorrow tab when no data is available
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:15:32 +01:00
magnusandClaude Opus 4.6 99780ebf60 Show date on Today/Tomorrow tabs and remove table headings
Tabs now display the date (e.g. "Today 2026-02-14"). Removed redundant
"Today — DK1" / "Tomorrow — DK1" headings from the price tables.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:10:25 +01:00
magnusandClaude Opus 4.6 4ef693168c Fetch prices on page load and refresh on headline click
Remove the Refresh Prices button. Prices are fetched automatically on
page load, and clicking the headline triggers a re-fetch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:04:49 +01:00
magnusandClaude Opus 4.6 6b95a95ca6 Highlight active tab when switching between Today/Tomorrow
Swap the full tab panel on click so the active tab styling updates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 14:01:34 +01:00
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