udpate resolver

This commit is contained in:
Jonathan Summers-Muir committed 2024-06-26 14:29:28 +08:00
1 parent 5efafef89c
commit e4b18c3de2
5 files changed
+12 -7

No files matched your search

@@ -125,7 +125,10 @@ export function BranchMenu() {
type="outline"
className={cn(
'ml-3 rounded-full bg-opacity-50 text-foreground-lighter',
hideProjectsDropdown && '-left-[8px] opacity-0'
hideProjectsDropdown
? '-left-[8px] opacity-0'
: // animate in slow
'delay-1000'
)}
icon={<Plug className="rotate-90" />}
>
@@ -46,8 +46,11 @@ const QueriesChart = () => {
return (
<div className="flex flex-col gap-2 grow">
<div className="flex items-baseline gap-2">
<h2 className="text-2xl font-mono font-extralight text-foreground">3,402</h2>
<span className="text-xs font-mono text-foreground-lighter">Total Queries</span>
<div className="h-2 w-4 rounded-full bg-foreground"></div>
<div className="flex items-baseline gap-2">
<h2 className="text-2xl font-mono font-extralight text-foreground">3,402</h2>
<span className="text-xs font-mono text-foreground-lighter">Total queries</span>
</div>
</div>
<ResponsiveContainer width="100%" height={200}>
<BarChart
@@ -4,11 +4,11 @@ import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis } f
const generateLineChartData = () => {
let reads = 12400
let writes = 1000
let writes = 3000
return Array.from({ length: 20 }, (_, i) => {
reads = reads + (Math.random() - 0.5) * 5000 // Add variation to reads
writes = writes + (Math.random() - 0.5) * 100 // Add variation to writes
writes = writes + (Math.random() - 0.5) * 1000 // Add variation to writes
return {
time: `${14 + Math.floor(i / 4)}:${(i % 4) * 15}`,
@@ -6,7 +6,6 @@
"items": [
{ "label": "General", "key": "general", "href": "/general" },
{ "label": "Infrastructure", "key": "infrastructure", "href": "/infrastructure" },
{ "label": "API", "key": "api", "href": "/api" },
{ "label": "Integrations", "key": "integrations", "href": "/integrations" },
{ "label": "Add ons", "key": "add_ons", "href": "/add-ons" },
{ "label": "Branching", "key": "branching", "href": "/branching" }
@@ -17,6 +16,7 @@
"base_path": "/project"
},
"items": [
{ "label": "API", "key": "api", "href": "/api" },
{ "label": "Database", "key": "database", "href": "/database" },
{
"label": "Authentication",
@@ -8,7 +8,6 @@ export function resolveHideBranchesDropdown(
!pathName.startsWith(`/${organizationKey}/settings/project`)) ||
pathName.startsWith(`/${organizationKey}/settings/project/${projectKey}/general`) ||
pathName.startsWith(`/${organizationKey}/settings/project/${projectKey}/infrastructure`) ||
pathName.startsWith(`/${organizationKey}/settings/project/${projectKey}/api`) ||
pathName.startsWith(`/${organizationKey}/settings/project/${projectKey}/integrations`) ||
pathName.startsWith(`/${organizationKey}/settings/project/${projectKey}/add-ons`) ||
pathName.startsWith(`/${organizationKey}/settings/project/${projectKey}/branching`) ||