Skip to content

DAC-130: Unit tests for profile management dialogs#26

Merged
krazyjakee merged 1 commit into
masterfrom
feature/DAC-130-profile-dialog-tests
Mar 10, 2026
Merged

DAC-130: Unit tests for profile management dialogs#26
krazyjakee merged 1 commit into
masterfrom
feature/DAC-130-profile-dialog-tests

Conversation

@krazyjakee

Copy link
Copy Markdown
Contributor

Summary

  • Add test_create_profile_dialog.gd: covers UI structure, empty-name validation, too-long-name validation, password mismatch validation, confirm-field visibility toggle, and profile_created signal existence
  • Add test_profile_password_dialog.gd: covers UI structure, setup(), empty-password validation, wrong-password path (using an inline _StubProfilesReject stub to force verify_password to return false), and password_verified signal existence

Test plan

  • Unit tests pass (./test.sh unit)
  • Lint clean (gdlint scripts/ scenes/)
  • CI passing

- test_create_profile_dialog: structure, validation (empty name, too-long
  name, password mismatch), confirm-field visibility toggle, signal existence
- test_profile_password_dialog: structure, setup(), empty-password validation,
  wrong-password path (via inline stub), signal existence

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@krazyjakee krazyjakee merged commit 52a40ea into master Mar 10, 2026
5 checks passed
@krazyjakee krazyjakee deleted the feature/DAC-130-profile-dialog-tests branch March 10, 2026 16:18
krazyjakee added a commit that referenced this pull request Jun 8, 2026
Closes #4 and #26. New ReadStateController (keepAlive) tracks per-channel
unread + mention counts, mirroring the reference client's client_unread.gd:
the gateway handler marks a channel unread on every MESSAGE_CREATE that
isn't in the currently-visible channel (bumping the mention count when the
user is mentioned), and selecting a channel marks it read locally + POSTs
channels.ack with the latest message ID so the server's read position
catches up. _ChannelTile renders the channel name bold with a white dot when
unread, or a red mention pill with the count. _SpaceIcon overlays the same
indicators on the rail (a left-rail unread pip or a corner mention pill),
rolling up read state across all loaded channels of the space. State is
in-memory only, matching the reference's behavior on cold start.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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