Skip to content

ui: rename Edit Page button to Suggest an Edit with tooltip#966

Open
KaroEverling wants to merge 3 commits into
keboola:mainfrom
KaroEverling:ui/suggest-an-edit-button
Open

ui: rename Edit Page button to Suggest an Edit with tooltip#966
KaroEverling wants to merge 3 commits into
keboola:mainfrom
KaroEverling:ui/suggest-an-edit-button

Conversation

@KaroEverling

Copy link
Copy Markdown

Summary

  • Renames the "Edit Page" button at the bottom of every docs page to "Suggest an Edit"
  • Adds a hover tooltip: "Want to improve this page? Submit a pull request on GitHub. We review all suggestions within 48 hours."

Changes

  • src/components/EditLink.astro — new Starlight component override with the updated label and tooltip markup
  • src/styles/custom.css — tooltip styles appended (per repo convention — no <style> blocks in components)
  • astro.config.mjs — registers EditLink in the Starlight component overrides map

Test plan

  • Run npm run dev and confirm the button reads "Suggest an Edit" on any docs page
  • Hover over the button and confirm the tooltip appears with the correct text
  • Confirm the link still points to the correct GitHub edit URL

🤖 Generated with Claude Code

- Add EditLink.astro component override (Starlight)
- Button text: "Edit Page" → "Suggest an Edit"
- Tooltip on hover: "Want to improve this page? Submit a pull request
  on GitHub. We review all suggestions within 48 hours."
- CSS lives in custom.css per repo conventions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@KaroEverling is attempting to deploy a commit to the Keboola Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
connection-docs Ready Ready Preview, Comment Jun 16, 2026 3:52pm

Request Review

@jordanrburger

Copy link
Copy Markdown
Contributor

I don't see suggest an edit on any pages. Looks like this got rid of the button.

@jordanrburger jordanrburger 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.

Pls check the preview. I don't see the suggest an edit button

@KaroEverling

Copy link
Copy Markdown
Author

Hey @jordanrburger — fixed! Two issues were causing the button to disappear:

  1. Starlight 0.38 moved route data to Astro.locals.starlightRoute instead of Astro.props — so editUrl was always undefined
  2. The Icon import path was wrong, causing a module error

Both are resolved in the latest two commits. Could you authorize the Vercel preview rebuild so you can verify? The button shows correctly locally.

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