Conversation
…e category tree Five interface defects. The onboarding chips named a country without its flag, though the list beneath already drew one. `ComboboxItemData` gains an optional `prefix` that the chip renders ahead of the label; the chip's accessible name stays the plain country name. Switching periodicity moved the budget period arrows, because the label between them resized with its own text: 10px between 1M and 3M, 65px to 1Y. The trigger now reserves the widest month of the anchor year behind an invisible ghost row, so neither the arrows nor the label origin move on a range switch or a month step. `categoryColor` derives from the category's group instead of a hand-written table, so a section of the settings tree reads as one coloured family. A chart carries no glyph to tell two rows apart, so `categoryChartColor` shades the group colour into a ladder indexed by `categoriesInGroup`, mixing towards `--foreground` or `--background` so it inverts with the theme. `SankeyNode.color` therefore holds a resolved CSS colour rather than a `CategoryColor` token. The settings category list is one nested list with the sidebar's own indentation grammar: the guide rests on the group icon's centre and the rows sit past it. Its children used `pl-8`, which landed a child icon exactly where the group icon sat, so nothing read as nested. Built-in categories no longer light up. Every row still registers with the fluid hover, so the pointer resolves to the row under it rather than to an interactive neighbour, and the highlight hides unless that row is a group header or a category of the reader's own. A panel that finishes its height transition remeasures: without it the published rects stayed one row short of the expansion and the highlight settled on the wrong row.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The colour of a category states the direction of money: income is green, investments purple, spending blue. A user's own category nested under one of those groups could still be any of the seven hues, so a spending category could be green and read as income. A nested custom category now takes its parent group's colour, and the seven-swatch picker shows only while the category is top level, where it is a group in its own right and therefore owns a hue. The stored choice is never overwritten, so it comes back intact if the category is later moved out of every group.
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
Five reported interface defects, mostly independent. Onboarding chips now carry each selected country's flag. The budget period arrows stop moving when the periodicity changes. A category takes the colour of its group, and charts shade that one hue per category so slices stay separable. The settings category tree gets the sidebar's own indentation, and built-in rows stop lighting up. Look first at
packages/api/src/lib/taxonomy.tsandapps/web/src/shared/lib/chart-colors.ts— that pair is the only change with reach beyond its own screen.Motivation
Incomeheader sat green, purple, blue, orange, pink and grey rows, so a group read as confetti rather than a family.pl-8, which put a child icon exactly where the group icon sat: the tree showed no nesting at all.Drawbacks
categoryColorreturning the group colour reverses a decisiondocs/engineering/api.md:49recorded on purpose. It held for a list, where the glyph separates two rows; it fails in a chart, which has no glyph — hencecategoryChartColor. Both notes are rewritten.SankeyNode.colorwidens fromCategoryColorto a resolved CSS string, so the type no longer refuses a bare token. Both producers were migrated and the two fixtures with them; a future one has only the grep to warn it.spending, so two categories far apart incategoriesInGroupseparate well and two adjacent ones separate weakly.2026label. A stable control beat a tight one.Prior art
packages/uialready uses for the sidebar row label, applied to a label that changes format rather than weight.SidebarMenuSub: a guide on the parent icon's centre, rows past it.--foreground/--backgroundrather than white/black is what lets the ladder invert with the theme instead of branching on it; verified in both.Notes
dev:up, in dark and light.CollapsibleContentnow remeasures ontransitionend. Reproduced onorigin/devfirst.contributing/categorisation.mdx,guides/categories.mdx,docs/engineering/api.md,docs/engineering/web-ui.md,packages/ui/AGENTS.md(the vendored combobox patch, or a registry re-fetch silently drops the flags).ultracite check,oxlint,check-types,check:fsd,docs:check, fumadocs build, andbun testinpackages/api,apps/web,packages/ui— all clean. Reviewer agent: approved, no findings.