-
Notifications
You must be signed in to change notification settings - Fork 4
Discover page wave card design #1568
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
10 commits
Select commit
Hold shift + click to select a range
641bfed
wip
ragnep 6b76141
wip
ragnep 5daf133
wip
ragnep 3e9b532
wip
ragnep 6439954
wip
ragnep 5e2f758
wip
ragnep ce82811
fixed sonarqube issues
ragnep d498bee
wip
ragnep 87d111d
wip
ragnep 171f4ad
wip
ragnep 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
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,36 @@ | ||
| --- | ||
| created: 2025-10-27 | ||
| id: TKT-0017 | ||
| owner: openai-assistant | ||
| priority: P1 | ||
| status: In-Progress | ||
| title: Stabilize Waves modal tests for app routing | ||
| --- | ||
|
|
||
| ## Context | ||
|
|
||
| > Recent regressions in the Waves create entrypoints caused our Jest suite to expect elements that only render when the app shell reports `isApp = true`. The existing tests mocked the device state inconsistently, so the suite flapped whenever other specs imported `useDeviceInfo`. We need a focused ticket to realign the test harness with production behaviour and keep the modal coverage reliable. | ||
|
|
||
| ## Plan | ||
|
|
||
| - [x] Inspect the current Waves tests and identify coupling to the device info hook. | ||
| - [x] Adjust the mocks so each scenario explicitly sets the app context required by the assertions. | ||
| - [ ] Add regression coverage to ensure the create modal expectations hold without relying on global mock state. | ||
| - [ ] Run targeted Jest suites and capture results in the log. | ||
|
|
||
| ## Acceptance | ||
|
|
||
| - [ ] `__tests__/components/waves/Waves.test.tsx` passes deterministically regardless of other suites. | ||
| - [ ] Modal visibility assertions are scoped to the app-mode rendering path. | ||
| - [ ] `npm run test -- Waves` succeeds without modifying production code. | ||
|
|
||
| ## Links | ||
|
|
||
| - Primary PR: _(pending)_ | ||
| - Follow-ups: _(none yet)_ | ||
|
|
||
| ## Log | ||
|
|
||
| - 2025-10-27T14:10:00Z – Documented the flakey Waves tests and logged the need for device info scoping before fixing the mocks. | ||
| - 2025-10-27T14:45:00Z – Updated the Waves and WaveItemDropped specs to control the device mock explicitly and align avatar expectations with the production component; targeted Jest runs pass aside from coverage reporter sandbox noise. | ||
|
|
||
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,52 @@ | ||
| --- | ||
| created: 2025-10-27 | ||
| id: TKT-0018 | ||
| owner: openai-assistant | ||
| priority: P1 | ||
| status: In-Progress | ||
| title: Make Wave card fully clickable | ||
| --- | ||
|
|
||
| ## Context | ||
|
|
||
| @waveitem reported that the Wave card currently exposes an eye icon button for navigation, but the expectation is that the entire card surface should link to the wave. This change keeps the UX consistent with the rest of the interface and removes redundant affordances. | ||
|
|
||
| ## Plan | ||
|
|
||
| - [x] Review the current Wave card interactions and identify all navigation entry points. | ||
| - [x] Update the card to handle click and keyboard events across its surface without breaking nested controls. | ||
| - [x] Adjust and extend tests to cover the new interactions. | ||
|
|
||
| ## Acceptance | ||
|
|
||
| - [x] Clicking any non-interactive area of a Wave card navigates to the wave detail view. | ||
| - [x] Existing interactive elements (like follow actions and contributor links) continue to work without unintended navigation. | ||
| - [x] Automated tests cover the navigation behavior. | ||
|
|
||
| ## Links | ||
|
|
||
| - Primary PR: _(add when available)_ | ||
| - Follow-ups: _(reference additional tickets or TODO items)_ | ||
|
|
||
| ## Log | ||
|
|
||
| - 2025-10-27T09:37:57Z – Captured request to remove the eye icon and make the card surface navigable. | ||
| - 2025-10-27T09:45:00Z – Wired full-card navigation, removed the legacy eye icon, and added interaction coverage. | ||
| - 2025-10-27T09:58:50Z – Polished card styling with hover/contrast refinements while keeping nested controls intact. | ||
| - 2025-10-27T10:14:47Z – Inlined Tailwind surface styling on the Wave card JSX, retained guarded navigation handlers, and added a space-key interaction test (`npm run test -- --runTestsByPath __tests__/components/waves/list/WaveItem.test.tsx`). | ||
| - 2025-10-27T10:32:05Z – Hardened Wave card links, tooltips, and images (prefetch opt-out, optional chaining, memoized gradients, lazy-loading avatars) per @waveitem’s follow-up; no new tests executed per guidance. | ||
| - 2025-10-27T10:34:45Z – Rolled back the new memoization helpers to keep the card implementation straightforward while retaining the other hardening tweaks; tests still not run. | ||
| - 2025-10-27T10:36:37Z – Adjusted the subscribers row to remain a flex container at large breakpoints so the icon/count stay vertically centered. | ||
| - 2025-10-27T10:37:17Z – Replaced inline SVGs with `@heroicons/react/24/outline` icons for chat and subscriber rows per styling request. | ||
| - 2025-10-27T10:39:25Z – Swapped the subscriber icon to `UsersIcon` to match the “two user” visual preference. | ||
| - 2025-10-27T10:40:37Z – Centered the author row by flex-aligning the container/link so avatar, handle, and level pill stay vertically aligned. | ||
| - 2025-10-27T10:41:59Z – Centered drop contributor avatars/count by aligning both rows with flex utilities. | ||
| - 2025-10-27T11:27:47Z – Increased Wave card and contributor avatar image scales to `AUTOx450` / `200x200` for sharper previews. | ||
| - 2025-10-27T11:33:06Z – Re-applied the higher-resolution Wave hero/author image scales after the Card layout tweaks. | ||
| - 2025-10-27T11:34:14Z – Tightened the hero overlay to a bottom-heavy gradient so the text block stays readable without dimming the whole image. | ||
| - 2025-10-27T11:43:58Z – Boosted wave hero, author, and contributor image requests to a new `250x250` scale for sharper rendering. | ||
| - 2025-10-27T11:46:17Z – Scoped the `250x250` scale to the wave hero only and restored author/contributor avatars to their lighter `AUTOx50` variant per request. | ||
| - 2025-10-27T11:47:13Z – Reverted the hero image to `AUTOx450`; CDN lacks a `250x250` variant so the asset vanished. | ||
| - 2025-10-27T12:09:23Z – Retried `250x250` for the hero (keeping avatars on `AUTOx50`) per latest request. | ||
| - 2025-10-27T12:12:45Z – Restored the hero image scale to `AUTOx450` to ensure the CDN-served asset renders reliably. | ||
| - 2025-10-27T14:06:24Z – Moved the Wave avatar/handle/level row below the hero image and above the meta bar to match the requested layout. |
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
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.