-
Notifications
You must be signed in to change notification settings - Fork 1
refactor(ui): all unnecessary ui removed #48
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
Merged
developerEhsan
merged 1 commit into
master
from
47-change-name-from-notebook-to-treo-some-other-required-changes-to-finalize-the-application
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,112 +1,36 @@ | ||
| import { | ||
| AudioWaveform, | ||
| BookOpen, | ||
| Bot, | ||
| Command, | ||
| Frame, | ||
| GalleryVerticalEnd, | ||
| Map, | ||
| PieChart, | ||
| Settings2, | ||
| SquareTerminal | ||
| } from 'lucide-react' | ||
| import { | ||
| Sidebar, | ||
| SidebarContent, | ||
| SidebarFooter, | ||
| SidebarHeader, | ||
| SidebarRail, | ||
| useSidebar | ||
| } from './ui/sidebar' | ||
| import { NotebookTabsIcon, Settings2, TextSelectIcon } from 'lucide-react' | ||
| import { Sidebar, SidebarContent, SidebarHeader, SidebarRail, useSidebar } from './ui/sidebar' | ||
| import { TeamSwitcher } from './team-switcher' | ||
| import { NavMain } from './nav-main' | ||
| import { NavProjects } from './nav-projects' | ||
| import { NavUser } from './nav-secondary' | ||
|
|
||
| // This is sample data. | ||
| const data = { | ||
| user: { | ||
| name: 'shadcn', | ||
| name: 'username', | ||
| email: '[email protected]', | ||
| avatar: '/avatars/shadcn.jpg' | ||
| }, | ||
| teams: [ | ||
| { | ||
| name: 'Acme Inc', | ||
| logo: GalleryVerticalEnd, | ||
| plan: 'Enterprise' | ||
| }, | ||
| { | ||
| name: 'Acme Corp.', | ||
| logo: AudioWaveform, | ||
| plan: 'Startup' | ||
| }, | ||
| { | ||
| name: 'Evil Corp.', | ||
| logo: Command, | ||
| name: 'Default Team', | ||
| logo: TextSelectIcon, | ||
| plan: 'Free' | ||
| } | ||
| ], | ||
| navMain: [ | ||
| { | ||
| title: 'Playground', | ||
| title: 'Notes', | ||
| url: '#', | ||
| icon: SquareTerminal, | ||
| icon: NotebookTabsIcon, | ||
| isActive: true, | ||
| items: [ | ||
| { | ||
| title: 'History', | ||
| title: 'View All', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Starred', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Settings', | ||
| url: '/settings/profile' | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| title: 'Models', | ||
| url: '#', | ||
| icon: Bot, | ||
| items: [ | ||
| { | ||
| title: 'Genesis', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Explorer', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Quantum', | ||
| url: '#' | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| title: 'Documentation', | ||
| url: '#', | ||
| icon: BookOpen, | ||
| items: [ | ||
| { | ||
| title: 'Introduction', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Get Started', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Tutorials', | ||
| url: '#' | ||
| }, | ||
| { | ||
| title: 'Changelog', | ||
| url: '#' | ||
| } | ||
| ] | ||
| }, | ||
|
|
@@ -115,45 +39,12 @@ const data = { | |
| url: '#', | ||
| icon: Settings2, | ||
| items: [ | ||
| { | ||
| title: 'Profile', | ||
| url: '/settings/profile' | ||
| }, | ||
| { | ||
| title: 'Account', | ||
| url: '/settings/account' | ||
| }, | ||
| { | ||
| title: 'Appearance', | ||
| url: '/settings/appearance' | ||
| }, | ||
| { | ||
| title: 'Notifications', | ||
| url: '/settings/notifications' | ||
| }, | ||
| { | ||
| title: 'Display', | ||
| url: '/settings/display' | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| projects: [ | ||
| { | ||
| name: 'Design Engineering', | ||
| url: '#', | ||
| icon: Frame | ||
| }, | ||
| { | ||
| name: 'Sales & Marketing', | ||
| url: '#', | ||
| icon: PieChart | ||
| }, | ||
| { | ||
| name: 'Travel', | ||
| url: '#', | ||
| icon: Map | ||
| } | ||
| ] | ||
| } | ||
|
|
||
|
|
@@ -167,14 +58,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>): | |
|
|
||
| <SidebarContent> | ||
| <NavMain items={data.navMain} /> | ||
|
|
||
| <NavProjects projects={data.projects} /> | ||
| </SidebarContent> | ||
|
|
||
| <SidebarFooter> | ||
| <NavUser user={data.user} /> | ||
| </SidebarFooter> | ||
|
|
||
| <SidebarRail onMouseEnter={() => toggleSidebar()} /> | ||
| </Sidebar> | ||
| ) | ||
|
|
||
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
💡 Verification agent
🧩 Analysis chain
Verify branding consistency across the application.
The product and executable names have been updated to "Treo". Ensure all references to "Notebook" have been updated across:
Also applies to: 15-15
🏁 Script executed:
Length of output: 59
Verify branding consistency across the application.
The product and executable names have been updated to "Treo". To ensure branding consistency, please verify that there are no lingering references to "Notebook" in:
Note: The previous command encountered an error due to an unrecognized file type argument. The updated command above should check all files for any reference to "Notebook".
🏁 Script executed:
Length of output: 209
Action Required: Update All Branding References to "Treo"
The product name in
electron-builder.ymlhas been updated correctly to "Treo". However, our search uncovered a residual reference to "Notebook" in the UI code. Specifically, insrc/renderer/src/components/app-sidebar.tsx, the import and usage ofNotebookTabsIconstill refer to the old branding. Please update these references (and verify any similar ones across window titles, documentation, user-facing messages, and package metadata) to ensure complete branding consistency.electron-builder.yml(line 2):productName: Treosrc/renderer/src/components/app-sidebar.tsx: Update or verify usage ofNotebookTabsIcon