feat(nav): add Friday Ops calendar entry and truncate level label in mini mode
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
5577976c96
commit
892587c3ba
1 changed files with 14 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ import * as React from "react";
|
|||
import {
|
||||
ArrowLeftRight,
|
||||
Bolt,
|
||||
CalendarDays,
|
||||
Shield,
|
||||
Users,
|
||||
Maximize,
|
||||
|
|
@ -50,6 +51,11 @@ const data = {
|
|||
url: "/transfers",
|
||||
icon: ArrowLeftRight,
|
||||
},
|
||||
{
|
||||
title: "Friday Ops",
|
||||
url: "/intelligence/missions/calendar",
|
||||
icon: CalendarDays,
|
||||
},
|
||||
],
|
||||
...sidebarData,
|
||||
};
|
||||
|
|
@ -163,10 +169,10 @@ export function AppSidebar({
|
|||
<div className="flex flex-col">
|
||||
<div className="flex items-center justify-between">
|
||||
{isMiniMode ? (
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex min-w-0 flex-1 items-center gap-2">
|
||||
<Tooltip>
|
||||
<TooltipTrigger>
|
||||
<div className="text-xs text-muted-foreground uppercase">
|
||||
<TooltipTrigger className="min-w-0">
|
||||
<div className="truncate text-xs text-muted-foreground uppercase">
|
||||
{xpLevel.levelName}
|
||||
</div>
|
||||
</TooltipTrigger>
|
||||
|
|
@ -174,9 +180,11 @@ export function AppSidebar({
|
|||
<p>{xpLevel.levelDesc}</p>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
<SparkleIcon className="w-4 h-4" />
|
||||
<span className="text-xs font-bold">{xpLevel.xp.toLocaleString()}</span>
|
||||
<Progress value={xpLevel.progress} className="w-20 h-1" />
|
||||
<SparkleIcon className="w-4 h-4 shrink-0" />
|
||||
<span className="text-xs font-bold shrink-0">
|
||||
{xpLevel.xp.toLocaleString()}
|
||||
</span>
|
||||
<Progress value={xpLevel.progress} className="w-20 h-1 shrink-0" />
|
||||
</div>
|
||||
) : (
|
||||
<XPDisplay xpLevel={xpLevel} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue