Skip to content

Feat/pairing - #17

Merged
Filionus merged 11 commits into
mainfrom
feat/pairing
Nov 28, 2026
Merged

Filionus merged 11 commits into
mainfrom
feat/pairing

Conversation

@Filionus

Copy link
Copy Markdown
Collaborator

No description provided.

Filionus and others added 11 commits November 28, 2026 13:14
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cover the state machine, the input rules, the actions with their error
codes and the temporary polling while waiting for a partner (F1).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Three assumptions in the previous test commit were wrong:
- The contract counts an emoji in a display name once, not twice.
- $fetch repeats a failed GET, so a load only fails if both attempts do.
- mountSuspended waits for timers, which the polling tests fake.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A pure state function, a store that forgets the space when the person
changes, and useSpace() for create, join, new invite, display name and
leave. Error codes are mapped per action, because already_paired means
something different for a new invite.

useSpaceAutoRefresh() polls only while waiting for a partner and is
temporary until live updates arrive.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cover pairing, the invite code, both display names, the confirmation
before leaving and the fifth navigation entry (F1).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A new page "Our space" with its navigation entry: create or join a space,
pass on the invite code, see both display names and leave after a
confirmation that differs for the last member. The dashboard points to it
while there is no partner. All texts in DE, EN and NL (F1).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A real browser showed that the focus is lost after closing the leave
dialog with Escape, and after pressing a button that is disabled while its
request runs. The test environment does not do either by itself.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Busy buttons use aria-disabled instead of disabled, and the leave button
gets the focus back however the dialog is closed. The dialog also keeps a
gap to the screen edges on small phones.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A message must not survive when the session ends while checking before
leaving, or while reloading after an error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Filionus
Filionus merged commit aef3871 into main Nov 28, 2026
1 check passed
@Filionus
Filionus deleted the feat/pairing branch November 28, 2026 13:32
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