@@ -8,7 +8,7 @@ import { checkToolState, InvalidTokenError } from '@/lib/tinybird';
88import { TOOLS , type AppGridItem , type ToolState } from '@/lib/constants' ;
99import { SectionHeader } from '@/components/section-header' ;
1010import { ScrollArea } from '@/components/ui/scroll-area' ;
11- import { MessageSquare } from 'lucide-react' ;
11+ import { MessageSquare , HardDriveDownload , Settings } from 'lucide-react' ;
1212import Image from 'next/image' ;
1313
1414function AppCard ( {
@@ -23,8 +23,8 @@ function AppCard({
2323 isActive : boolean ;
2424} ) {
2525 const stateColors = {
26- configured : 'border-green-500 ' ,
27- installed : 'border-blue-500 ' ,
26+ configured : '' ,
27+ installed : '' ,
2828 available : ''
2929 } ;
3030
@@ -34,13 +34,14 @@ function AppCard({
3434 href = { `/${ app . id } ${ token ? `?token=${ token } ` : '' } ` }
3535 >
3636 < Card className = { `p-3 hover:bg-accent mb-2 ${ stateColors [ state ] } ${ isActive ? 'bg-accent' : '' } ` } >
37- < div className = "flex items-center gap-3" >
38- { app . icon_url && < Image src = { app . icon_url } width = { 16 } height = { 16 } alt = { app . name } /> }
37+ < div className = "flex items-center justify-between w-full" >
38+ < div className = "flex items-center gap-3" >
39+ { app . icon_url && < Image src = { app . icon_url } width = { 16 } height = { 16 } alt = { app . name } /> }
40+ < span className = "font-medium" > { app . name } </ span >
41+ </ div >
3942 < div >
40- < div className = "flex items-center gap-2" >
41- < h3 className = "font-semibold text-sm" > { app . name } </ h3 >
42- { /* <span className="text-xs text-muted-foreground">({state})</span> */ }
43- </ div >
43+ { state === 'available' && < HardDriveDownload className = "w-4 h-4 text-muted-foreground" /> }
44+ { state === 'installed' && < Settings className = "w-4 h-4 text-muted-foreground" /> }
4445 </ div >
4546 </ div >
4647 </ Card >
@@ -141,7 +142,7 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
141142 { Object . values ( TOOLS ) . some ( app => toolStates [ app . id ] === 'configured' ) && (
142143 < div className = "space-y-2" >
143144 < SectionHeader
144- title = "Configured Apps "
145+ title = "Dashboards "
145146 tooltip = "These apps are fully set up and have data. They're ready to use!"
146147 />
147148 < div className = "space-y-2" >
@@ -164,7 +165,7 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
164165 { Object . values ( TOOLS ) . some ( app => toolStates [ app . id ] === 'installed' ) && (
165166 < div className = "space-y-2" >
166167 < SectionHeader
167- title = "Installed Apps "
168+ title = "Installed"
168169 tooltip = "Your Tinybird Workspace has the Data Sources installed, but you're not receiving data. Click an app to learn how to add data."
169170 />
170171 < div className = "space-y-2" >
@@ -187,7 +188,7 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
187188 { Object . values ( TOOLS ) . some ( app => toolStates [ app . id ] === 'available' ) && (
188189 < div className = "space-y-2" >
189190 < SectionHeader
190- title = "Available Apps "
191+ title = "Available"
191192 tooltip = "Your Tinybird Workspace doesn't have the Data Sources installed yet. Click an app to learn how to install it."
192193 />
193194 < div className = "space-y-2" >
0 commit comments