-
Notifications
You must be signed in to change notification settings - Fork 3
UN-3676, UN-3680 Updates for Neuro UI to consume this library #224
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -212,7 +212,7 @@ export default function Index(): ReactElement { | |
| id="explore-agent-networks-link-anchor" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| href={`/projects?${buildQueryString()}`} | ||
| href="#" | ||
|
dsargent marked this conversation as resolved.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dummy url.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should just remove
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is ignored -- only the outer |
||
| > | ||
| <LaunchButton id="neuro-san-button">Explore agent networks</LaunchButton> | ||
| </a> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,6 +73,9 @@ export interface NavbarProps { | |
|
|
||
| // Optional logo.dev token for customer branding | ||
| readonly logoServiceToken?: string | ||
|
|
||
| // Optional flag to show/hide the settings button, defaults to true | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So that Neuro UI can opt-out of Settings...for now. |
||
| readonly showSettingsButton?: boolean | ||
| } | ||
|
|
||
| const MENU_ITEM_TEXT_PROPS = { | ||
|
|
@@ -99,6 +102,7 @@ export const Navbar = ({ | |
| logoServiceToken, | ||
| pathname, | ||
| query, | ||
| showSettingsButton = true, | ||
| signOut, | ||
| supportEmailAddress, | ||
| userInfo, | ||
|
|
@@ -452,19 +456,21 @@ export const Navbar = ({ | |
| /> | ||
| </Tooltip> | ||
| {/* Settings */} | ||
| <Tooltip title="Settings"> | ||
| <SettingsIcon | ||
| sx={{ | ||
| ...MENU_ITEM_TEXT_PROPS, | ||
| marginRight: "1rem", | ||
| fontSize: "1rem", | ||
| cursor: "pointer", | ||
| }} | ||
| onClick={() => { | ||
| setSettingsDialogOpen(true) | ||
| }} | ||
| /> | ||
| </Tooltip> | ||
| {showSettingsButton && ( | ||
| <Tooltip title="Settings"> | ||
| <SettingsIcon | ||
| sx={{ | ||
| ...MENU_ITEM_TEXT_PROPS, | ||
| marginRight: "1rem", | ||
| fontSize: "1rem", | ||
| cursor: "pointer", | ||
| }} | ||
| onClick={() => { | ||
| setSettingsDialogOpen(true) | ||
| }} | ||
| /> | ||
| </Tooltip> | ||
| )} | ||
| </Grid> | ||
| ) : ( | ||
| <LoadingSpinner id="navbar-loading-spinner" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ limitations under the License. | |
| * Export modules so they can be imported with simpler paths in the consumer | ||
| */ | ||
|
|
||
| export * from "./Theme/Theme" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Expose these so Neuro UI can use them. |
||
| export * from "./components/AgentChat/ChatCommon" | ||
| export * from "./components/AgentChat/ControlButtons" | ||
| export * from "./components/AgentChat/LlmChatButton" | ||
|
|
@@ -49,6 +50,7 @@ export * from "./controller/agent/Agent" | |
| export * from "./controller/llm/LlmChat" | ||
| export * from "./generated/neuro-san/NeuroSanClient" | ||
| export * from "./state/Environment" | ||
| export * from "./state/Settings" | ||
| export * from "./state/UserInfo" | ||
| export * from "./utils/Authentication" | ||
| export * from "./utils/text" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ | |
| "jsonrepair": "3.8.0", | ||
| "lodash-es": "4.17.23", | ||
| "next": "16.1.6", | ||
| "next-auth": "5.0.0-beta.30", | ||
| "notistack": "3.0.2", | ||
| "react-dom": "19.2.4", | ||
| "react-markdown": "10.1.0", | ||
|
|
@@ -43,7 +42,9 @@ | |
| "@emotion/styled": "^11.13.0", | ||
| "@mui/icons-material": "^7.3.1", | ||
| "@mui/material": "^7.3.1", | ||
| "@mui/system": "^7.3.1", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make these peer deps for smoother integration with Neuro UI and others.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "@mui/x-tree-view": "^8.22.0", | ||
| "next-auth": "5.0.0-beta.30", | ||
| "react": "^19.2.4", | ||
| "react-dom": "^19.2.4", | ||
| "typescript": "^5.9.2" | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much point continuing if we got an error here. Also, now matches Neuro UI.