Skip to content

fix: close post-merge trust and accessibility gaps - #101

Merged
AutomatedEmpires merged 4 commits into
mainfrom
codex/post-merge-review-fixes
Jul 28, 2026
Merged

AutomatedEmpires merged 4 commits into
mainfrom
codex/post-merge-review-fixes

Conversation

@AutomatedEmpires

@AutomatedEmpires AutomatedEmpires commented Jul 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • normalize canonical and common US plus US/Canada eligibility aliases without pulling server-only validation into client bundles
  • reject external lookalike generated-media URLs and let primary Discover failures reach its retry boundary
  • restore accessible contrast, 44px touch targets, and exactly one main landmark across host/admin states
  • add behavioral failure-propagation tests for cached and filtered Discover reads

Verification

  • pnpm validate
  • 95 test files, 1,371 tests
  • independent read-only review found no remaining P0/P1/P2 issues before hosted review
  • addressed both actionable hosted review findings with regression coverage
  • no migrations, provider changes, cron activation, email activation, or payment activation

Follow-up to the completed review on #99.

Copilot AI review requested due to automatic review settings July 28, 2026 18:31
@vercel

vercel Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sweepza Ready Ready Preview, Comment Jul 28, 2026 6:53pm

@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@AutomatedEmpires, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 40 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 327cfaf3-4cea-4558-a16b-32826f1af074

📥 Commits

Reviewing files that changed from the base of the PR and between 9dfee63 and f7eb265.

📒 Files selected for processing (4)
  • app/discover/__tests__/page.test.ts
  • lib/__tests__/listing-filters.test.ts
  • lib/__tests__/listing-state-code-schema.test.ts
  • lib/eligibility-country.ts
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 10.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description has Summary and Verification, but it omits Closes #, Lane, acceptance criteria, and the required canon/security checklists. Add the missing template sections: issue link, Lane, acceptance criteria, Canon alignment, and Security & quality checkboxes, plus any required details.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the PR's main focus on trust and accessibility fixes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/post-merge-review-fixes

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI 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.

Pull request overview

Closes trust and accessibility gaps from #99 by centralizing eligibility aliases, hardening generated-media detection, surfacing Discover failures, and correcting interaction semantics.

Changes:

  • Shares canonical US/Canada eligibility normalization across validation and filtering.
  • Restricts generated-media recognition to Sweepza hosts and propagates Discover read failures.
  • Restores contrast, touch-target sizing, and single-main landmark behavior.

Validation: PR reports pnpm validate passing with 1,368 tests. No blockers identified; maintainer may perform final merge review.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/eligibility-country.ts Adds shared country normalization helpers.
lib/us-state-codes.ts Reuses shared eligibility aliases.
lib/listing-filters.ts Applies canonical US eligibility matching.
lib/listing-media.ts Restricts fallback recognition to trusted hosts.
lib/__tests__/workflow-route-boundaries.test.ts Checks Discover error propagation.
lib/__tests__/listing-media-presentation.test.ts Covers external lookalike URLs.
lib/__tests__/listing-filters.test.ts Covers eligibility aliases.
lib/__tests__/interaction-accessibility.test.ts Adds accessibility contracts.
components/public-footer.tsx Enlarges footer touch targets.
components/mobile-shell.tsx Adds the role-workspace main landmark.
components/listing-card.tsx Fixes target sizing and contrast.
app/discover/page.tsx Routes listing failures to its boundary.
app/admin/layout.tsx Removes the nested main landmark.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9dfee632a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/eligibility-country.ts Outdated

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
lib/__tests__/workflow-route-boundaries.test.ts (1)

56-62: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Exercise Discover failure propagation at runtime.

This source-text test can pass if the calls are later wrapped in a different catch/fallback. Add a test that mocks getPublicListings and getCachedPublicListings to reject, invokes DiscoverPage for both filtered and default-feed inputs, and asserts that the returned promise rejects.

As per coding guidelines, **/*.{test,spec}.{ts,tsx} files must add tests for non-trivial logic.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@lib/__tests__/workflow-route-boundaries.test.ts` around lines 56 - 62, Add
runtime coverage to the Discover route tests by mocking both getPublicListings
and getCachedPublicListings to reject, then invoke DiscoverPage with filtered
and default-feed inputs and assert each returned promise rejects. Keep the
existing source-text assertions, and place the behavioral cases in the
applicable test file alongside them.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@lib/__tests__/workflow-route-boundaries.test.ts`:
- Around line 56-62: Add runtime coverage to the Discover route tests by mocking
both getPublicListings and getCachedPublicListings to reject, then invoke
DiscoverPage with filtered and default-feed inputs and assert each returned
promise rejects. Keep the existing source-text assertions, and place the
behavioral cases in the applicable test file alongside them.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9c2af649-9fc9-4e81-9d3b-187f4db5b328

📥 Commits

Reviewing files that changed from the base of the PR and between 66aa99a and 9dfee63.

📒 Files selected for processing (13)
  • app/admin/layout.tsx
  • app/discover/page.tsx
  • components/listing-card.tsx
  • components/mobile-shell.tsx
  • components/public-footer.tsx
  • lib/__tests__/interaction-accessibility.test.ts
  • lib/__tests__/listing-filters.test.ts
  • lib/__tests__/listing-media-presentation.test.ts
  • lib/__tests__/workflow-route-boundaries.test.ts
  • lib/eligibility-country.ts
  • lib/listing-filters.ts
  • lib/listing-media.ts
  • lib/us-state-codes.ts

@AutomatedEmpires
AutomatedEmpires merged commit 5dfe364 into main Jul 28, 2026
9 checks passed
@AutomatedEmpires
AutomatedEmpires deleted the codex/post-merge-review-fixes branch July 28, 2026 18:55
@AutomatedEmpires
AutomatedEmpires restored the codex/post-merge-review-fixes branch July 28, 2026 19:00
@coderabbitai coderabbitai Bot mentioned this pull request Jul 29, 2026
22 tasks done

This branch was successfully deployed

1 active deployment
Preview — f7eb2651 Deployed Jul 28, 2026 by vercel[bot]
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.

2 participants