Skip to content

Fix channel visibility controls#940

Merged
wesbillman merged 1 commit into
mainfrom
pinky/channel-settings-controls
Jun 10, 2026
Merged

Fix channel visibility controls#940
wesbillman merged 1 commit into
mainfrom
pinky/channel-settings-controls

Conversation

@wesbillman

Copy link
Copy Markdown
Collaborator

Summary

  • split channel settings Details vs Visibility save mutations so one save no longer puts both buttons into loading
  • default blank Ephemeral timeout to 1d / ttlSeconds: 86400 when enabling ephemeral channels
  • parse relay channel snapshots that use ["visibility", "private"|"open"] plus TTL tags
  • add focused Playwright coverage and screenshot fixtures for the fixed channel controls behavior

Testing

  • cd desktop && ../bin/pnpm build
  • cd desktop && ../bin/pnpm exec playwright test tests/e2e/channels.spec.ts -g 'manage channel updates visibility and ephemeral lifecycle independently' --project=smoke
  • cd desktop && ../bin/pnpm exec playwright test tests/e2e/channel-controls-screenshots.spec.ts -g '07|08' --project=smoke
  • cd desktop && ../bin/pnpm check
    • passes with pre-existing Biome warning in src/shared/features/useFeatureEnabled.ts:76
  • cd desktop/src-tauri && ../../bin/cargo test nostr_convert
  • ./bin/just desktop-test
  • ./bin/just desktop-tauri-fmt-check

Screenshots

Will add the verification screenshots in a follow-up PR comment.

Split the channel settings detail and lifecycle save paths so their pending state no longer overlaps. Default a blank ephemeral timeout to 1d when enabling ephemeral channels, and accept relay visibility snapshots that use the visibility tag shape when mapping channel details.

Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Wes <wesbillman@users.noreply.github.com>
@wesbillman wesbillman requested a review from a team as a code owner June 10, 2026 04:48
@wesbillman

Copy link
Copy Markdown
Collaborator Author

Verification screenshots

Lifecycle save is pending while details save stays idle:

Lifecycle save pending; details save idle

Private + Ephemeral persist after closing/reopening channel settings, with blank timeout defaulted to 1d:

Private and ephemeral persisted after reopen

@wesbillman wesbillman merged commit 2dc466f into main Jun 10, 2026
15 checks passed
@wesbillman wesbillman deleted the pinky/channel-settings-controls branch June 10, 2026 14:46
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