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

Fit and finish updates for the new UX #877

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
d3c07a0
Update nav menu styling to include everything in one header
sabaimran Aug 2, 2024
0d8cdee
Adjust spacing when side panel is opened
sabaimran Aug 2, 2024
1509c53
Fix layout/styling of the factchecker app
sabaimran Aug 2, 2024
e6014e8
Fix navmenu in settings page
sabaimran Aug 2, 2024
d48a789
Use new nav menu alignment in the settings page
sabaimran Aug 2, 2024
bbe7491
Prompt to login when authenticated, click on suggestion card
sabaimran Aug 2, 2024
07b3bdf
Update nav menu styling to include everything in one header
sabaimran Aug 2, 2024
1bb746a
Adjust spacing when side panel is opened
sabaimran Aug 2, 2024
5f8b76c
Fix layout/styling of the factchecker app
sabaimran Aug 2, 2024
b1d3979
Fix navmenu in settings, share/chat pages
sabaimran Aug 2, 2024
9c5ff16
Use new nav menu alignment in the settings page
sabaimran Aug 2, 2024
f188396
Prompt to login when authenticated, click on suggestion card
sabaimran Aug 2, 2024
eed9e40
Improve alignment of title bar elements
debanjum Aug 2, 2024
a6e1b2c
Style nav menu button and expand nav menu item click area to full-width
debanjum Aug 2, 2024
f3765a2
Improve content alignment on automation page for small screens
debanjum Aug 3, 2024
d8fe677
Prevent overflow on Search page by search results
debanjum Aug 3, 2024
f9606ce
Merge branch 'features/fit-and-finish-new-ux' of github.com:khoj-ai/k…
sabaimran Aug 3, 2024
f136214
Improve the nav menu in the not logged in experience
sabaimran Aug 3, 2024
8d1c522
Remove unnecessary debug logs
debanjum Aug 3, 2024
529ffdb
Make Title, Chat Footer Icons larger to ease click, tap on Mobile
debanjum Aug 3, 2024
cf8745e
Improve structure of chat footer on mobile to put agents above input
debanjum Aug 3, 2024
e66adf6
Have the home and chat page take full height, reduce greeting top space
debanjum Aug 3, 2024
6c35ee4
Revert height of the side panel on the home page
sabaimran Aug 3, 2024
4ce17ac
Set greeting message to longer text in default view. Only show two ag…
sabaimran Aug 3, 2024
261f62e
Fix automations mobile view by using a wrapper component that chooses…
sabaimran Aug 3, 2024
0db630a
image cards should be /image, not /paint
sabaimran Aug 3, 2024
687a881
Remove the agents header in the loading view
sabaimran Aug 3, 2024
5b17fa5
Set home, chat page height so footer, header visible w/o scroll on phone
debanjum Aug 3, 2024
30304cc
Fix session drawer to fit title, action triple-dot in width on mobile
debanjum Aug 3, 2024
7a8a9fc
Auto focus cursor on search input when open search page
debanjum Aug 3, 2024
e6260a7
Improve oadding for h9me page chat iput area and inc margin on api keys
sabaimran Aug 3, 2024
5a75f2c
Use filled icons when side panel is open
sabaimran Aug 3, 2024
87e97e4
Resolve various warnings during export
sabaimran Aug 3, 2024
3e74d38
Strip quotes from the response mode llm response
sabaimran Aug 3, 2024
185dcb6
Update the settings page to better match the design
sabaimran Aug 3, 2024
75559a5
only show search if logged in. update agents icon
sabaimran Aug 3, 2024
f28208d
Only show chat sessions uptil last month in side pane
debanjum Aug 3, 2024
6a9865a
Only show API keys card in non anon mode
debanjum Aug 3, 2024
5541bc0
Prefix Khoj page breadcrumbs to chat page title for orientation
debanjum Aug 3, 2024
2f7a869
Fix width and equalize spacing between buttons in chat footer
debanjum Aug 3, 2024
f38c072
Update chat session title in side pane to new title after rename
debanjum Aug 3, 2024
bf71e47
Load static assets from Khoj server in dev environment
debanjum Aug 3, 2024
015c155
Simplify structure of chat page to match other pages
debanjum Aug 3, 2024
692058b
Fix time of day calculation logic
debanjum Aug 3, 2024
caf5c3d
Link to Khoj manifest in home page metadata to support PWA install
debanjum Aug 3, 2024
3e1e4a1
Move the clients section back to the bottom
sabaimran Aug 4, 2024
322fb34
Add top padding to the automations header to align it with the agents…
sabaimran Aug 4, 2024
4f2fcc8
Make the input area only rounded on the top corners when in mobile view
sabaimran Aug 4, 2024
60af173
Improve responsive spacing of chat page footer buttons
debanjum Aug 4, 2024
c7b67a9
Align agents and automation page structure, widths and spacings
debanjum Aug 4, 2024
c627527
Reorder automation card actions buttons. Put Delete action last
debanjum Aug 4, 2024
70f670d
Show send button when text in chat input else voice message button
debanjum Aug 4, 2024
b744dff
Align voice message button with send chat message button style
debanjum Aug 4, 2024
51e56e1
Align padding of agent pills to home screen chat input on small screens
debanjum Aug 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions src/interface/web/app/agents/agents.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ div.agentPersonality {
overflow: hidden;
}

