- Notifications
You must be signed in to change notification settings - Fork 0
fix(privacy): keep the back control clear of the notch on phones#1621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fec8ae1
fix(privacy): keep the back control clear of the notch on phones
claude ee70f4c
Merge branch 'main' into claude/privacy-notch-safe-area
BigSimmo 3eb8f16
Merge branch 'main' into claude/privacy-notch-safe-area
BigSimmo b642a88
Merge branch 'main' into claude/privacy-notch-safe-area
cursoragent fa6d627
fix(ui): share standalone shell with safe-area top pad
cursoragent efc2955
Merge branch 'main' into claude/privacy-notch-safe-area
cursoragent 23a4b8f
docs(ledger): record PR #1621 babysit closeout
cursoragent 5c8b586
Merge branch 'main' into claude/privacy-notch-safe-area
cursoragent 190184c
Merge remote-tracking branch 'origin/main' into claude/privacy-notch-…
cursoragent dba8c9f
Merge branch 'main' into claude/privacy-notch-safe-area
cursoragent a3967f8
chore(ledger): supersede unresolvable PR #1621 review HEAD
cursoragent fe352ad
chore(ledger): point PR #1621 babysit supersede at pushed tip
cursoragent f9a72c3
chore(ledger): refresh PR #1621 Run PR sweep tip
cursoragent e98e064
Merge branch 'main' into claude/privacy-notch-safe-area
BigSimmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -641,10 +641,17 @@ Records before 2026-07-28 were written by hand and had drifted: 146 lines carrie | ||
| | 2026-08-05 | codex/v2-design-system-completion | 8863cea53bf4df59e8795dcaab1fa420b5109516 | PR #1616 v2 design system CI+reviews | fixed typecheck + review defects; baselines remain not-committed by design | tsc; vitest ui-v2/accessible-table/ui-primitives/design-system-adoption | | ||
| | 2026-08-05 | codex/v2-design-system-completion | 8b49bfa2b66ed78577b08e1a50414db55898f2df | PR #1616 v2 design system CI+reviews | fixed typecheck + review defects; baselines remain not-committed by design | tsc; vitest ui-v2/accessible-table/ui-primitives/design-system-adoption | | ||
| | 2026-08-05 | codex/v2-design-system-completion | 1ea30c19c48b3791519659abf85b20c9e8c7faab | PR #1616 review feedback disposition | COMPLETED: fixed mode-home empty composer reserve + chip category v2 tokens; dispositioned remaining Devin analysis findings to outstanding-issues; unresolved threads 0 | vitest search-route-ownership 12/12; ckb-v2-token-contract+related green; CI in progress on tip | | ||
| | 2026-08-05 | claude/review-open-prs-fewxlh | 4e384f4cef1a0c3f15bc8ca3d907920b7c097541 | Run PR sweep | merged main; fixed 3 Devin findings (busy heuristic, typecheck excludes, scripts-index) | vitest: tests/guard-push.test.ts 23 passed; self-test passed | | ||
| | 2026-08-05 | cursor/phone-mode-sheet-yes-05c0 | b579d68491980388ff3e4ce8aba85530e87a9d84 | Run PR sweep | threads already resolved; synced main via update-branch; CI was green pre-sync | CI: PR required SUCCESS pre-sync | | ||
| | 2026-08-05 | cursor/phone-mode-sheet-yes-05c0 | 9152e239076ff823ad3bf812d282ffc87c3295b7 | Run PR sweep | threads already resolved; merged origin/main; CI was green pre-sync | CI: PR required SUCCESS pre-sync; merge-tree clean | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | efc29559ede819daeec99d46e9147fe08a73bdb0 | PR #1621 babysit standalone-shell review fixes | fixed: shared searchPageShellStandalone + min-h-tap + contract; main synced; CI green CLEAN; Bugbot clean; no open threads | test:5331-pass; build:pass; lint:pass; typecheck:pass; rag-fixtures:pass; CI#31025767142:pr-required-success; bugbot:no-bugs | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | ef92d628683cc6a47c07b1a901b73f22d9474149 | PR #1621 babysit standalone-shell review fixes | fixed: shared searchPageShellStandalone + min-h-tap + contract; main synced; CI green CLEAN; Bugbot clean; no open threads; ledger closeout tip | test:5331-pass; build:pass; lint:pass; typecheck:pass; rag-fixtures:pass; CI#31025767142:pr-required-success; bugbot:no-bugs | | ||
cursor[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| | 2026-08-05 | codex/editable-search-pins | 18c3069c7ad19b7e92e3ec9e0b65b5d845afe9c1 | editable search pins menu production integration and mockups | no findings; ready for draft review | verify:pr-local; focused pin tests; typecheck; responsive browser QA; phone-chrome contracts and journey | | ||
| | 2026-08-05 | codex/editable-search-pins | 193afe637481c0ed2fa82dbe9bb1f1d1c8bcc4d8 | editable search pins menu review follow-up | fixed remaining review defects; unresolved threads cleared; auto-merge armed | vitest:search-pins 18/18; tsc clean on touched surfaces; review threads 0 unresolved | | ||
| | 2026-08-05 | codex/editable-search-pins | a0e2801fb291a672274c9a723108637d3cdb43f9 | editable search pins menu review follow-up | fixed remaining review defects; lint setState-in-effect; unresolved threads cleared; auto-merge armed | vitest:search-pins 18/18; eslint touched surfaces; review threads 0 unresolved | | ||
| | 2026-08-05 | cursor/phone-mode-sheet-yes-05c0 | b579d68491980388ff3e4ce8aba85530e87a9d84 | Run PR sweep | threads already resolved; synced main via update-branch; CI was green pre-sync | CI: PR required SUCCESS pre-sync | | ||
| | 2026-08-05 | cursor/phone-mode-sheet-yes-05c0 | 9152e239076ff823ad3bf812d282ffc87c3295b7 | Run PR sweep | threads already resolved; merged origin/main; CI was green pre-sync | CI: PR required SUCCESS pre-sync; merge-tree clean | | ||
| | 2026-08-05 | codex/editable-search-pins | 67f2c71e8376fbc44615f765a73cb6a37c4ddb40 | editable search pins menu review follow-up | merged main; review threads cleared; auto-merge armed | vitest search-pins+mode-action+command-surface: Test Files 4 passed (4); Tests 33 passed (33); eslint max-warnings 0 on touched surfaces | | ||
| | 2026-08-05 | claude/review-open-prs-fewxlh | 4e384f4cef1a0c3f15bc8ca3d907920b7c097541 | Run PR sweep | merged main; fixed 3 Devin findings (busy heuristic, typecheck excludes, scripts-index) | vitest: tests/guard-push.test.ts 23 passed; self-test passed | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | dba8c9f72fdb84495736b7c8a5c723f4153b3612 | PR #1621 babysit standalone-shell review fixes | supersede: prior row HEAD ef92d628 was unresolvable; tip after main sync is this SHA; product fixes unchanged | ledger:append correction; merge-tree clean vs main | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | dba8c9f72fdb84495736b7c8a5c723f4153b3612 | Run PR sweep | merged main (stale DIRTY); superseded unresolvable ledger HEAD per Devin; no product threads open | merge-tree clean | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | 0fbb5686ace5368f6a21b07089db886e639c095a | PR #1621 babysit standalone-shell review fixes | supersede: prior row HEAD ef92d628 was unresolvable; tip after main sync is this SHA; product fixes unchanged | ledger:append correction; merge-tree clean vs main | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | a3967f8f0ee05b9a3ab922cd4a9feeebdf7efbbc | PR #1621 babysit standalone-shell review fixes | supersede: prior row HEAD ef92d628 was unresolvable; tip after main sync is this SHA; product fixes unchanged | ledger:append correction; merge-tree clean vs main | | ||
| | 2026-08-05 | claude/privacy-notch-safe-area | fe352adb18d3260f0646f64ef992376e1449b0de | Run PR sweep | merged main (stale DIRTY); superseded unresolvable ledger HEAD per Devin; no product threads open | merge-tree clean | | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| import { readFileSync } from "node:fs"; | ||
| import { createElement } from "react"; | ||
| import { renderToStaticMarkup } from "react-dom/server"; | ||
| import { describe, expect, it, vi } from "vitest"; | ||
| import PrivacyPage from "@/app/privacy/page"; | ||
| import ColourCodingReferencePage from "@/app/reference/colour-coding/page"; | ||
| import { searchPageShell, searchPageShellStandalone } from "@/components/ui-primitives"; | ||
| vi.mock("next/navigation", () => ({ | ||
| useSearchParams: () => new URLSearchParams(), | ||
| useRouter: () => ({ | ||
| back: vi.fn(), | ||
| push: vi.fn(), | ||
| }), | ||
| })); | ||
| const read = (relativePath: string) => readFileSync(new URL(`../${relativePath}`, import.meta.url), "utf8"); | ||
| const STANDALONE_PAGES = ["src/app/privacy/page.tsx", "src/app/reference/colour-coding/page.tsx"] as const; | ||
| describe("searchPageShellStandalone contract", () => { | ||
| it("owns the OS top inset without axis py-* that would fight side-specific pt-*", () => { | ||
| expect(searchPageShellStandalone).toContain("pt-[max(0.75rem,var(--safe-area-top))]"); | ||
| expect(searchPageShellStandalone).toContain("sm:pt-[max(1.25rem,var(--safe-area-top))]"); | ||
| expect(searchPageShellStandalone).toContain("pb-4"); | ||
| expect(searchPageShellStandalone).toContain("sm:pb-8"); | ||
| // Axis padding would reintroduce the Tailwind sort-order dependency that | ||
| // made per-page pt-* overrides fragile when cn() does not de-dupe utilities. | ||
| expect(searchPageShellStandalone).not.toMatch(/(?:^|\s)py-\S+/); | ||
| expect(searchPageShellStandalone).not.toMatch(/(?:^|\s)sm:py-\S+/); | ||
| // Shell pages keep the ordinary py rhythm; standalone is the only owner of | ||
| // max(safe-area-top) so future routes do not re-derive the values. | ||
| expect(searchPageShell).toMatch(/(?:^|\s)py-3(?:\s|$)/); | ||
| expect(searchPageShell).not.toContain("var(--safe-area-top)"); | ||
| }); | ||
| it("is the shell used by every production standalone search-page route", () => { | ||
| for (const relativePath of STANDALONE_PAGES) { | ||
| const source = read(relativePath); | ||
| expect(source, relativePath).toContain("searchPageShellStandalone"); | ||
| expect(source, relativePath).not.toMatch(/\bsearchPageShell\b(?!Standalone)/); | ||
| } | ||
| }); | ||
| it("renders the safe-area top pad and tap-token back row on /privacy", () => { | ||
| const markup = renderToStaticMarkup(createElement(PrivacyPage)); | ||
| expect(markup).toContain(searchPageShellStandalone); | ||
| expect(markup).toContain("pt-[max(0.75rem,var(--safe-area-top))]"); | ||
| expect(markup).toContain("sm:pt-[max(1.25rem,var(--safe-area-top))]"); | ||
| expect(markup).toContain("min-h-tap"); | ||
| expect(markup).not.toContain("min-h-12"); | ||
| }); | ||
| it("renders the same safe-area pad and tap-token back row on /reference/colour-coding", () => { | ||
| const markup = renderToStaticMarkup(createElement(ColourCodingReferencePage)); | ||
| expect(markup).toContain(searchPageShellStandalone); | ||
| expect(markup).toContain("pt-[max(0.75rem,var(--safe-area-top))]"); | ||
| expect(markup).toContain("sm:pt-[max(1.25rem,var(--safe-area-top))]"); | ||
| expect(markup).toContain("min-h-tap"); | ||
| }); | ||
| }); |
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.