Skip to content

Untangle the nested ternaries in the settings components (GRYT-1792, client stack 2) - #898

Merged
grytchat merged 2 commits into
claude/GRYT-1792-client-ternary-1from
claude/GRYT-1792-client-ternary-2
Oct 19, 2026
Merged

grytchat merged 2 commits into
claude/GRYT-1792-client-ternary-1from
claude/GRYT-1792-client-ternary-2

Conversation

@grytchat

@grytchat grytchat commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Fourteen files. Copy that picked between three or more lines is now an
early-return function: slimVariantLine, stepDescription, resolutionTip,
bannerHint, archiveLine, avatarHint. Pairs of label and colour come from
one table (MIC_GATE, RUN_STATE), so they can't drift apart. The update
card, the server preview line and the step title are small components
or table lookups.

The server log's text colour is CSS now, picked by a data-level
attribute, rather than a style computed in JS. profileSettings had the
same upload error parser twice. It's one function, uploadError(), with
the same output.

Same output for every input as before. The fourteen files leave the
nested-ternary exception list.
Part of a gh stack: #897 → #898 → #899. They merge together with gh stack merge. On each layer locally: tsc -b, the CI ESLint command and all 171 test:* check scripts pass. The exception is embedded-server-paths, which resolves the SFU relative to packages/ and so fails in a standalone clone, on main too.

Next after this stack: the 44 socket components, then the last socket hooks, lib, mls and webRTC files. common/src/auth/keycloak.ts gets its own PR for review.

Task: GRYT-1792

🤖 Generated with Claude Code

grytchat and others added 2 commits October 19, 2026 11:33
…client stack 2)

Fourteen files. Copy that picked between three or more lines is now an
early-return function: slimVariantLine, stepDescription, resolutionTip,
bannerHint, archiveLine, avatarHint. Pairs of label and colour come from
one table (MIC_GATE, RUN_STATE), so they can't drift apart. The update
card, the server preview line and the step title are small components
or table lookups.

The server log's text colour is CSS now, picked by a data-level
attribute, rather than a style computed in JS. profileSettings had the
same upload error parser twice. It's one function, uploadError(), with
the same output.

Same output for every input as before. The fourteen files leave the
nested-ternary exception list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on their components

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat force-pushed the claude/GRYT-1792-client-ternary-2 branch from ae7c3ba to a680c2d Compare October 19, 2026 09:34
@grytchat
grytchat merged commit e72c2f3 into main Oct 19, 2026
35 checks passed
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