GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — CodeRabbit Generated Unit Tests: Add unit tests for PR changes by coderabbitai[bot] · Pull Request #3688 · pingdotgg/t3code Conversation
|
|
Important Review skippedThis PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback. ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b987aae. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| it("clamps timestamps in the future to '<1m' rather than a negative duration", () => { | ||
| expect(relativeTime(new Date(NOW + 60_000).toISOString())).toBe("<1m"); | ||
| }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Medium Severity
The relativeTime function in apps/mobile/src/lib/time.ts returns 'now' for invalid inputs and timestamps under 10s, and 'Ns' for 10-59s deltas. This conflicts with the new tests, which expect '<1m>' for invalid, current, sub-minute, and future timestamps.
Reviewed by Cursor Bugbot for commit b987aae. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| const group = buildGroups([project], threads)[0]; | ||
| // Default view trims to recent threads... | ||
| expect(group?.recentThreads.map((thread) => thread.id)).toEqual(["recent-1", "recent-2"]); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
High Severity
The new buildHomeThreadGroups tests are failing with undefined.map() errors. It appears the function's return object is missing the recentThreads property that the tests expect.
Reviewed by Cursor Bugbot for commit b987aae. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| hiddenCount: 8, | ||
| canShowLess: false, | ||
| }); | ||
| }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Medium Severity
New buildHomeListLayout cases assume a recency baseline from recentThreads (e.g. two visible threads and show-less back to two), but buildHomeListLayout only slices group.threads with HOME_INITIAL_VISIBLE_THREADS and nextGroupDisplayState show-less still resets to six.
Reviewed by Cursor Bugbot for commit b987aae. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved Test-only changes that add unit tests for home list and time utilities. No production code is modified, so there is no runtime impact. Open review comments flag potential test correctness issues, but these would surface as CI failures rather than production bugs. You can customize Macroscope's approvability policy. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing because the current patch has conflicting invalid test expectations, failing required Check/Test jobs, and no small safe remediation path. A fresh implementation against current main would be preferable. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.