feat: integrate Ozwell AI chat widget and define tool schemas#162
Open
Dharp02 wants to merge 2 commits into
Open
feat: integrate Ozwell AI chat widget and define tool schemas#162Dharp02 wants to merge 2 commits into
Dharp02 wants to merge 2 commits into
Conversation
…n styling Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a major new integration: the Ozwell AI chat widget is now embedded into the authenticated shell of the app. The OzwellWidget enables AI-powered interactions, allowing users to navigate, manage time tracking, tickets, and teams via natural language. Supporting this, the PR defines a comprehensive schema for all AI-accessible tools and refactors navigation to use the app's router for a more seamless experience. It also improves UX by ensuring the main content scrolls to the top on route changes.
Youtube video: https://youtube.com/shorts/CaydbNZpgz8?si=OnYNgz65vGSZ7bH8
Ozwell AI Integration:
OzwellWidgetcomponent, which mounts the Ozwell AI chat widget, injects the loader script, keeps the widget's context in sync with app state (user, team, page), and handles all AI tool calls for navigation, clock, tickets, and teams.OzwellWidgetinto the main app layout so the AI chat bubble is available across the authenticated shell. [1] [2]AI Tooling and Schema:
ozwell-tools.ts, defining the schema for all tools the AI agent can use (navigation, reading context, clock, tickets, teams), specifying parameters, descriptions, and requirements for each tool.Navigation and UX improvements:
ClockPageto use the app's router (navigate) instead of anchor tags, ensuring client-side navigation and a smoother experience. [1] [2]Other:
useRefimport inAppLayout.tsxto support the new scroll-to-top behavior.