Repository navigation
Priority and status are picked from the chips they are drawn as - #294
Merged
Merged
Conversation
The mark was one block character per rung. Inter has no Block Elements, so every one was drawn by a fallback font: a solid rectangle beside the word, and a height difference between neighbouring rungs that nobody could count. Now it is a meter of five bars rising left to right, all of them always drawn, the rung's level lit in its colour and the rest a track. Side by side rather than stacked, because a rising row is the signal meter everybody already reads and five stacked bars do not fit a line of text without being hairlines. `priority_bars` draws it once in Python and the browser picks the same markup out of the shell by key. The graph's cards draw it from the same geometry, and the places that can only hold text (`<option>`s and a graph box's name) write it as filled and empty rectangles. The track sits half way between `--line` and `--line-strong`. `--line-strong` alone is 1.05:1 against the light theme's green rung, and `--line` alone is 1.29:1 against the dark page. 🤖 Written by an agent on behalf of @jcanton
The text meter `▮▮▮▯▯` that stood in for the bars where only a string fits was in no face the page carries, made a graph box's name spill over its box, and made an open dropdown twice the width of the closed one. A select whose options are priorities is now Chrome's customizable select (`select.prisel`, `appearance: base-select`): each option holds the real `priority_bars` SVG and the word, and the closed control shows them through `<selectedcontent>`. A browser without it parses a select the old way, dropping every tag inside an option and keeping the text, so it shows the word and nothing else. The rules sit in the shell because the selects are on three pages, and they match `select.prisel` only. The filter bar's priority checkboxes carry the meter too, and the SVG colours itself by `data-rung`. The table's cell editor closed itself on blur, and an open customizable select blurs: focus moves onto one of its own options, and from the keyboard it blurs with no relatedTarget before the list is open. Focus moving into the control is no longer leaving it, the key that opens the list excuses the blur it causes, leaving from inside the list closes the editor, and Enter and Escape in an open list are the list's. A graph box's name is canvas text, so there the meter is one glyph per rung in Private Use Area codepoints, drawn by our own 1.3 KB face, built by `tools/meter_font.py` with fontTools (dev group only) and inlined as a data: URI with `unicode-range` holding it to its five codepoints. Lit bars are solid and unlit ones stubs, since canvas text is one colour. The first layout waits for the face, and a box's name gains its meter only once the face is here, because cytoscape keeps a drawn label and a restyle with the same font never redraws it. Not a Nerd Font: there is no official Nerd Font patch of Inter, their signal glyphs stop at three or four levels where the ladder has five, a patched face is 2 to 3 MB per weight, and native macOS select popups ignore web fonts anyway. 🤖 Written by an agent on behalf of @jcanton
…s too Firefox draws a priority option as its text alone, so the closed control said only the word. Firefox 160 keeps the SVG inside the option in the DOM and draws none of it, which corrects what the comments said (that the tags are dropped by the parser). Its closed control now gets the meter from the select's own background: one linear-gradient per bar from `PRIORITY_BARS`, coloured by the theme's `--pri-*` tokens and `--pri-track`, picked by a `data-rung` attribute that the shell keeps current on `change`. It is gated by `@supports not (appearance: base-select)`, so Chrome still draws the SVG and never both. The background longhands and the left padding are `!important` because pages dress their selects with the `background` shorthand, and `#bets select.pick` (1,1,1) on the cycle page erased it. Not a glyph from the meter face. The closed control shows the chosen option's text, and that text is also what the open list draws. Firefox draws that list in its parent process, where page fonts do not exist (bug 1576820, open since 2019), and Safari and Chrome without base-select draw a native menu. A meter glyph there is the platform's unknown-glyph box. So the open list stays the word in those browsers. The edit card's priority (right-click, Edit) was the one priority select still built as words. It is a customizable select like the others now. `popOpenField` assigned `className`, which wiped the `prisel` class, and its Enter took the field from inside an open list before the pick landed. The list also takes the app's type rather than the chip's capitals. 🤖 Written by an agent on behalf of @jcanton
A select's open list is drawn where the meter cannot go: Firefox draws it in its parent process without the page's fonts, and jcanton saw `[?]` boxes there on the tofu check, and Safari draws a native menu. So every place a priority was a select is now one component: a button showing the meter and the word, opening a list the page draws, with the `priority_bars` SVG and the word on every row, in every browser. One markup, `priority_picker` in `tokens.py`, rendered by the record page (edit, split and create), the cycle page, and the shell's `<template>` that the table's cell editor and the edit card clone. One controller in the shell, delegated from the document, built on the People page's icon picker (button, `role="listbox"`, `aria-activedescendant`), with the list hung off the body as the right-click menu is, so the table's scroll box and the edit card do not clip it, and placed inside the viewport, a phone's included. The button is what the select was to every page that reads one: a `name`, a `value`, `data-type="text"`, labelable and disableable. A pick writes `value` and fires `input` and `change`, so the record page's dirty state, the cycle page's staging and the edit card's chip answer as they did. A `MutationObserver` on `value` redraws the face whoever writes it, Reset included. Focus stays on the button while the list is open (the select-only combobox pattern), so the table's blur-to-commit sees no blur while somebody picks, and the keys are taken in the capture phase while it is open, so no page's Enter, Escape or arrows act on a key the list answered. Dead and removed with it: the base-select styling, the `@supports not` gradient fallback and its `data-rung` listener, the table editor's customizable-select focus workarounds, and the edit card's `:open` guard. The cycle page sorted priority by `selectedIndex`, which a button does not have, and now reads the rung from the list. 🤖 Written by an agent on behalf of @jcanton
… states The table's status cell still opened a native select, and in a column sized to its chip "↘ In progress ⌄" spilled out of the cell. The picker is generalised rather than copied: `rung_picker` and `rung_chip` build it for either field, one shell controller is parameterised by the field its button names, and each field has one list on the page. A button carries what its record's kind accepts (`data-offers`), so an issue is offered its four statuses, as the select's options were. The table's cell editor, its draft row and bulk edits, the edit card and the cycle page pick both fields this way. The record page's status is the hill and stays the hill. The read chip, the closed button and the open list were three sizes, in three fonts and two cases, and the row grew when its cell went into edit. The button has no box of its own now: its face is the chip it replaces. Every chip that can become a picker reserves the chevron unseen, and so does every row of the list. Entering edit adds the chevron and a focus ring and moves nothing, measured in Chrome: the table's row stays 32.1px and the edit card stays the same height. Where chips stack (the table's columns, the picker and its list, the edit card) every chip of a field is as wide as that field's longest word, derived from the labels (`RUNG_WIDTH`), and the list's rows stand exactly under the button's chip. The pointer moves the row Enter would pick, with the keyboard's highlight. An open list shuts the hover card and keeps it shut, and the list stands above the card and the right-click menu. Dead with the selects: `optionFor`, the `mark()` template global, the betting table's `select.pick` dressing and the shell's generated `select.pick.st-*` rules. 🤖 Written by an agent on behalf of @jcanton
The right-click menu drilled into Status, Priority, Owner and New child in the same box and placed the new list again against the pointer, so in jcanton's screenshots a menu at y≈490 beside a node came back at y≈1070 over other nodes. A submenu now cascades: a second `role="menu"` beside the hovered or pressed item, its first item level with that item, flipped to the left where the right has no room, shifted up to stay inside the window. Opening it moves the parent by nothing, measured in Chrome on the table and the graph. It lives inside `#pop` and `position: fixed`, so it wears every item rule as it is and a press or a key inside it is a press or a key inside the menu. Resting on an item opens its list after 150ms, and the list survives the pointer crossing other items on its way over for 300ms, a delay in place of a safe triangle. A press opens it at once. ArrowRight and Enter open it and go into it, on the value held; ArrowLeft and Escape close only it and hand the keyboard back to its item; a second Escape closes the menu; Up and Down stay in the level the keyboard is in. The item carries `aria-haspopup="menu"` and `aria-expanded`. A refusal of a write made from the list is drawn at the top of the list and the menu beside it is not redrawn. Below `env.PHONE`, the app's one narrow breakpoint, there is no room to cascade into, and the drill-down stays, drawn where the box already is. The Status items were a black glyph and a word beside the Priority items' coloured meters. Both are now the rung's chip, the same one the picker's list draws and cloned from it (`rungChip`), at the vocabulary's width, with the current-value dot kept. Full chips rather than a coloured mark and word, so a rung looks the same wherever it is chosen, in the picker or in the menu. Their row takes the picker's accent tint rather than the menu's full accent fill, on which a priority chip, which has no ground of its own, could not be read. The timeline's menu is a reader's and has no submenus. 🤖 Written by an agent on behalf of @jcanton
* plan-name: Say where a plan's name and colour are set The nav and the footer are two bars of one surface The plan's mark is a link home, set off from the views by a rule A plan has a name and a colour, and every tab says which plan it is
* plan-name: Tests ask the nav for its views and its content edge
Real bug. The read chip in an editable cell reserves the picker's chevron so opening the editor moves nothing. In a tight column the word goes and the reserve stayed, so the priority chip hung 4px out of its cell (`test_a_column_too_narrow_for_its_word_keeps_its_mark`). 🤖 Written by an agent on behalf of @jcanton
Stale tests, all of them asserting the old `<select>` or the old markup: - `test_a_card_wears_both_its_marks_in_front_of_its_name` split a label the probe had already stripped of whitespace - `test_no_test_asks_a_page_for_a_tag_by_searching_its_text` caught a new `"<input"` search, now `pages.tags` - Four `test_pop` probes found no box in `input, select` and read `.options`, and New child opens a cascade beside the item rather than drilling - `test_lit_and_unlit_bars_differ_in_lightness_on_both_themes` and `test_every_icon_is_a_row_in_the_picker_with_its_name_beside_it` counted the shell's rung lists, which are on every page - `test_the_vendoring_note_covers_every_file_it_is_about` spelt the refresh command out and missed `*.ttf`; it reads the globs from the note now - Six `test_table` tests asked the select's markup or `input, select` - `test_the_badge_is_never_the_part_of_a_clamped_cell_that_gets_cut` measures at 1400 rather than 1280: the fixed rung widths and the reserved chevron cost 33px, which sheds the last clamped column with a badge on this corpus 🤖 Written by an agent on behalf of @jcanton
Stale tests. Three missed the priority picker because they only looked at `input, select, textarea`. Two counted the shell's rung lists, which are on every page, as the record's own status chip and the slide's meter. 🤖 Written by an agent on behalf of @jcanton
* plan-name: Measure the suite again, with the face tests in it
This was referenced Nov 24, 2026
Merged
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.
Stacked on #293.
The priority mark was a square character, and the native dropdowns that picked priority and status could only show words, or nothing at all: Firefox, Safari and native macOS menus draw an open list without the page's fonts. Priority is now five countable bars, the rung's number lit, the same meter on chips, cards, the graph legend, the right-click menu and (through a 1.3 KB generated font) the graph's group-box labels.
Every priority and status dropdown becomes one picker drawn by the page: a button that is the chip itself plus a chevron, opening a list of the same chips, in every browser. Chips in a stack are one width per vocabulary, derived from the labels, so entering edit changes nothing but the chevron (the table row stays 32.1px). The right-click menu opens its submenus beside it instead of replacing it, and keeps the in-place drill-in on a phone.
Given up compared with a native select: the phone's own picker wheel, and typing a letter on the closed control now opens the list on that row rather than changing the value.
🤖 Written by an agent on behalf of @jcanton