Skip to content

Take the member list grouping from @gryt/core - #390

Merged
sivert-io merged 1 commit into
mainfrom
claude/member-groups-from-core
Sep 4, 2026
Merged

Take the member list grouping from @gryt/core#390
sivert-io merged 1 commit into
mainfrom
claude/member-groups-from-core

Conversation

@sivert-io

@sivert-io sivert-io commented Sep 4, 2026

Copy link
Copy Markdown
Member

Red on one line, and it is the expected one: Couldn't find any versions for "@gryt/core" that matches "^0.5.0". core#8 is merged but not released — npm is still on 0.4.0. This goes green on a 0.5.0 release plus the matching yarn.lock bump, which I will push the moment the version exists rather than writing a lockfile entry for a version that does not.

The phone drew the same list from its own copy of the same rules. core#8 has the one implementation and this drops the desktop's, 70 lines of a 90-line file.

Nothing about this app changes. The rule the two had drifted on was the phone's — a member with no status was offline there and present here — and core kept this reading, so the desktop's output is the same list it was.

readableRoleColor stays in this file. It emits a CSS oklch() string React Native cannot use, and was settled as a non-candidate on the task. groupMembersByRole is re-exported from the same file rather than repointed at the call site, because MemberSidebar wants both and moving one import is not worth the churn.

Typechecked against core's build locally — memberGroups.ts and MemberSidebar.tsx are clean, and MemberInfo and ServerRoleSummary satisfy the generic without either having to adopt a type from core.

Part of GRYT-898, which this and the mobile half finish.

🤖 Generated with Claude Code

The phone drew the same list from its own copy of the same rules. core#8 has the
one implementation and this drops the desktop's, which is 70 lines of the
90-line file.

Nothing about this app changes. The rules the two had drifted on were the
phone's — a member with no `status` was offline there and present here, and core
kept this reading — so the desktop's output is the same list it was.

`readableRoleColor` stays. It emits a CSS `oklch()` string React Native cannot
use, and was settled as a non-candidate on the task. `groupMembersByRole` is
re-exported from the same file rather than repointed at the call site, because
MemberSidebar wants both and moving one import is not worth the churn.

Needs @gryt/core 0.5.0, so the pin moves from ^0.4.0. Red until that ships.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sivert-io
sivert-io marked this pull request as ready for review September 4, 2026 19:12
@sivert-io
sivert-io merged commit d6791bc into main Sep 4, 2026
2 of 3 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