Repository navigation
Feat/pairing - #17
Merged
Merged
Feat/pairing#17
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.