Skip to content

fix(webapp): ask ai button missing tooltip#2964

Merged
mpcgrid merged 5 commits intomainfrom
fix(webapp)-ask-ai-missing-tooltip
Feb 5, 2026
Merged

fix(webapp): ask ai button missing tooltip#2964
mpcgrid merged 5 commits intomainfrom
fix(webapp)-ask-ai-missing-tooltip

Conversation

@samejr
Copy link
Member

@samejr samejr commented Jan 28, 2026

Fixes

  • the tooltip not displaying on the AskAI button in the side menu
  • incorrect AskAI button heights
  • Small UI tweaks

Open with Devin

@changeset-bot
Copy link

changeset-bot bot commented Jan 28, 2026

⚠️ No Changeset found

Latest commit: f197259

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@samejr samejr changed the title Fix(webapp) ask ai missing tooltip fix(webapp): ask ai button missing tooltip Jan 28, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 28, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

Reworked the tooltip/trigger composition for the Ask AI control so the trigger wrapper changed and the button now uses conditional full-width/height styling when collapsed. The visible keyboard hint and trigger key were changed from "/" to "i". Tooltip content positioning was simplified to side="right" with sideOffset=8 and reduced class complexity. The side menu’s vertical divider was made hover-aware, toggling background color with a transition. The shortcuts mapping for Ask AI was replaced from a single mod+"/" entry to two entries: one mod-only and one key "i".

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing key template sections including issue reference, contributor checklist, and testing/changelog details required by the repository template. Add missing sections: issue reference (Closes #), checklist items, detailed testing steps, and comprehensive changelog description following the template structure.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix(webapp): ask ai button missing tooltip' accurately summarizes the main issue being addressed - fixing a missing tooltip on the AskAI button.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix(webapp)-ask-ai-missing-tooltip

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f937422 and f197259.

📒 Files selected for processing (1)
  • apps/webapp/app/components/Shortcuts.tsx

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@vibe-kanban-cloud
Copy link

Review Complete

Your review story is ready!

View Story

Comment !reviewfast on this PR to re-generate the story.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@apps/webapp/app/components/AskAI.tsx`:
- Around line 121-141: The TooltipTrigger is currently using asChild which
applies tooltip props to the wrapping span so the Button doesn't receive
aria-describedby; make the Button the direct child/trigger instead: remove the
wrapping span and render TooltipTrigger with the Button as its child (keep
TooltipTrigger, Button, and TooltipContent), move sizing classes
(cn("inline-flex h-8", isCollapsed && "w-full") and cn("h-full", isCollapsed &&
"justify-center")) onto the Button's className, preserve props like
variant="small-menu-item", data-action, shortcut, onClick (openAskAI),
fullWidth={isCollapsed} and hideShortcutKey so accessibility and behavior remain
unchanged.
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 34203d6 and 2f8faee.

📒 Files selected for processing (2)
  • apps/webapp/app/components/AskAI.tsx
  • apps/webapp/app/components/navigation/SideMenu.tsx
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/*.{ts,tsx}: Use types over interfaces for TypeScript
Avoid using enums; prefer string unions or const objects instead

**/*.{ts,tsx}: Always import tasks from @trigger.dev/sdk, never use @trigger.dev/sdk/v3 or deprecated client.defineJob pattern
Every Trigger.dev task must be exported and have a unique id property with no timeouts in the run function

Files:

  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/AskAI.tsx
{packages/core,apps/webapp}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Use zod for validation in packages/core and apps/webapp

Files:

  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/AskAI.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Use function declarations instead of default exports

Import from @trigger.dev/core using subpaths only, never import from root

Files:

  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/AskAI.tsx
apps/webapp/app/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/webapp.mdc)

Access all environment variables through the env export of env.server.ts instead of directly accessing process.env in the Trigger.dev webapp

Files:

  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/AskAI.tsx
apps/webapp/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/webapp.mdc)

apps/webapp/**/*.{ts,tsx}: When importing from @trigger.dev/core in the webapp, use subpath exports from the package.json instead of importing from the root path
Follow the Remix 2.1.0 and Express server conventions when updating the main trigger.dev webapp

Access environment variables via env export from apps/webapp/app/env.server.ts, never use process.env directly

Files:

  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/AskAI.tsx
**/*.{js,ts,jsx,tsx,json,md,yaml,yml}

📄 CodeRabbit inference engine (AGENTS.md)

Format code using Prettier before committing

Files:

  • apps/webapp/app/components/navigation/SideMenu.tsx
  • apps/webapp/app/components/AskAI.tsx
🧬 Code graph analysis (1)
apps/webapp/app/components/AskAI.tsx (2)
apps/webapp/app/utils/cn.ts (1)
  • cn (77-79)
apps/webapp/app/components/primitives/Buttons.tsx (1)
  • Button (296-329)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (22)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (4, 8)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (6, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (1, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (3, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (1, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (2, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (6, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (5, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (7, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (3, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (5, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (4, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (8, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (8, 8)
  • GitHub Check: units / internal / 🧪 Unit Tests: Internal (7, 8)
  • GitHub Check: units / webapp / 🧪 Unit Tests: Webapp (2, 8)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
  • GitHub Check: units / packages / 🧪 Unit Tests: Packages (1, 1)
  • GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - npm)
  • GitHub Check: typecheck / typecheck
  • GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - pnpm)
🔇 Additional comments (1)
apps/webapp/app/components/navigation/SideMenu.tsx (1)

996-999: Nice hover feedback for the divider.
Line 996-999 looks good; the transition and hover color swap are clear and low-risk.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

@samejr samejr marked this pull request as ready for review January 28, 2026 16:57
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional flags.

Open in Devin Review

@samejr
Copy link
Member Author

samejr commented Jan 28, 2026

CMD+I seems to be a very solid alternative - Mintlify, Supbase both use it. In future we could combine AI with CMD+K like notion

@mpcgrid mpcgrid merged commit c55af7b into main Feb 5, 2026
30 of 31 checks passed
@mpcgrid mpcgrid deleted the fix(webapp)-ask-ai-missing-tooltip branch February 5, 2026 01:17
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