-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI v2] fix: Create consistent concurrency limit nav title (#16559)
- Loading branch information
1 parent
1c801c7
commit 50dfa9a
Showing
7 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
37 changes: 29 additions & 8 deletions
37
ui-v2/src/components/automations/automations-header/automations-header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
import { | ||
Breadcrumb, | ||
BreadcrumbLink, | ||
BreadcrumbList, | ||
} from "@/components/ui/breadcrumb"; | ||
import { Button } from "@/components/ui/button"; | ||
import { DocsLink } from "@/components/ui/docs-link"; | ||
import { Icon } from "@/components/ui/icons"; | ||
import { Typography } from "@/components/ui/typography"; | ||
import { Link } from "@tanstack/react-router"; | ||
|
||
export const AutomationsHeader = () => { | ||
return ( | ||
<div className="flex items-center gap-2"> | ||
<Typography variant="h4">Automations</Typography> | ||
<Button size="icon" className="h-7 w-7" variant="outline"> | ||
<Link to="/automations/create"> | ||
<Icon id="Plus" className="h-4 w-4" /> | ||
</Link> | ||
</Button> | ||
<div className="flex items-center justify-between"> | ||
<Header /> | ||
<DocsLink id="automations-guide" label="Documentation" /> | ||
</div> | ||
); | ||
}; | ||
|
||
const Header = () => ( | ||
<div className="flex items-center gap-2"> | ||
<Breadcrumb> | ||
<BreadcrumbList> | ||
<BreadcrumbLink | ||
to="/concurrency-limits" | ||
className="text-xl font-semibold" | ||
> | ||
Automations | ||
</BreadcrumbLink> | ||
</BreadcrumbList> | ||
</Breadcrumb> | ||
<Button size="icon" className="h-7 w-7" variant="outline"> | ||
<Link to="/automations/create"> | ||
<Icon id="Plus" className="h-4 w-4" /> | ||
</Link> | ||
</Button> | ||
</div> | ||
); |
20 changes: 17 additions & 3 deletions
20
ui-v2/src/components/concurrency/concurrency-limits-page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
import { Typography } from "@/components/ui/typography"; | ||
|
||
import { GlobalConcurrencyLimitsView } from "@/components/concurrency/global-concurrency-limits/global-concurrency-limits-view"; | ||
import { TaskRunConcurrencyLimitsView } from "@/components/concurrency/task-run-concurrency-limits/task-run-concurrency-limits-view"; | ||
import { | ||
Breadcrumb, | ||
BreadcrumbItem, | ||
BreadcrumbList, | ||
} from "@/components/ui/breadcrumb"; | ||
|
||
import { ConcurrencyLimitsTabs } from "./concurrency-limits-tabs"; | ||
|
||
export const ConcurrencyLimitsPage = () => { | ||
return ( | ||
<div className="flex flex-col gap-4"> | ||
<Typography variant="h2">Concurrency</Typography> | ||
<ConcurrencyLimitTitle /> | ||
<ConcurrencyLimitsTabs | ||
globalView={<GlobalConcurrencyLimitsView />} | ||
taskRunView={<TaskRunConcurrencyLimitsView />} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
const ConcurrencyLimitTitle = () => ( | ||
<Breadcrumb> | ||
<BreadcrumbList> | ||
<BreadcrumbItem className="text-xl font-semibold"> | ||
Concurrency | ||
</BreadcrumbItem> | ||
</BreadcrumbList> | ||
</Breadcrumb> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters