Skip to content

fix(public): repair heading hierarchy on terms, privacy, and Drishti privacy pages - #74

Merged
nish3451 merged 3 commits into
mainfrom
fix/trust-pages-heading-hierarchy
Aug 11, 2026
Merged

fix(public): repair heading hierarchy on terms, privacy, and Drishti privacy pages#74
nish3451 merged 3 commits into
mainfrom
fix/trust-pages-heading-hierarchy

Conversation

@nish3451

Copy link
Copy Markdown
Collaborator

What

The three trust pages still jumped from the H1 straight to H3 content-card headings, leaving the document outline without an H2 section level:

  • /terms/ -> public/terms/index.html
  • /privacy/ -> public/privacy/index.html
  • /drishti/privacy/ -> public/drishti/privacy/index.html

The three .info-card card titles on each page are now semantic H2s. The shared .info-card :is(h2, h3) CSS rule already keeps the former card scale and margin, so visible styling is unchanged.

Regression guard

scripts/test-public-heading-hierarchy.mjs now covers the three routes (62 checks, up from 44). The test fails if any card heading regresses to H3 (verified locally).

Verify

  • node scripts/test-public-heading-hierarchy.mjs -> 62 checks, 0 failures
  • npm run check -> exit 0 (all suites green)
  • git diff --check -> clean

…privacy pages

The three trust pages still jumped from the H1 straight to H3 content-card
headings, leaving the document outline without an H2 section level. The
card titles are now semantic H2s; the shared .info-card :is(h2, h3) rule
already keeps the former card scale and margin, so visible styling is
unchanged.

The heading-hierarchy regression test now covers the three routes too, so
CI fails if any of them skips a heading level again.

verify: node scripts/test-public-heading-hierarchy.mjs (62 checks, 0
failures; fails when a card heading is reverted to H3), npm run check
exit 0, git diff --check clean

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 26 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: 07391dc8-6016-4e80-a2d5-79f05df60efa

📥 Commits

Reviewing files that changed from the base of the PR and between 623576d and 17f1952.

📒 Files selected for processing (4)
  • public/drishti/privacy/index.html
  • public/privacy/index.html
  • public/terms/index.html
  • scripts/test-public-heading-hierarchy.mjs

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

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@greptile-apps greptile-apps 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.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@nish3451
nish3451 merged commit f1565a7 into main Aug 11, 2026
3 checks passed
nish3451 added a commit that referenced this pull request Aug 11, 2026
The fleet keeps dispatching the same finding to multiple lanes, producing
duplicate same-fix PR pairs: #36/#44 and #55/#56 are byte-identical or
near-identical patches of the operator export --help fix, #39/#49 the
offername article fix, #40/#52 the recording exporter --help fix, plus
#38/#48/#51, #30/#61/#72, #45/#64, #42/#60, #43/#54 and #46/#74.

Add a PR Duplicate Guard:
- scripts/check-pr-duplicates.mjs compares a PR's diff against every other
  open PR (shared changed-file coverage >= 0.8 and patch similarity >= 0.5).
  Calibrated on all 79 open PRs on 2026-08-11: every pair above the
  thresholds was a genuine duplicate-cluster member, zero false positives.
- .github/workflows/pr-duplicate-guard.yml runs it on every PR event and
  posts one marker comment naming the duplicate(s) and the canonical PR; the
  check fails loudly when a duplicate is found. Informational, not required.
- scripts/test-pr-duplicates.mjs covers parsing, similarity, detection, and
  comment upsert with an injected API; wired into npm ci and npm test.
nish3451 added a commit that referenced this pull request Aug 19, 2026
fix(public): verify trust-page H1->H2x3 outline on the live deploy (PR #74)
nish3451 added a commit that referenced this pull request Aug 21, 2026
…ierarchy-reverify-20260821

docs(lane1): reverify trust-page heading-hierarchy item — fixed in PR #74 and now verified live
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.

1 participant