Skip to content

fix: ShadCN/Ariakit AI menu #1688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: feature/ai
Choose a base branch
from
Open

fix: ShadCN/Ariakit AI menu #1688

wants to merge 1 commit into from

Conversation

matthewlipski
Copy link
Collaborator

  • Fixed the AI menu design in both Ariakit and ShadCN
  • Added a rightSection prop to inputs
  • Added thinking/loading/error states to AI menu
  • Externalized remaining AI menu strings

Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ❌ Failed (Inspect) May 15, 2025 5:57pm
blocknote-website ❌ Failed (Inspect) May 15, 2025 5:57pm

Copy link
Collaborator

@YousefED YousefED left a comment

Choose a reason for hiding this comment

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

nice, looks good! some small comments


assertEmpty(rest);

return (
<div className={className} ref={ref}>
{children}
<svg
Copy link
Collaborator

Choose a reason for hiding this comment

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

did you copy this from anywhere? in that case always good to leave the source url as a comment

} else if (aiResponseStatus === "error") {
return (
<div className={"bn-combobox-right-section bn-combobox-error"}>
<span>!</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

this ! is selectable, which is a bit weird. Also, maybe there are nicer icons for this?

@@ -3,6 +3,9 @@ export const en = {
ai: {
tooltip: "Generate content",
input_placeholder: "Enter a prompt",
thinking: "Thinking",
editing: "Editing",
error: "An error has occurred",
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you also remove unused items from the dictionaries? like ai_block

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