Skip to content

Update group access control markers#88

Closed
purrgrammer wants to merge 8 commits intomainfrom
claude/update-group-access-markers-stOT6
Closed

Update group access control markers#88
purrgrammer wants to merge 8 commits intomainfrom
claude/update-group-access-markers-stOT6

Conversation

@purrgrammer
Copy link
Owner

No description provided.

claude added 8 commits January 2, 2026 09:35
Replace visibility/access enums with 4 boolean markers per NIP-29 spec:
- isPrivate: only members can read group messages
- isRestricted: only members can write messages
- isHidden: relay hides metadata from non-members
- isClosed: join requests are ignored (invite-only)

Updated GroupMetadata in types.ts and GroupInfo in db.ts
- Update groupMetadata() to parse all 4 presence-based markers
- Update fetchGroupMetadata() to parse all 4 markers
- Update useEditGroup() to publish presence-only tags
- Remove explicit ["public"] and ["open"] tags (not in new spec)

Markers are now boolean flags based on tag presence:
- isPrivate, isRestricted, isHidden, isClosed
- Replace visibility/access Select dropdowns with 4 toggle switches
- Update form schemas with boolean fields: isPrivate, isRestricted,
  isHidden, isClosed
- Add icons for each marker: BookLock, PenOff, EyeOff, ShieldOff
- Update create.tsx, create-on-relay.tsx, and edit.tsx
- Replace visibility/access state with 4 boolean states:
  isPrivate, isRestricted, isHidden, isClosed
- Update privacy tab UI with 4 toggle sections and icons
- Update handleSaveInformation and handleSavePrivacy functions
- Update join requests condition to use isClosed
- Update status icons to check boolean markers instead of enum values
- Show icons only when markers are active (isPrivate, isRestricted,
  isHidden, isClosed)
- Add new icons for restricted and hidden markers
- Remove unused BookOpen and Shield icon imports
- Add badge display for all 4 access markers
- Show badges only when markers are active
- Add icons for visual distinction
- Add translations for private, restricted, hidden, closed markers
- Update group.create.form with access-settings section
- Update group.metadata with new marker structure
- Update group.settings.privacy with new marker labels
For groups with isClosed marker, join requests are ignored per NIP-29.
Update chat.tsx to not show join request button for closed groups
since these requests won't be honored by the relay.
@purrgrammer purrgrammer requested a review from Copilot January 2, 2026 10:54
@vercel
Copy link

vercel bot commented Jan 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
chachi Ready Ready Preview, Comment Jan 2, 2026 10:54am

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@purrgrammer purrgrammer closed this Mar 2, 2026
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.

3 participants