Skip to content

Commit f563fc9

Browse files
Bran18sheriffjimohAndlerRL
authored
[masterbots.ai] refactor: prelaunch ux/ui changes (#336)
* refactor: replicate tooltip effect in desktop bot chatbot details * fix: add guard and removed re-render * fix: refactor mobile bot chatbot details * refactor: make chatPannel bigger * chore:add new bot card design + sidebar hover color * chore: delete public and private sw + icons * chore: include public + delete extra actions * chore: add sidebar bg * add sidebar new styles + lib fn * feat: add select bot * chore: cleaning * fix: build - removing BotMessageSquareIcon * fix: types/node version + node min ver req --------- Co-authored-by: sheriffjimoh <sheriffjimoh88@gmail.com> Co-authored-by: Roberto Lucas <andre.rlucas@outlook.com>
1 parent 3242e0f commit f563fc9

21 files changed

+563
-283
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VSCODE/2687189850603de9a75d45adef99401a387e9d23250d09139755010b98886a50

apps/masterbots.ai/app/globals.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
--tertiary: 288, 82%, 50%;
4949
--tertiary-foreground: 0 0% 98%;
5050
--font-size-base: 1rem;
51+
52+
--background-chat-gradient: linear-gradient(180deg, rgba(115, 201, 97, 0.2) 0%, rgba(122, 214, 104, 0.4) 100%);
53+
--background-chat-hover-gradient: linear-gradient(-180deg, rgba(113, 199, 96, 0.1) 0%, rgba(117, 205, 99, 0.3) 100%);
54+
55+
/* Public route gradients */
56+
--background-public-gradient: linear-gradient(180deg, rgba(155, 22, 232, 0.2) 0%, rgba(190, 22, 232, 0.53) 100%);
57+
--background-public-hover-gradient: linear-gradient(-180deg, rgba(166, 22, 232, 0.1) 0%, rgba(190, 22, 232, 0.3) 100%);
5158
}
5259

5360
.dark {
@@ -93,6 +100,13 @@
93100

94101
--tertiary: 120, 100%, 65%;
95102
--tertiary-foreground: 0 0% 98%;
103+
104+
--background-chat-gradient: linear-gradient(180deg, rgba(115, 201, 97, 0.2) 0%, rgba(122, 214, 104, 0.4) 100%);
105+
--background-chat-hover-gradient: linear-gradient(-180deg, rgba(113, 199, 96, 0.1) 0%, rgba(117, 205, 99, 0.3) 100%);
106+
107+
/* Public route gradients */
108+
--background-public-gradient: linear-gradient(180deg, rgba(155, 22, 232, 0.2) 0%, rgba(190, 22, 232, 0.53) 100%);
109+
--background-public-hover-gradient: linear-gradient(-180deg, rgba(166, 22, 232, 0.1) 0%, rgba(190, 22, 232, 0.3) 100%);
96110
}
97111
}
98112

@@ -304,3 +318,29 @@
304318
.lucide {
305319
stroke-width: 1.25px;
306320
}
321+
322+
/* Base sidebar gradient styles *//* Chat route styles */
323+
324+
.sidebar-gradient {
325+
transition: background-image 0.3s ease;
326+
}
327+
328+
/* Chat route styles */
329+
[data-route="chat"] .sidebar-gradient:hover:not(.selected) {
330+
background-image: var(--background-chat-hover-gradient);
331+
}
332+
333+
[data-route="chat"] .sidebar-gradient.selected {
334+
background-image: var(--background-chat-gradient);
335+
}
336+
337+
/* Public route styles */
338+
[data-route="public"] .sidebar-gradient:hover:not(.selected) {
339+
background-image: var(--background-public-hover-gradient);
340+
}
341+
342+
[data-route="public"] .sidebar-gradient.selected {
343+
background-image: var(--background-public-gradient);
344+
}
345+
346+

apps/masterbots.ai/components/layout/header/header.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,8 @@ export function Header() {
2020
<div className="hidden lg:flex lg:items-center">
2121
<IconSeparator className="size-6 text-muted-foreground/50" />
2222
<HeaderLink href="/c" text="Chat" />
23-
{appConfig.features.devMode && (
24-
<>
25-
<HeaderLink href="/c/p" text="Pro" />
26-
<HeaderLink href="/wordware" text="Ww" />
27-
</>
28-
)}
23+
<HeaderLink href="/" text="Public" />
24+
{appConfig.features.devMode && <HeaderLink href="/c/p" text="Pro" />}
2925
</div>
3026
</div>
3127
<div className="flex items-center space-x-4">

apps/masterbots.ai/components/layout/sidebar/profile-sidebar.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,32 +118,31 @@ export function ProfileSidebar({ user }: ProfileSidebarProps) {
118118
Chat
119119
</Button>
120120

121-
{appConfig.features.devMode && (
122-
<Button
123-
variant="ghost"
124-
className="justify-start w-full text-sm"
125-
onClick={() => handleNavigation('/c/p')}
126-
>
127-
Pro
128-
</Button>
129-
)}
130-
131121
<Button
132122
variant="ghost"
133123
className="justify-start w-full text-sm"
134124
onClick={() => handleNavigation('/')}
135125
>
136-
Browse
126+
Public
137127
</Button>
138128

139129
{appConfig.features.devMode && (
140-
<Button
141-
variant="ghost"
142-
className="justify-start w-full text-sm"
143-
onClick={() => handleNavigation('/wordware')}
144-
>
145-
Ww
146-
</Button>
130+
<>
131+
<Button
132+
variant="ghost"
133+
className="justify-start w-full text-sm"
134+
onClick={() => handleNavigation('/c/p')}
135+
>
136+
Pro
137+
</Button>
138+
<Button
139+
variant="ghost"
140+
className="justify-start w-full text-sm"
141+
onClick={() => handleNavigation('/wordware')}
142+
>
143+
Ww
144+
</Button>
145+
</>
147146
)}
148147
</nav>
149148

0 commit comments

Comments
 (0)