Skip to content

feat(website): make error tooltip direction configurable in AdvancedQueryFilter#1204

Open
fhennig wants to merge 2 commits into
mainfrom
feat/error-tooltip-direction
Open

feat(website): make error tooltip direction configurable in AdvancedQueryFilter#1204
fhennig wants to merge 2 commits into
mainfrom
feat/error-tooltip-direction

Conversation

@fhennig
Copy link
Copy Markdown
Contributor

@fhennig fhennig commented May 8, 2026

Summary

  • Adds an optional errorTooltipClass prop to AdvancedQueryFilter that is forwarded to the internal ErrorIconWithTooltip component, allowing callers to control which direction the validation error tooltip opens.
  • Defaults to 'tooltip-left lg:tooltip-right' (the original hardcoded value), so all existing usages are unchanged.

Design note

We considered using an explicit union type ('left' | 'right' | 'top' | 'bottom') with a lookup map to avoid Tailwind purging dynamic class names. However, that approach would have made it impossible for callers to pass responsive variants like tooltip-left lg:tooltip-right without introducing extra complexity. Accepting a plain class string keeps full flexibility — callers are responsible for using complete Tailwind class names so the compiler can detect them.

Screenshot

With tooltip-top

image

Test plan

  • Existing pages with AdvancedQueryFilter show the tooltip in the same position as before (left on small screens, right on large screens)
  • A caller passing e.g. errorTooltipClass="tooltip-top" sees the tooltip pinned top at all breakpoints

🤖 Generated with Claude Code

…ueryFilter

Adds an optional `errorTooltipClass` prop to `AdvancedQueryFilter` (and
the internal `ErrorIconWithTooltip`) so callers can control which
direction the validation error tooltip opens. Defaults to the original
`tooltip-left lg:tooltip-right` so existing usages are unchanged.

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

vercel Bot commented May 8, 2026

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

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment May 8, 2026 4:30pm

Request Review

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