Skip to content

A plan has a name and a colour, and the nav and footer frame the page - #293

Merged
jcanton merged 6 commits into
mainfrom
plan-name
Nov 24, 2026
Merged

jcanton merged 6 commits into
mainfrom
plan-name

Conversation

@jcanton

@jcanton jcanton commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Every tab read openproj — table, so two plans open side by side were two rows of identical tabs, and every record page read openproj — detail. name and colour in config/defaults.yaml now title each page as Table · icon4py (a record page uses the record's title), tint the favicon, and start the nav with the plan's mark and name as a link home. The nav and the footer become two full-width bars of one surface.

Both keys are resolved like views and kinds, so a bad value (an unquoted colour: #e08a1e is a YAML comment) costs that setting and is said in the banner. openproj init names a new plan after its directory. tests/js/drive.js now has document.title and location.hash as a browser does.

🤖 Written by an agent on behalf of @jcanton

Every page was titled `openproj — table`, so two plans open side by side were
two rows of identical tabs, and every record page read `openproj — detail`.
`name` and `colour` in `config/defaults.yaml` now title each page as
`Table · icon4py` (the record's own title on a record page), tint the favicon,
and put the mark and the name at the start of the nav. Page first, because a tab
strip truncates from the right.

Both are resolved like `views` and `kinds`: `name: [a, b]` or an unquoted
`colour: #e08a1e` (a YAML comment) costs that setting and is said in the banner,
not the whole file. The colour is an allowlist of hex and `rgb()`, since it is
written into the favicon's SVG. `openproj init` names a new plan after its
directory.

`tests/js/drive.js` now answers `document.title` and `location.hash` as a
browser does. Without them the export's record page threw at load in the
harness, on lines no browser can throw on.

🤖 Written by an agent on behalf of @jcanton
jcanton, on seeing the mark in the nav: "instinctively I'd like to click it to
go to a home page (but it is not clickable)". It goes to Records, the page the
tool opens on, and a rule separates it from the views. The bar carries the
plan's colour as `--plan` for its own rules. Two tests that walked every nav
link now walk the views, which are the links that carry `data-keys`.

🤖 Written by an agent on behalf of @jcanton
jcanton chose the app-bar drawing of three, "but thinner": no stripe, no space
above it, and the footer filled with the same colour so the two read as one
frame. Both run edge to edge on --surface-2, the body's padding given back as
negative margin and taken again inside so each bar's first glyph stays on the
content's edge. The 2px under the footer on a filling page goes, since the
bar's own padding is now the descender room.

🤖 Written by an agent on behalf of @jcanton
🤖 Written by an agent on behalf of @jcanton
The nav opens with the plan's mark, a link home that is not a view, and is a
full-width bar whose links are inset by its padding. `nav_of` and the two
pointer checks now read the view links, and the editor's layout checks take the
nav's content box as the page's left edge. A page's first `<title>` is its own;
an SVG on it carries more.

🤖 Written by an agent on behalf of @jcanton
One serial run on CI (run 45440308136, the `measure` job): 2759 passed, and the
one failure was this table not yet knowing `tests/test_face.py`.

🤖 Written by an agent on behalf of @jcanton
jcanton added a commit that referenced this pull request Nov 24, 2026
One serial run on CI (run 45443561825, the `measure` job) over this branch,
which carries #293 as well: 2789 passed, and the one failure was this table not
yet knowing the new test files.

🤖 Written by an agent on behalf of @jcanton
@jcanton
jcanton merged commit 5568463 into main Nov 24, 2026
11 checks passed
@jcanton jcanton mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant