Skip to content

fix(web): make job card links match their visible labels - #4598

Merged
strelov1 merged 6 commits into
mainfrom
fix/4327-job-card-link
Nov 14, 2026
Merged

strelov1 merged 6 commits into
mainfrom
fix/4327-job-card-link

Conversation

@strelov1

@strelov1 strelov1 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

What and why

Job cards wrapped every visible word in a link named only by the title and company, violating WCAG 2.5.3 (Label in Name). Make the title the link's only visible content, and stretch its native hit area across the card content.

Keep keyboard focus visible inside clipped feed containers, preserve native link behavior and independent Save/Hide/Apply controls, and isolate decorative country flags beneath the link. Full skill/location labels and badge evidence remain available in a native card-wide tooltip (instead of the previous per-chip tooltips).

Remove the axe waiver entirely. Add browser regressions for both listing surfaces, responsive metadata clicks, overlapping flags, actual hover disclosure, keyboard navigation, and independent actions.

Closes #4327

Validation

  • Independent review completed after all feedback fixes; no actionable findings remain. Final-head GitHub reviews and CI are tracked in Checks.
  • Local production build, typecheck (0 errors), ESLint, token coverage, integration-tagged Go vet and gitleaks passed.
  • Two mounted regressions reproduced missing application-badge evidence before the fix; all 31 JobView/JobRow component tests pass after it. The full suite also runs in CI.
  • Expanded axe/navigation suite: 17/17 passed on final source with the standard timeout (20.1s). No rule or assertion was disabled. Earlier local runs encountered intermittent Chromium page-creation timeouts; clean CI passed on the preceding head.
  • Real isolated API/Postgres/Meilisearch: 86 Vercel postings ingested, 78 searchable technical postings. Doctor passed on the matching source revision. Built-web browser journey passed 3/3, with no JS/console/5xx errors. The production-build reverse proxy replaces a Vite dev-server transport that timed out on this host.

Checklist

  • I understand this code and its callers.
  • No Go changes; Go-only commit checks are not applicable. go vet -tags=integration ./... passed before each push.
  • No generated contract/schema artifacts changed.
  • No design-system changes; token-coverage baseline is unchanged.
  • Local web typecheck, production build and accessibility assertions passed.
  • The change stays within the existing job-card UI.

Note

Medium Risk
Job card navigation and pointer targeting changed across major list surfaces, with broad new e2e coverage but still a user-facing interaction refactor.

Overview
Fixes WCAG 2.5.3 (Label in Name) by no longer wrapping the whole job card in one link. Only the title is the <a>, with a stretched ::after hit area so metadata clicks still open the posting, while Save, Hide, and Apply stay siblings above the overlay (z-10).

Accessible naming stays title + company via aria-label, with extra context in aria-describedby and a card-wide title tooltip built from location, skills, badges, and exported tooltip strings from DirectApplyBadge / AppliedCompanyBadge. Keyboard focus uses an inset outline so it remains visible in clipped feeds.

E2E/a11y: drops the axe waiver for label-content-name-mismatch; serious/critical violations are enforced as-is. Adds teardown (networkidle, unrouteAll) and regressions for link labels, keyboard Enter, metadata/flag clicks, independent card actions, apply gate, and hover tooltip disclosure. Unit/source tests cover tooltip evidence on h3 a; fixtures gain US flag and an extra skill for those scenarios.

Reviewed by Cursor Bugbot for commit efaede6. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Accessibility
    • Job cards now provide a descriptive title link with additional job details on hover, while keeping card actions separately accessible.
    • Improved keyboard focus and navigation, including navigation from metadata and overlapping country flags.
    • Added coverage for job-link descriptions, Save and Hide actions, and Apply behavior.
    • Accessibility checks now report all serious and critical violations.
  • Bug Fixes
    • Job-navigation checks now wait for destination content and network activity to finish.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

JobRow now uses a title link with a card-wide hit area and a metadata description. Accessibility tests cover link naming, focus, navigation, card actions, and overlapping content.

Changes: Job Card Accessibility

Layer / File(s) Summary
Stretched title link
web/src/lib/components/JobRow.svelte, web/src/lib/components/AppliedCompanyBadge.svelte, web/src/lib/components/DirectApplyBadge.svelte, web/src/lib/components/jobRowApplyButton.test.ts, web/src/lib/components/JobView.spec.ts
JobRow moves navigation to the title link and extends its hit area across the card content. Its tooltip combines the link name and summary with job and company metadata. Badge tooltip text uses exported constants. Card controls stack above the link. The compact match invitation no longer has a separate screen-reader-only copy.
Accessibility and interaction tests
web/e2e/a11y.spec.ts, web/e2e/a11y/fixtures.ts
The tests cover link text, accessible name and description, focus, navigation, metadata interaction, and card actions. The axe check reports serious and critical violations. The fixture adds a country and a skill.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: Minimal · up to efaed

This updates job cards so the title is the only link text, which addresses an accessibility naming requirement. Save, Hide and Apply stay independent. No actionable merge risk remains beyond confirming that the full CI suite passes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): make job card links match their visible labels" describes the main change. The PR makes the job title the card link's only visible content, with a stretched hit area, so the acces…
Linked Issues check Passed Issue #4327 requires the job-card link accessible name to contain its visible text (WCAG 2.5.3). It also requires removing the LABEL_IN_NAME waiver from /jobs and /companies/:slug. The previous review…
Out of Scope Changes check Passed The changes stay within the job-card scope of #4327. JobRow.svelte moves the link to the title and keeps Save, Hide and Apply as independent controls. Per-chip tooltips are replaced by one card-wide t…
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix(web): make job card links match their visible labels" describes the main change. The PR makes the job title the card link's only visible content, with a stretched hit area, so the accessible name matches the visible label (WCAG 2.5.3). It also removes the axe waiver for job-card links, consistent with linked issue #4327. The title is concise and specific. It omits the stretched-hit-area and tooltip details, which is acceptable.

Full details: Linked Issues check

Explanation

Issue #4327 requires the job-card link accessible name to contain its visible text (WCAG 2.5.3). It also requires removing the LABEL_IN_NAME waiver from /jobs and /companies/:slug. The previous review found no rule-disabling or LABEL_IN_NAME exception in web/e2e/a11y.spec.ts at the reviewed head. The spec test 'job title link names only its visible title' asserts link text 'Senior Backend Engineer' and accessible name 'Senior Backend Engineer at Acme'. The link name therefore contains the visible text. The incremental change from 3d9301d to efaede6 adds shared tooltip constants (directApplyTooltip, appliedCompanyTooltip) and JobView.spec.ts tooltip assertions. These do not change the link name or the waiver removal. At efaede6, JobRow.svelte shows the title-only design, with Save, Hide and Apply as sibling controls and a card-wide tooltip. The file read was truncated before the link markup. The incremental diff could not be read because changed blobs were missing from the checkout. The passing a11y run is author-reported and was not re-executed here.

Full details: Out of Scope Changes check

Explanation

The changes stay within the job-card scope of #4327. JobRow.svelte moves the link to the title and keeps Save, Hide and Apply as independent controls. Per-chip tooltips are replaced by one card-wide tooltip. a11y.spec.ts adds regressions for this card behavior and afterEach stub cleanup. fixtures.ts adds a US country and one skill to support those regressions. jobRowApplyButton.test.ts drops only the test of the removed linkName aria-label. The efaede6 increment exports tooltip constants from DirectApplyBadge.svelte and AppliedCompanyBadge.svelte, which are card badges, and adds JobView.spec.ts tests for their tooltip evidence. No unrelated feature or non-card change was found in the inspected paths. The incremental diff could not be read, so this verdict relies on the supplied summaries and the previous review.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3d9301d and efaede6.

Files selected for processing: 4

  • web/src/lib/components/AppliedCompanyBadge.svelte
  • web/src/lib/components/DirectApplyBadge.svelte
  • web/src/lib/components/JobRow.svelte
  • web/src/lib/components/JobView.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T18:19:58.797370Z efaede6 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: bc1ba766-ba23-40c4-99c4-7067d2ccda50)

@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 76cdd3c7-03c2-439b-a730-0bc140f31264)

@strelov1

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: f0f52922c5

ℹ️ 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".

@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 7152abb4-dc14-4e80-9962-4e1ea996c2f6)

@strelov1

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 2e96e52899

ℹ️ 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".

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

OpenCodeReview — commit 3d9301d8835e

Review incomplete. Retry with @codereview; diagnostics are kept private.

low · web/src/lib/components/JobRow.svelte:367
The stretched overlay intercepts pointer hover over the whole content area, so every badge's evidence was aggregated into linkTooltip — except DirectApplyBadge and AppliedCompanyBadge. Both render in the signal row with their own titles ("Published by the employer on freehire…", "You already applied…"), which were reachable before this change but are now permanently covered by the link's card-wide tooltip (the new a11y spec proves the interception: hovering a chip's coordinates matches a:hover[title] on the card link). Add their evidence here like the rest, ideally re-exporting the copy from the badge components rather than duplicating the strings.

@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 2b01df74-3d13-4b5a-ad32-44eaeffa6815)

@strelov1

Copy link
Copy Markdown
Owner Author

Addressed both OCR low findings in 3d9301d88: fixture facets now include both countries with no contradictory region restriction, and compact-caption Lock/FileText icons are explicitly decorative. Merged current main normally to align the comparison base. Independent re-review found no remaining actionable issues.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 3d9301d883

ℹ️ 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".

@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: 85a55ee5-2687-448a-b0cb-0ba8df59bffa)

@strelov1

Copy link
Copy Markdown
Owner Author

Fixed the remaining OCR evidence finding in efaede61e: DirectApplyBadge and AppliedCompanyBadge now share their tooltip constants with the stretched card link. Both mounted regressions failed against the old implementation; all 31 component tests and 17 axe/navigation tests pass with the fix. Independent followup review found no actionable issues.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: efaede61ee

ℹ️ 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".

@strelov1
strelov1 merged commit 36a4bb1 into main Nov 14, 2026
49 of 50 checks passed
@strelov1
strelov1 deleted the fix/4327-job-card-link branch November 14, 2026 18:27
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.

Make the job card link's accessible name contain its visible text (WCAG 2.5.3)

1 participant