Repository navigation
Conversation
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
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.
Every tab read
openproj — table, so two plans open side by side were two rows of identical tabs, and every record page readopenproj — detail.nameandcolourinconfig/defaults.yamlnow title each page asTable · 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
viewsandkinds, so a bad value (an unquotedcolour: #e08a1eis a YAML comment) costs that setting and is said in the banner.openproj initnames a new plan after its directory.tests/js/drive.jsnow hasdocument.titleandlocation.hashas a browser does.🤖 Written by an agent on behalf of @jcanton