Skip to content

fix(invite): wrap long invite codes instead of truncating (#155) - #160

Draft
luandro wants to merge 3 commits into
mainfrom
agent/comapeo-cloud-app/issue-155
Draft

fix(invite): wrap long invite codes instead of truncating (#155)#160
luandro wants to merge 3 commits into
mainfrom
agent/comapeo-cloud-app/issue-155

Conversation

@luandro

@luandro luandro commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Closes #155

Replaces truncate with break-words overflow-wrap-anywhere min-w-0 on invite-code <code> elements in InviteScreen, preventing overflow on long codes. Adds 2 wrapping unit tests.

Kimi review: READY (0 blockers, 0 major, 1 minor, 3 nits).

Replace truncate with break-words + overflow-wrap-anywhere on invite URL
and invite code <code> elements to prevent horizontal scrolling on mobile
when invite codes are long unbreakable base64url strings.
@luandro luandro added the agent:ready-for-review Agent-completed PR ready for human review label Jul 28, 2026
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Preview deployment ready: https://agent-comapeo-cloud-app-issu-j3oa.comapeo-cloud-app.pages.dev

Commit: 7ea96c6

luandro and others added 2 commits July 28, 2026 19:23
…e wrapping (#155)

- Add InviteGenerated story to SettingsScreen stories that fills form
  with long URL + token, submits, and asserts wrapped invite code display
- Update mock to return long encrypted invite code by default
- Add desktop + mobile baseline screenshots verifying wrapping fix
…orybook findByText

- MINOR: Replace dead class overflow-wrap-anywhere with wrap-anywhere (real Tailwind v4 utility)
- storybook: Scope InviteGenerated findByText to invite-code row to avoid matching
  the URL code element (both contain mock-encrypted-code- pattern)
- Update test assertions from overflow-wrap-anywhere to wrap-anywhere
@luandro

luandro commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

This pull request should be updated to truncate every component on the application. For example data tags are also overflowing and also need to be truncated. Make sure to check every component that has the potential it's overflow, and make it truncated so we don't have the overflow issue anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:ready-for-review Agent-completed PR ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: long Invite Code overflows its container and causes horizontal scrolling

1 participant