Sidebar (web/components/sidebar.tsx) reorganized to the requested structure:
Quick find at the top; a Pages group (All Pages tree with the existing
rename/reorder/pin/subpage/delete interactions, Pinned Pages, Untagged
Pages); a Bookmarks group (All Bookmarks, Calendar, and expandable carets
for Tags / Kanban / Collections / Contacts listing their entities with
deep-links /tags?tag=, /kanban?column=, /collections?id=, /contacts?open=);
Trash at the bottom. Collapsed desktop rail is a flat icon list; the mobile
drawer shows the full grouped nav.
Page tagging (new): PageTag join (migration 023 + schema.sql, db-converge
proven), POST/DELETE /api/pages/{id}/tags with owner-or-TagShare validation
(same rule as bookmark tags), tags exposed in the page list/detail
projections so the sidebar can compute the untagged subset. Tagging is
metadata (no content-version bump) and cascades on page/tag delete.
Dragging a page from Untagged Pages onto a tag assigns it (custom drag MIME
keeps it distinct from page reorder).
Kanban: only explicitly-placed cards render (no auto-populate of unassigned
bookmarks); the sidebar caret lists the existing columns and ?column=
scrolls/rings the target. e2e updated to assert no-auto-populate then place
the card explicitly.
All Bookmarks: a Group by selector (None/Calendar/Tags/Kanban/Collections/
Contacts) rendering grouped sections via shared row/card renderers; the
default None path is byte-identical to before (205-row table, same keys).
Collections grouping fetches membership once, sequence-guarded.
Calendar: Day/Week/Month/Year/List views (Month default), adaptive
prev/next + Today, date-sorted list; SSR-safe (date-fns only, post-mount
today), internal overflow containers so no page-level horizontal scroll.
Deep-link page wrappers for kanban/collections/contacts pass searchParams
into the clients' initial selection.
Test gate: the -race internal/http suite now exceeds the default 10m go
test timeout (~14m cold-cache), so the tests service and Makefile test
target use -timeout 30m; the suite passes in full.
Verified: regressions 20/20, real-stack e2e all pass, lint/SSR-lint/build
0 errors, db-converge green, full Go integration suite green; browser
checks of the grouped sidebar, drag-to-tag, bookmark group-by and every
calendar view show correct rendering with no horizontal overflow.
The UI was desktop-first: no viewport meta (phones rendered at ~980px CSS
width, killing every breakpoint), an always-inline 240px sidebar squeezing
phone content, fixed p-6/100vh chrome, a 6-column bookmarks table, fixed
w-60/w-72 rails on collections/tags/contacts, a 12-tab settings strip that
overflowed, and w-72 kanban columns. This pass makes every screen usable on
a phone while leaving the desktop layout intact.
- layout.tsx: viewport meta (width=device-width, initial-scale=1).
- app-shell/sidebar: below lg the sidebar is an overlay drawer (closed by
default, hamburger opens, backdrop/navigation/resize-to-desktop closes);
at lg+ it is the static expand/collapse rail exactly as before. Separate
mobileOpen state so closing the drawer never collapses the desktop rail.
h-screen -> h-dvh; main p-6 -> p-3 sm:p-6.
- lib/use-media-query.ts: hydration-safe useSyncExternalStore media hook
(server snapshot false) so surfaces swap whole layouts without duplicating
hidden DOM that would break the suites' strict text locators.
- bookmarks: table swaps to tappable cards below sm (title/host/status/tags/
updated + open/trash); shared trash handler; detail sheet unchanged.
- collections/tags/contacts: rails become master-detail on phones — full-width
list first, tap into detail, Back returns; collections no longer auto-jump
into the first item on mobile; phone padding.
- settings: tab strip scrolls horizontally (triggers shrink-0) instead of
overflowing the page.
- kanban/collection boards: columns w-[85vw] max-w-72/64 with a peek of the
next column; dvh heights.
- calendar: compact cells + single-letter weekday headers on phones.
- ui/dialog: max-h-[calc(100dvh-2rem)] + internal scroll + phone width guard
so tall forms never clip; ui/tabs triggers shrink-0.
- top-bar: alerts panel fits 320px; theme/avatar collapse on the smallest
widths; hamburger gains an accessible name.
- connector settings (MCP/WebDAV/CalDAV/CardDAV): connection rows wrap and the
name gets a width floor — the action cluster previously squeezed the name to
zero width on phones (a real bug the new mobile test caught).
Verification: new mobile regression suite (390x844 context) proves drawer
open/close-on-nav, bookmark cards + sheet, tags master-detail + Back,
scrollable settings tabs reaching WebDAV, kanban column fits, and zero
horizontal overflow on all eight screens; all 19 existing desktop tests still
pass (20/20). Real-stack e2e fully passing. yarn lint / SSR eslint / build:
0 errors.
Baked at image build time: web/Dockerfile takes ARG SUPERBRAIN_VERSION
(default dev) into NEXT_PUBLIC_SUPERBRAIN_VERSION; the release workflow
passes the tag, README Option B gains the matching --build-arg, and local
compose builds show 'dev build'. Rendered muted under the sidebar footer
when expanded, so any deployment can be identified from the UI alone.
High severity:
- wire TRUSTED_PROXY through Compose/deploy/docs and warn at web startup
- bucket public rate limits on effective client IP, add per-bookmark budget,
and forward the signed browser identity from the share page
- disable first-run bootstrap in server deployments and document seeding
- serialize last-admin demotion in one advisory-locked transaction
Medium/low:
- cap and batch share recipient inserts
- add a shared outbound budget for preview/CardDAV/IMAP/signal work
- pin CardDAV dials to 443 and bound IMAP logout
- fix rightward kanban column drags and normalize cards on column delete
- classify backend outages in auth guards, add request timeouts and an
error boundary, remove the dead login route, surface throttling
- enforce pinned/unpinned page reorder grouping server-side
- avoid preview work for stale bookmark versions; drop duplicate dialog fetch
- sequence-guard collection/tag/calendar/quick-find loads
- validate property config and fix MULTI_SELECT/DATE filter inputs
- document index maintenance; apply same-origin check to sign-out
- trim signup names, unique shared dates and kanban keys (migration 010),
reset reference cache on identity changes, hide OIDC issuer, return 413
for oversized direct bodies, escape Markdown link destinations
- remove dead template files and duplicate test helper
Verified with go build/vet, full PostgreSQL race suite, db convergence,
tsc, both ESLint configs and a Next production build.
Implement Notion-like upgrade phase 3: owner-scoped nested pages with cycle rejection and child promotion on delete; Markdown-derived internal links and backlinks; live collection embeds resolved in the content-save transaction. Add migration 008, API/docs, integration coverage, and page/sidebar UI.