From ab3e92268af030e68f6ae8f493d92774a6e8d920 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 7 Sep 2026 21:07:39 +0100 Subject: [PATCH] v0.6.1: pin Keep/Deleted folders to sidebar bottom; highlight All sources - Move the Keep/Deleted system folders out of the scrolling source list into a pinned section at the bottom of the sidebar (only sources scroll now), so the folders stay reachable with many sources. Renamed .source-folders -> .system-folders; .source-list flexes to fill. - "All sources" is visually distinct (bold + subtle blue tint) as the primary entry. Template/CSS only. Feed/trash rendering tests pass; feed renders in all views. Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 12 +++++++++++- daybook_project/__init__.py | 2 +- static/agentfeed.css | 26 +++++++++++++++++++++---- templates/artifacts/feed.html | 36 +++++++++++++++++------------------ 4 files changed, 52 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46204aa..1d6c6c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,15 @@ former name, "Daybook".) _Nothing yet._ +## [0.6.1] — 2026-09-07 + +### Changed +- Sidebar: the **Keep / Deleted folders are pinned to the bottom** — only the + source list scrolls, so the folders stay reachable no matter how many sources + you have. **"All sources"** is now visually distinct (bold + subtle blue tint) + as the primary entry. (Internal: `.source-folders` class renamed to + `.system-folders`.) + ## [0.6.0] — 2026-09-07 ### Added @@ -205,7 +214,8 @@ First tagged release. - Dockerised (Gunicorn + whitenoise), SQLite, `git`-based deploy with a runbook (`deploy/cloud_agent_deploy.md`) and health check. -[Unreleased]: https://git.cygnus.systems/peter/daybook/compare/v0.6.0...HEAD +[Unreleased]: https://git.cygnus.systems/peter/daybook/compare/v0.6.1...HEAD +[0.6.1]: https://git.cygnus.systems/peter/daybook/compare/v0.6.0...v0.6.1 [0.6.0]: https://git.cygnus.systems/peter/daybook/compare/v0.5.1...v0.6.0 [0.5.1]: https://git.cygnus.systems/peter/daybook/compare/v0.5.0...v0.5.1 [0.5.0]: https://git.cygnus.systems/peter/daybook/compare/v0.4.1...v0.5.0 diff --git a/daybook_project/__init__.py b/daybook_project/__init__.py index 2d6a887..6227cb2 100644 --- a/daybook_project/__init__.py +++ b/daybook_project/__init__.py @@ -1,4 +1,4 @@ # Single source of truth for the app version. Bump this, commit, then tag the # commit `vX.Y.Z` and deploy. Surfaced on Settings -> About and in # GET /api/capabilities ("version"). -__version__ = "0.6.0" +__version__ = "0.6.1" diff --git a/static/agentfeed.css b/static/agentfeed.css index aa0626e..d282868 100644 --- a/static/agentfeed.css +++ b/static/agentfeed.css @@ -360,6 +360,7 @@ h1 { /* Source sidebar: scrollbar hidden until hover (short list, rarely scrolls). */ .source-list { + flex: 1 1 auto; /* fill available height so system folders pin to the bottom */ scrollbar-color: transparent transparent; scrollbar-width: none; } @@ -1131,11 +1132,28 @@ kbd { color: var(--danger-text-plain); } -/* System folders (Keep / Deleted) at the bottom of the sidebar */ -.source-folders { +/* System folders (Keep / Deleted): pinned at the bottom of the sidebar, + below the scrolling source list. */ +.system-folders { border-top: 1px solid var(--grid-line); - margin-top: 0.4rem; - padding-top: 0.4rem; + display: flex; + flex-direction: column; + flex-shrink: 0; + padding: 0.4rem 0.6rem 0.2rem; +} + +/* "All sources" — the primary entry, visually distinct from individual sources: + bold, with a subtle blue tint (works over both light and dark surfaces). */ +.all-sources-link { + font-weight: 600; +} + +.all-sources-link:not(.selected) { + background: rgba(74, 110, 168, 0.14); +} + +.all-sources-link:not(.selected):hover { + background: rgba(74, 110, 168, 0.22); } .empty-trash-button { diff --git a/templates/artifacts/feed.html b/templates/artifacts/feed.html index 95e8659..54b3d20 100644 --- a/templates/artifacts/feed.html +++ b/templates/artifacts/feed.html @@ -35,7 +35,7 @@

Sources

+ + {% if keep_count or trash_count %} + + {% endif %}