Skip to content

Untangle the nested ternaries in electron/ and src/components (GRYT-1792, client stack 1) - #897

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

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

Conversation

@grytchat

@grytchat grytchat commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Twelve files. Each chain became a lookup table, an early-return
function (ringStateOf, iconOpacity, splashMessage, volumeColour, flag),
or separate conditions where JSX picked between pages. The status
banner's message and glyph now come from one table, so the two can't
disagree. check-embedded-starting builds the sidebar's ring state from
source, so it picks up ringStateOf() as well.

Same output for every input as before. The twelve 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

…792, client stack 1)

Twelve files. Each chain became a lookup table, an early-return
function (ringStateOf, iconOpacity, splashMessage, volumeColour, flag),
or separate conditions where JSX picked between pages. The status
banner's message and glyph now come from one table, so the two can't
disagree. check-embedded-starting builds the sidebar's ring state from
source, so it picks up ringStateOf() as well.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat merged commit bf9fd0d into main Oct 19, 2026
18 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