You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add dropdown columns with colored options to tables
Tables can mark columns as dropdowns (like Notion's select property)
without leaving Markdown: the options live in the table directive and
cells keep the chosen option as plain text, so formulas, filters,
grouping and GitHub still see an ordinary value.
<!-- nodio:table options="Status: Todo, Doing=blue, Done=green" -->
- tables.rs: `options` attribute parsing/writing (`ColumnOption` with
an optional named color from OPTION_COLORS), per-column options on
TableBlock, `clean_option`, and `set_cell_text` (Rust twin of the
editor's setCellText). New table actions: `column_options` (set,
seed from the column's distinct values, or remove), `select_option`
(writes one cell; a new value is also appended to the options) and
`option_color`.
- markdown.rs: dropdown data cells render as `td.select` with a
`.nodio-tag` pill tinted by the option's color, else its position
(chart-1..8); values outside the options render as a muted tag.
TableInfo exposes the options to the UI.
- Preview: clicking a dropdown cell opens a picker to find, pick,
clear or add an option (works with editing in the preview off).
The column menu gains "Turn into dropdown" and a "Dropdown" submenu
with "Edit options…", per-option color swatches and "Remove
dropdown". Nested submenus now go back one level at a time.
- Theme: new `tag-<color>` tokens (gray, brown, orange, yellow, green,
blue, purple, pink, red) with light/dark built-ins; theme files may
override them, so a color name always means that hue.
- Mock backend, vitest and Playwright coverage, SPEC §8.3/§8.6/§10 and
the MCP syntax guide document the feature.