Skip to content

fix(console): keep long passkey origins inside the enable dialog - #14395

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/console-enable-passkeys-overflow
Oct 12, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/console-enable-passkeys-overflow

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

The Enable passkeys dialog overflows its panel when a project has an Android app with a signing certificate fingerprint. The android:apk-key-hash:… origin is long, and the dialog body is a grid item whose min-width defaults to its content, so the truncated origin still widened the body: the domain options, the origins box and the footer buttons spilled past the dialog's right edge.

Adding min-w-0 to the body lets the origin truncate inside the dialog as intended.

Found while reshooting the screenshots for the passkeys docs (#14389).

Test plan

  • New mocked e2e test a long Android origin stays inside the enable dialog asserts the origins box ends within the dialog. It fails on main and passes with this change.
  • console.mocked.passkeys.spec.ts: 17 passed.

Related: appwrite-labs/cloud#5805

The dialog content is a grid item, so its min-width defaulted to its content and a long android:apk-key-hash origin pushed the domain options and footer past the dialog's edge instead of truncating.
@luxor-code-review

luxor-code-review Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 boundingBox assertion cannot detect text overflow (console.mocked.passkeys.spec.ts:621) — The new e2e test verifies the overflow fix by comparing the origins box's right edge to the dialog's right edge (apps/console/e2e/console.mocked.passkeys.spec.ts:621-625).

This PR adjusts the EnablePasskeys dialog so long Android origins no longer overflow the dialog content, and adds mocked e2e coverage for enabling passkeys.

Files Change
apps/console/src/components/pages/projects/$projectId/auth/EnablePasskeys.tsx Constrains dialog content width (min-w-0) so long passkey origin values wrap instead of pushing the dialog wider.
apps/console/e2e/console.mocked.passkeys.spec.ts Adds mocked e2e specs covering the enable-passkeys dialog, origin rendering, and layout assertions.

One low-severity finding remains about the e2e bounding-box assertion, noted in the findings.

Reviewed commit: 58b9479

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 12, 2026
@ghost

ghost commented Oct 12, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The enable-passkeys dialog now allows its body grid item to shrink so long Android origins stay within the panel. A mocked e2e regression test covers the layout with a long origin.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
apps/console/src/components/pages/projects/$projectId/auth/EnablePasskeys.tsx Adds min-w-0 to the dialog body so long content can shrink within the grid.
apps/console/e2e/console.mocked.passkeys.spec.ts Adds a mocked e2e check that the origins box stays within the enable dialog.

Reviewed 58b9479 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit fff97a2 into main Oct 12, 2026
38 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/console-enable-passkeys-overflow branch October 12, 2026 16:24
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