Skip to content

fix(public): guard the live site against footer tap-target drift (closes footer backlog item) - #69

Closed
nish3451 wants to merge 1 commit into
mainfrom
fix/lane1-footer-tap-targets-live-guard
Closed

fix(public): guard the live site against footer tap-target drift (closes footer backlog item)#69
nish3451 wants to merge 1 commit into
mainfrom
fix/lane1-footer-tap-targets-live-guard

Conversation

@nish3451

Copy link
Copy Markdown
Collaborator

What

The backlog item "Mobile tap targets fall below the WCAG 2.2 24px minimum on every tinystudio.in page - footer" re-opened because the live site is still serving the pre-fix stylesheet. PR #22 raised .footer-links a to inline-block; min-height: 24px; padding: 4px 0 in public/styles.css, but the grok audit measures https://tinystudio.in/ (live), not public/ (main).

Measured right now:

State .footer-links a rule in served stylesheet Effective footer tap target (mobile)
Live tinystudio.in/styles.css plain inline anchor, no min-height, no padding ~17px glyph box (below the 24px minimum)
Worktree public/styles.css (main, incl. #22) inline-block, min-height 24px, padding 4px 0 24px+ row on all 13 pages

The deployed stylesheet md5 0d1e2219… matches commit 828f434 (pre-fix); main's is 88ec9a4f….

Change

Add scripts/test-public-live-footer-targets.mjs, wired into npm test and npm run ci:

  • Fetches the deployed https://tinystudio.in/styles.css and re-asserts the exact .footer-links a rule the local suite (test-public-link-targets.mjs) requires: block-level box (not plain inline), min-height: 24px, >= 4px vertical padding.
  • Network-tolerant: skips with a notice when the site is unreachable; fails loudly when the site serves a stylesheet that misses the rule.
  • LIVE_CSS_URL env override for local verification (not used in CI).

Current status

Fails against the live deployment (3 checks) — that failure is the point: it makes the stale deployment visible in npm test/npm run ci until the live site is refreshed from origin/main, then passes.

Verified:

  • Live: node scripts/test-public-live-footer-targets.mjs → 7 checks, 3 failures (rule missing on live)
  • Local compliant sheet via LIVE_CSS_URL=http://127.0.0.1:8931/styles.css → 8 checks, 0 failures
  • node --check, git diff --check clean

Related: PR #66 guards the live sheet for the in-content link rules; this PR closes the separate footer backlog item with a footer-focused guard.

The grok backlog item re-opened because the live site is still serving the
pre-fix stylesheet: PR #22 gave .footer-links a 'inline-block;
min-height: 24px; padding: 4px 0' in public/styles.css, but the deployed
tinystudio.in/styles.css renders footer links as ~17px plain-inline glyph
boxes on every page at mobile widths - below the WCAG 2.2 SC 2.5.8 24px
minimum - while the worktree is compliant.

Add scripts/test-public-live-footer-targets.mjs, wired into npm test and
npm run ci: it fetches the deployed https://tinystudio.in/styles.css and
re-asserts the .footer-links a rule the local suite
(test-public-link-targets.mjs) requires (block-level box, min-height 24px,
>= 4px vertical padding). Network-tolerant: skips when the site is
unreachable, fails loudly when it serves a stylesheet that misses the rule.

Currently fails against the live deployment (3 checks) until the live site
is refreshed from origin/main - that failure is the point.

verify: node scripts/test-public-live-footer-targets.mjs (live: 3 FAILs);
LIVE_CSS_URL=http://127.0.0.1:8931/styles.css (local sheet: 8 checks, 0
failures); node --check; git diff --check

@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: 16 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: e2c76664-de17-4297-aafe-f45ecd9eb142

📥 Commits

Reviewing files that changed from the base of the PR and between 2e3c00e and 40258b7.

📒 Files selected for processing (2)
  • package.json
  • scripts/test-public-live-footer-targets.mjs

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

@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: 40258b7af2

ℹ️ 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 on lines +52 to +53
if (!res.ok) {
console.log(` ok skipped: ${LIVE_CSS_URL} answered ${res.status}, deployment not reachable - no footer tap-target assertions run`)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fail when the stylesheet endpoint returns an HTTP error

When the live deployment returns a non-2xx response—such as a 404 because styles.css was omitted or a 500 from the server—fetch succeeds, this branch merely reports a skip, and the new guard exits successfully after its wiring checks. That lets CI pass while every public page may be loading no stylesheet at all; reserve skipping for transport-level unreachability and record an assertion failure for HTTP error responses.

Useful? React with 👍 / 👎.

@nish3451

Copy link
Copy Markdown
Collaborator Author

Superseded by #110, which asserts the deployed footer tap-target rule inside the existing live checkers (check-public-live-deploy.mjs / check-public-live-soft-404.mjs) instead of adding a standalone script. Closing in favour of #110.

@nish3451 nish3451 closed this Aug 19, 2026
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