Skip to content

Untangle the nested ternaries in e2e, common and three socket hooks (GRYT-1792, client stack 3) - #899

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

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

Conversation

@grytchat

@grytchat grytchat commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Twelve files. Sort comparators write their last step as
a < b ? -1 : Number(a > b). Longer chains became early-return functions
(filteredAction, lostSince) or two named steps. The send-across-restart
spec opens its conversation from a table keyed by kind. useCustomThemes
looks a preset up first and a saved theme second, and still doesn't let
a missing preset fall through to a saved theme.

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

…GRYT-1792, client stack 3)

Twelve files. Sort comparators write their last step as
`a < b ? -1 : Number(a > b)`. Longer chains became early-return functions
(filteredAction, lostSince) or two named steps. The send-across-restart
spec opens its conversation from a table keyed by kind. useCustomThemes
looks a preset up first and a saved theme second, and still doesn't let
a missing preset fall through to a saved theme.

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>
@grytchat
grytchat force-pushed the claude/GRYT-1792-client-ternary-3 branch from ded6753 to 9dc223c Compare October 19, 2026 09:34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@grytchat
grytchat merged commit 91aea9d into main Oct 19, 2026
19 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