Conversation
Split base.html into a bare shell + site_base.html (body.app — claim banner, header strip, white content card, page-list sidebar, footer) + main_base.html (body.site — logo, gray body, blue-link nav). Every content template extends one of the two layout bases; partials that used to inline header/sidebar/claim-banner are dropped. Rewrote tokens/reset/base/components/utilities to match the 2007 look: #f0f0ee panel, white content card with #ddd border, 60px left gutter + 200px right sidebar at ≥768px, dateline footer with grey button-style history/edit links, yellow "That was easy!" primer. Wired the /site/hide-primer POST endpoint to flip sites.show_primer=false and redirect home. Dropped the redundant "Home" h1 on view_page; the dateline now carries page actions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Restructured admin_settings (title, subtitle, site address, password, email, kind-of-site) into the .settings table with label / input / explain columns separated by #ddd dividers, matching 2007. Nested .security radio table inside the "Kind of site" row. admin_change_password / admin_change_site_address / admin_delete get plain h1 + form-actions row (Save + red Cancel link). admin_design splits into Fonts / Colors / Sizes / Background sub-tables sharing the .settings layout. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Added dialog_base.html — body.dialog-page, no site chrome, just a white card centered on the gray panel. signin / claim_site / forgot_password / change_password switch from site_base.html to dialog_base.html. claim_site uses the .settings 3-column table for password / email / kind-of-site, matching the 2007 #claim_dialog layout. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Cleaner edit chrome inside the standard site_base.html: full-width monospace textarea, "Editing: PAGE_NAME" h1 with the page name in maroon (2007 #content h1 .page_name color), Save / red Cancel / Delete action row. Live preview/help pane is M9 (JS) work. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drop the redundant <article><header> wrappers from inside .site-content (it's already an article) — h1 + body content sit directly. Swap .empty / .deleted classes for the shared .text-muted utility, and use 2007 ids (#diff, #changes, #revisions) so the legacy id-targeted CSS hooks line up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pyright flagged conn.execute on Optional[Connection]; mirror the other admin/site views and abort(500) when the request-scoped engine isn't set. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port jottit's CSS to faithfully reproduce the 2007 look on our modern HTML.
Sub-steps (one commit each):
Test plan
🤖 Generated with Claude Code