Repository navigation
Added Product Tour button - #225
Conversation
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
|
Thanks for this! It matches the issue well — correct tour URL with 1. Required — formatting will fail CI
Easiest fix — run 2. Recommended — reuse
|
|
Hi @gkhngyk , I've addressed both the formatting and buttonVariants feedback. Ready for re-review when you get a chance!" |
|
Merged — thanks for the quick turnaround! Clean use of |
The brands page is a Server Component but called buttonVariants() (for the Product Tour link added in #225). buttonVariants was exported from button.tsx, which is a 'use client' module, so the export became a client reference and threw at render: 'Attempted to call buttonVariants() from the server but buttonVariants is on the client.' Move the cva definition into its own non-client module (components/ui/button-variants.ts) and import buttonVariants into the brands page from there. button.tsx re-exports it unchanged, so the 6 existing client callers keep working with no change.
Add Product Tour button to Brands page header
Fix #194
What changed
Added a Product Tour button to the
BrandsHeadercomponent inweb/src/app/[locale]/(dashboard)/dashboard/brands/page.tsx.Details
target="_blank",rel="noopener noreferrer")https://app.supademo.com/demo/cmq2b1p5k0rk9qm6ugicrn655?utm_source=linkcanAddBrand/needsUpgradestateCompassandExternalLinkicons fromlucide-reactScreenshots
Notes