Skip to content
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

Use the new shadcn sidebar across all pages in Khoj #1013

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

sabaimran
Copy link
Member

Use the shadcn sidebar across Khoj and standardize how the side panel experience works across the app. This helps us generalize the code better, while re-using the same components.

Deprecates current usage of the chat history side panel, replacing it with the new appSidebar.tsx component.

We'll eventually move out the Manage Files section and move it into a separate panel dedicated to chat-level controls.

- Use the sidebar across all pages to quickly navigate through the app, access settings, and go to past chats
- Pending: mobile friendliness
@sabaimran sabaimran requested a review from debanjum December 20, 2024 05:38
@sabaimran sabaimran added the upgrade New feature or request label Dec 20, 2024
Copy link
Member

@debanjum debanjum left a comment

Choose a reason for hiding this comment

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

This looks so much nicer and consistent than our previous sidebar and page layout! ❤️. Left some comments mostly around non-logged in experience. But most of the stuff looks neat

Copy link
Member

Choose a reason for hiding this comment

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

The settings page seem to have too much outer horizontal padding. Agents and Automations page cards have the same and lower padding. It'd be great if we can align the settings page to have the same padding as the Agents and Automation pages for consistency

{open ? (
<SidebarMenuButton>
<a className="p-0 no-underline" href="/">
<KhojLogoType className="h-auto w-16" />
Copy link
Member

Choose a reason for hiding this comment

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

The Khoj lantern logo drops in size when the sidebar is in collapsed state. Feels like it being the same size but removing the "Khoj" text following it will feel less jittery

Copy link
Member

Choose a reason for hiding this comment

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

The chat body width seems to have become variable. When ask a question on home page the chat page is loaded with a much smaller width for chat body and chat input footer. This expands based on width of train-of-thought and Khoj response. Keeping width static like before would be better

Copy link
Member

Choose a reason for hiding this comment

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

It'd be good if sidebar open/close state can be persisted as we move across the app. Currently it seems to open every time we jump between pages

</SidebarGroup>
</SidebarContent>
<SidebarFooter>
<NavMenu sideBarIsOpen={open} />
Copy link
Member

Choose a reason for hiding this comment

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

It'd be good if the Sidebar footer is given more vertical space. It seems a bit too confined right now

<p className="ml-3 font-semibold">Releases</p>
<div className="flex flex-rows text-left content-start justify-start items-start p-0">
<ArrowRight className="w-6 h-6" />
<p className="ml-3 font-semibold">Login</p>
Copy link
Member

Choose a reason for hiding this comment

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

Menu still shows Logout for logged out user instead of Login

Copy link
Member

Choose a reason for hiding this comment

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

Clicking an automation suggestion card crashes the web app (at least for non logged in user)

Copy link
Member

Choose a reason for hiding this comment

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

Opening automation page for not logged in user crashes app

Copy link
Member

Choose a reason for hiding this comment

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

Clicking search page in not logged in state leads to the old login.html page. Should we not make them use the new login popup experience as well?

Copy link
Member

Choose a reason for hiding this comment

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

Clicking chat with agent (paper plane) button takes to old login page. Should we not guide them to new login popup experience?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upgrade New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants