-
Notifications
You must be signed in to change notification settings - Fork 0
Phone chrome: opaque header/footer, hide backdrops, and add paint/scroll tests #1246
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
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ee4e9f3
test(ui): isolate mobile chrome apply contract
BigSimmo 6b18a09
Merge branch 'main' into codex/standardize-header-and-footer-behavior
BigSimmo 10d6ad9
Changes before error encountered
Copilot a5f0591
fix(test): use /formulation/worry so phone chrome dock is present in …
Copilot a8c2fae
fix: apply CodeRabbit auto-fixes
coderabbitai[bot] ee33efd
fix(ui): use showDesktopHomeComposer for heroComposerBreakpoint; fix …
Copilot 330b756
Merge branch 'main' into codex/standardize-header-and-footer-behavior
github-actions[bot] a497041
Merge branch 'main' into codex/standardize-header-and-footer-behavior
github-actions[bot] a7088d1
Merge branch 'main' into codex/standardize-header-and-footer-behavior
github-actions[bot] b51ee15
fix(test): accept absent phone dock backdrop
BigSimmo a17f3e2
docs(review): record PR 1246 CI repair
BigSimmo e1f7dad
Merge branch 'main' into codex/standardize-header-and-footer-behavior
github-actions[bot] 92a8636
chore(ci): retrigger PR 1246 after main sync
BigSimmo 6a7048c
Merge branch 'main' into codex/standardize-header-and-footer-behavior
BigSimmo de4864e
fix(test): use a real phone dock surface
BigSimmo 498cfac
docs(review): record PR 1246 browser repair
BigSimmo 7dde5b7
Merge remote-tracking branch 'origin/codex/standardize-header-and-foo…
BigSimmo a7d8977
Merge remote-tracking branch 'origin/main' into codex/pr1246-review-m…
BigSimmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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,23 @@ | ||
| import { readFileSync } from "node:fs"; | ||
|
|
||
| import { describe, expect, it } from "vitest"; | ||
|
|
||
| const globalStylesSource = readFileSync(new URL("../src/app/globals.css", import.meta.url), "utf8"); | ||
|
|
||
| describe("mobile chrome paint baseline", () => { | ||
| it("uses one opaque edge-to-edge phone header and one footer surface", () => { | ||
| const phoneStyles = globalStylesSource.slice(globalStylesSource.indexOf("@media (max-width: 639px)")); | ||
|
|
||
| expect(phoneStyles).toMatch( | ||
| /\.edge-glass-header,\s*\n\s*\.universal-header\s*\{\s*\n\s*background: var\(--surface\)/, | ||
| ); | ||
| expect(phoneStyles).toMatch(/\.edge-glass-header-backdrop[\s\S]*?display: none/); | ||
| expect(phoneStyles).toMatch(/\.answer-footer-search-dock\.answer-footer-search-edge[\s\S]*?bottom: 0;/); | ||
| expect(phoneStyles).toMatch( | ||
| /\.answer-footer-search-dock \.answer-footer-search-backdrop\s*\{\s*\n\s*display: none/, | ||
| ); | ||
| expect(phoneStyles).toMatch( | ||
| /\.answer-footer-search-dock \.answer-footer-search-pill[\s\S]*?color-mix\(in srgb, var\(--surface\) 92%, transparent\)/, | ||
| ); | ||
| }); | ||
| }); |
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
Oops, something went wrong.
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.