div.pageLayout {
max-width: 60vw;
margin: auto;
margin-bottom: 2rem;
}

div.sidePanel {
position: fixed;
height: 100%;
}

div.pageLayout {
gap: 1rem;
}


button.infoButton {
border: none;
background-color: transparent !important;
Expand All @@ -46,12 +47,21 @@ div.agentList {
}


@media only screen and (max-width: 700px) {
@media only screen and (max-width: 768px) {
div.agentList {
width: 100%;
padding: 0;
margin-right: auto;
margin-left: auto;
grid-template-columns: 1fr;
}

div.pageLayout {
max-width: 90vw;
}

div.sidePanel {
position: relative;
height: 100%;
}
}
28 changes: 11 additions & 17 deletions src/interface/web/app/agents/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,6 @@ export default function Agents() {
if (!data) {
return (
<main className={styles.main}>
<div className={`${styles.titleBar} text-5xl`}>
Agents
</div>
<div className={styles.agentList}>
<InlineLoading /> booting up your agents
</div>
Expand All @@ -265,27 +262,18 @@ export default function Agents() {
}

return (
<main className={`${styles.main} w-full mx-auto`}>
<div className="float-right w-fit h-fit">
<NavMenu selected="Agents" />
</div>
{
showLoginPrompt &&
<LoginPrompt
loginRedirectMessage="Sign in to start chatting with a specialized agent"
onOpenChange={setShowLoginPrompt} />
}
<div className={`${styles.pageLayout} w-full mx-auto`}>
<main className={`w-full mx-auto`}>
<div className={`grid w-full mx-auto`}>
<div className={`${styles.sidePanel} top-0`}>
<SidePanel
conversationId={null}
uploadedFiles={[]}
isMobileWidth={isMobileWidth}
/>
</div>
<div className={`mx-auto ${isMobileWidth ? "w-11/12" : "w-1/2"} pt-4`}>
<div className="pt-8 flex justify-between align-middle w-full">
<h1 className="text-3xl">Agents</h1>
<div className={`${styles.pageLayout} w-full`}>
<div className={`pt-6 md:pt-8 flex justify-between`}>
<h1 className="text-3xl flex items-center">Agents</h1>
<div className="ml-auto float-right border p-2 pt-3 rounded-xl font-bold hover:bg-stone-100 dark:hover:bg-neutral-900">
<TooltipProvider>
<Tooltip>
Expand All @@ -302,6 +290,12 @@ export default function Agents() {
</TooltipProvider>
</div>
</div>
{
showLoginPrompt &&
<LoginPrompt
loginRedirectMessage="Sign in to start chatting with a specialized agent"
onOpenChange={setShowLoginPrompt} />
}
<Alert className='bg-secondary border-none my-4'>
<AlertDescription>
<Lightning weight={'fill'} className='h-4 w-4 text-purple-400 inline' />
Expand Down
5 changes: 5 additions & 0 deletions src/interface/web/app/automations/automations.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ div.sidePanel {
div.pageLayout {
max-width: 90vw;
}

div.sidePanel {
position: relative;
height: 100%;
}
}
Loading
Loading