Skip to content

Actor identity mapping: resolve screen names in replay#71

Merged
shikokuchuo merged 6 commits intomainfrom
replay-identity
Mar 20, 2026
Merged

Actor identity mapping: resolve screen names in replay#71
shikokuchuo merged 6 commits intomainfrom
replay-identity

Conversation

@shikokuchuo
Copy link
Collaborator

@shikokuchuo shikokuchuo commented Mar 20, 2026

Closes #64.

Store actorIdscreenName and color in the IndexDocument so replay shows human-readable names with colored badges instead of truncated hex hashes.

  • Add an identities map and schemaVersion field to IndexDocument in quarto-automerge-schema, with V0 → V1 migration
  • Write each user's identity (screen name + color) on connect via quarto-sync-client; use auth.name as the default screen name
  • Resolve actor IDs to screen names in ReplayDrawer with colored badges (blue for current user, grey for others); falls back to truncated hex when no identity is available
  • Set color along with screen name so identity changes propagate consistently
  • Add Reset and Randomize buttons in the screen name UI, with live sync to the replay view
  • Backwards compatible: older clients ignore the new fields; newer clients transparently migrate V0 documents

@shikokuchuo shikokuchuo requested a review from cscheid March 20, 2026 15:22
@shikokuchuo shikokuchuo merged commit b6b9013 into main Mar 20, 2026
4 checks passed
@shikokuchuo shikokuchuo deleted the replay-identity branch March 20, 2026 17:40
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.

hub: display names in replay

1 participant