Skip to content

Remove PushFeedback integration#100

Merged
hongyi-chen merged 3 commits into
mainfrom
remove-pushfeedback
May 19, 2026
Merged

Remove PushFeedback integration#100
hongyi-chen merged 3 commits into
mainfrom
remove-pushfeedback

Conversation

@hongyi-chen

Copy link
Copy Markdown
Collaborator

Removes the PushFeedback "Was this helpful?" widget from both the Starlight footer (every docs page) and the standalone Scalar API reference at /api.

Context: Hong Yi shared that PushFeedback wasn't on a team plan and submissions were sparse, so we can drop it for now and bring back a Warp-built equivalent later.

What's removed

  • src/components/FeedbackButtons.astro — purely the PushFeedback widget, deleted outright.
  • FeedbackButtons usage + related comments in src/components/FeedbackFooter.astro. The footer override stays so EditLink/LastUpdated remain hidden (preserves current visible layout).
  • <FeedbackButtons /> usage, related comments, and .api-feedback-* styles in src/pages/api.astro. The html[data-theme] MutationObserver/contract is retained because the first-paint canvas color CSS keys off it (independent of PushFeedback).
  • PUBLIC_PUSHFEEDBACK_PROJECT_ID envField from astro.config.mjs and the matching entry in .env.example.
  • https://app.pushfeedback.com from the connect-src CSP directive in all three vercel.json header blocks.

What stays the same

  • Footer on Starlight pages still renders Pagination + the "Built with Starlight" credit. EditLink/LastUpdated stay hidden (matches today's behavior).
  • The Scalar /api reference is unchanged aside from the missing widget; theme-sync scripts and first-paint canvas color rules still work.

Validation

  • npm run build succeeds (319 pages, clean).
  • grep -ri "pushfeedback\|FeedbackButtons" . and on the built dist/ directory return zero matches.

Conversation: https://staging.warp.dev/conversation/876a0dd7-f640-4891-abf3-43a7b90dc7c5
Run: https://oz.staging.warp.dev/runs/019e3ec6-c98e-7cfa-bb89-bb69bc01144f

This PR was generated with Oz.

Removes the 'Was this helpful?' PushFeedback widget from both the
Starlight footer (every docs page) and the standalone Scalar API
reference at /api.

Per Hong Yi: PushFeedback wasn't on a team plan and submissions
were sparse, so it can be removed for now and re-introduced later
with a Warp-built tool.

Changes:
- Delete src/components/FeedbackButtons.astro (purely PushFeedback).
- Strip FeedbackButtons reference + comments from
  src/components/FeedbackFooter.astro. The custom footer still
  drops EditLink + LastUpdated relative to Starlight's default
  (preserves current visible layout).
- Remove FeedbackButtons usage, comments, and .api-feedback-*
  styles from src/pages/api.astro. Theme script comments updated
  to drop PushFeedback's contract references (html[data-theme] is
  retained for the first-paint canvas color rules).
- Drop PUBLIC_PUSHFEEDBACK_PROJECT_ID envField from
  astro.config.mjs and .env.example.
- Remove https://app.pushfeedback.com from the connect-src
  directive in all three vercel.json CSP entries.

Verified with `npm run build` (319 pages built clean).

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 19, 2026
@vercel

vercel Bot commented May 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 19, 2026 5:08pm

Request Review

@hongyi-chen hongyi-chen marked this pull request as ready for review May 19, 2026 05:58
@oz-for-oss

oz-for-oss Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

@hongyi-chen

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

This PR removes the PushFeedback widget from the docs footer and API reference, deletes its public env field/example, and tightens CSP by dropping the PushFeedback connect-src host.

Concerns

  • No blocking correctness, spec, or security concerns found in the annotated diff.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

The border-top + padding-top on the footer were originally added to
visually separate the PushFeedback widget from the page content. With
the widget gone (#100), the divider no longer separates anything
meaningful, so drop it. The pagination card and Starlight credits
keep their own spacing via the existing footer gap + margin-top.

Co-Authored-By: Oz <oz-agent@warp.dev>
@hongyi-chen hongyi-chen merged commit a9e4b38 into main May 19, 2026
8 checks passed
@hongyi-chen hongyi-chen deleted the remove-pushfeedback branch May 19, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants