Feat/tailwind v4 shadcn update (#4706)

* feat: update dependencies and enhance UI components in Dokploy

- Updated various package versions in pnpm-lock.yaml to improve compatibility and performance, including React and Tailwind CSS.
- Modified components.json to change the styling to "radix-nova" and added new properties for icon library and menu color.
- Refactored multiple components to use updated class names for better styling consistency and responsiveness.
- Removed unused Radix UI components from package.json to streamline dependencies.
- Adjusted layout and styling in several dashboard components for improved user experience and visual appeal.
- Enhanced tooltip and form item components for better accessibility and usability.

* refactor: enhance UI components in HandleCertificate and SidebarLogo

- Updated the HandleCertificate component to improve dialog content height and textarea styling for better usability.
- Adjusted the SidebarLogo component layout to enhance alignment and spacing, ensuring a more consistent appearance across the sidebar.
- Implemented responsive design adjustments to textarea elements, preventing overflow and improving user experience.

* refactor: improve UI consistency and styling across dashboard components

- Updated Card components in ShowDeployments, ShowSchedules, and ShowVolumeBackups to remove unnecessary border styles for a cleaner look.
- Enhanced TabsList components in ShowProviderForm and ShowProviderFormCompose by adding a variant for improved visual distinction.
- Adjusted spacing in AdvancedEnvironmentSelector for better layout and readability.
- Removed redundant border classes in Service component for a more streamlined design.

* [autofix.ci] apply automated fixes

* chore: update package dependencies and refactor email rendering

- Upgraded React and React DOM to version 19.2.7 across multiple packages for improved performance and compatibility.
- Updated TSX to version 4.22.4 in various package.json files.
- Refactored email rendering from `renderAsync` to `render` in notification utilities and email templates for consistency.
- Adjusted Tailwind configuration usage in email templates to utilize a centralized configuration file.

These changes enhance the overall stability and maintainability of the codebase.

* refactor: update badge variants across dashboard components

- Changed badge variant from "outline-solid" to "outline" in multiple components including columns, show-domains, and various deployment tables for consistency in styling.
- Updated button variants in billing and project templates to align with the new badge styling.
- Enhanced input components to support password generation and error messaging, improving user experience.

These changes streamline the UI and ensure a cohesive design across the application.

* refactor: clean up calendar component imports and structure

- Removed redundant imports of icons from lucide-react and streamlined the import statements for better readability.
- Adjusted the placement of type imports to enhance code organization.

These changes improve the maintainability and clarity of the calendar component.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Mauricio Siu
2026-06-30 15:45:23 -06:00
committed by GitHub
co-authored by autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
parent 8b6481501e
commit 3ca5afd49f
202 changed files with 7857 additions and 5747 deletions
+5 -5
View File
@@ -17,17 +17,17 @@
"hono": "^4.11.7", "hono": "^4.11.7",
"pino": "9.4.0", "pino": "9.4.0",
"pino-pretty": "11.2.2", "pino-pretty": "11.2.2",
"react": "18.2.0", "react": "19.2.7",
"react-dom": "18.2.0", "react-dom": "19.2.7",
"redis": "4.7.0", "redis": "4.7.0",
"zod": "^4.3.6" "zod": "^4.3.6"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^24.4.0", "@types/node": "^24.4.0",
"@types/react": "^18.2.37", "@types/react": "^19.2.0",
"@types/react-dom": "^18.2.15", "@types/react-dom": "^19.2.0",
"rimraf": "6.1.3", "rimraf": "6.1.3",
"tsx": "^4.16.2", "tsx": "^4.22.4",
"typescript": "^5.8.3" "typescript": "^5.8.3"
}, },
"packageManager": "[email protected]", "packageManager": "[email protected]",
+9 -4
View File
@@ -1,17 +1,22 @@
{ {
"$schema": "https://ui.shadcn.com/schema.json", "$schema": "https://ui.shadcn.com/schema.json",
"style": "default", "style": "radix-nova",
"rsc": false, "rsc": false,
"tsx": true, "tsx": true,
"tailwind": { "tailwind": {
"config": "tailwind.config.ts", "config": "",
"css": "styles/globals.css", "css": "styles/globals.css",
"baseColor": "zinc", "baseColor": "neutral",
"cssVariables": true, "cssVariables": true,
"prefix": "" "prefix": ""
}, },
"aliases": { "aliases": {
"components": "@/components", "components": "@/components",
"utils": "@/lib/utils" "utils": "@/lib/utils"
} },
"iconLibrary": "lucide",
"rtl": false,
"menuColor": "default",
"menuAccent": "subtle",
"registries": {}
} }
@@ -156,7 +156,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
<div className="flex gap-4 h-[60vh] py-4"> <div className="flex gap-4 h-[60vh] py-4">
{/* Left Column - Menu */} {/* Left Column - Menu */}
<div className="w-64 flex-shrink-0 border-r pr-4 overflow-y-auto"> <div className="w-64 shrink-0 border-r pr-4 overflow-y-auto">
<nav className="space-y-1"> <nav className="space-y-1">
<TooltipProvider> <TooltipProvider>
{menuItems.map((item) => ( {menuItems.map((item) => (
@@ -229,7 +229,7 @@ export const ShowImport = ({ composeId }: Props) => {
(domain, index) => ( (domain, index) => (
<div <div
key={index} key={index}
className="rounded-lg border bg-card p-3 text-card-foreground shadow-sm" className="rounded-lg border bg-card p-3 text-card-foreground shadow-xs"
> >
<div className="font-medium"> <div className="font-medium">
{domain.serviceName} {domain.serviceName}
@@ -246,7 +246,7 @@ export const HandleRedirect = ({
control={form.control} control={form.control}
name="permanent" name="permanent"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Permanent</FormLabel> <FormLabel>Permanent</FormLabel>
<FormDescription> <FormDescription>
@@ -53,7 +53,7 @@ export const ShowTraefikConfig = ({ applicationId }: Props) => {
</div> </div>
) : ( ) : (
<div className="flex flex-col pt-2 relative"> <div className="flex flex-col pt-2 relative">
<div className="flex flex-col gap-6 max-h-[35rem] min-h-[10rem] overflow-y-auto"> <div className="flex flex-col gap-6 max-h-140 min-h-40 overflow-y-auto">
<CodeEditor <CodeEditor
lineWrapping lineWrapping
value={data || "Empty"} value={data || "Empty"}
@@ -155,7 +155,7 @@ export const UpdateTraefikConfig = ({ applicationId }: Props) => {
<FormControl> <FormControl>
<CodeEditor <CodeEditor
lineWrapping lineWrapping
wrapperClassName="h-[35rem] font-mono" wrapperClassName="h-140 font-mono"
placeholder={`http: placeholder={`http:
routers: routers:
router-name: router-name:
@@ -220,7 +220,7 @@ export const AddVolumes = ({
/> />
<Label <Label
htmlFor="bind" htmlFor="bind"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer" className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary has-data-[state=checked]:border-primary cursor-pointer"
> >
Bind Mount Bind Mount
</Label> </Label>
@@ -240,7 +240,7 @@ export const AddVolumes = ({
/> />
<Label <Label
htmlFor="volume" htmlFor="volume"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer" className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary has-data-[state=checked]:border-primary cursor-pointer"
> >
Volume Mount Volume Mount
</Label> </Label>
@@ -264,7 +264,7 @@ export const AddVolumes = ({
/> />
<Label <Label
htmlFor="file" htmlFor="file"
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer" className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary has-data-[state=checked]:border-primary cursor-pointer"
> >
File Mount File Mount
</Label> </Label>
@@ -324,7 +324,7 @@ export const AddVolumes = ({
control={form.control} control={form.control}
name="content" name="content"
render={({ field }) => ( render={({ field }) => (
<FormItem className="max-w-full max-w-[45rem]"> <FormItem className="max-w-full max-w-180">
<FormLabel>Content</FormLabel> <FormLabel>Content</FormLabel>
<FormControl> <FormControl>
<FormControl> <FormControl>
@@ -111,7 +111,7 @@ export const ShowVolumes = ({ id, type }: Props) => {
{mount.type === "file" && ( {mount.type === "file" && (
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<span className="font-medium">Content</span> <span className="font-medium">Content</span>
<span className="text-sm text-muted-foreground line-clamp-[10] whitespace-break-spaces"> <span className="text-sm text-muted-foreground line-clamp-10 whitespace-break-spaces">
{mount.content} {mount.content}
</span> </span>
</div> </div>
@@ -253,7 +253,7 @@ export const UpdateVolume = ({
control={form.control} control={form.control}
name="content" name="content"
render={({ field }) => ( render={({ field }) => (
<FormItem className="w-full max-w-[45rem]"> <FormItem className="w-full max-w-180">
<FormLabel>Content</FormLabel> <FormLabel>Content</FormLabel>
<FormControl> <FormControl>
<FormControl> <FormControl>
@@ -191,7 +191,7 @@ export const ShowDeployment = ({
<div <div
ref={scrollRef} ref={scrollRef}
onScroll={handleScroll} onScroll={handleScroll}
className="h-[720px] overflow-y-auto space-y-0 border p-4 bg-[#fafafa] dark:bg-[#050506] rounded custom-logs-scrollbar" className="h-[720px] overflow-y-auto space-y-0 border p-4 bg-background rounded custom-logs-scrollbar"
> >
{" "} {" "}
{filteredLogs.length > 0 ? ( {filteredLogs.length > 0 ? (
@@ -147,7 +147,7 @@ export const ShowDeployments = ({
}, []); }, []);
return ( return (
<Card className="bg-background border-none"> <Card className="bg-background border-0">
<CardHeader className="flex flex-row items-center justify-between flex-wrap gap-2"> <CardHeader className="flex flex-row items-center justify-between flex-wrap gap-2">
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<CardTitle className="text-xl">Deployments</CardTitle> <CardTitle className="text-xl">Deployments</CardTitle>
@@ -233,7 +233,6 @@ export const ShowDeployments = ({
<span>Webhook URL: </span> <span>Webhook URL: </span>
<div className="flex flex-row items-center gap-2"> <div className="flex flex-row items-center gap-2">
<Badge <Badge
role="button"
tabIndex={0} tabIndex={0}
aria-label="Copy webhook URL to clipboard" aria-label="Copy webhook URL to clipboard"
className="p-2 rounded-md ml-1 mr-1 hover:border-primary hover:text-primary-foreground hover:bg-primary hover:cursor-pointer whitespace-normal break-all" className="p-2 rounded-md ml-1 mr-1 hover:border-primary hover:text-primary-foreground hover:bg-primary hover:cursor-pointer whitespace-normal break-all"
@@ -301,7 +300,7 @@ export const ShowDeployments = ({
</span> </span>
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
<span className="break-words text-sm text-muted-foreground whitespace-pre-wrap"> <span className="wrap-break-word text-sm text-muted-foreground whitespace-pre-wrap">
{isExpanded || !needsTruncation {isExpanded || !needsTruncation
? titleText ? titleText
: truncateDescription(titleText)} : truncateDescription(titleText)}
@@ -349,10 +349,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
{domainType === "compose" && ( {domainType === "compose" && (
<div className="flex flex-col gap-2 w-full"> <div className="flex flex-col gap-2 w-full">
{errorServices && ( {errorServices && (
<AlertBlock <AlertBlock type="warning" className="wrap-anywhere">
type="warning"
className="[overflow-wrap:anywhere]"
>
{errorServices?.message} {errorServices?.message}
</AlertBlock> </AlertBlock>
)} )}
@@ -420,7 +417,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Fetch: Will clone the repository and Fetch: Will clone the repository and
@@ -450,7 +447,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Cache: If you previously deployed this Cache: If you previously deployed this
@@ -488,7 +485,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
{isManualInput {isManualInput
@@ -565,7 +562,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p>Generate sslip.io domain</p> <p>Generate sslip.io domain</p>
</TooltipContent> </TooltipContent>
@@ -618,7 +615,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
control={form.control} control={form.control}
name="stripPath" name="stripPath"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Strip Path</FormLabel> <FormLabel>Strip Path</FormLabel>
<FormDescription> <FormDescription>
@@ -662,7 +659,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
control={form.control} control={form.control}
name="useCustomEntrypoint" name="useCustomEntrypoint"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Custom Entrypoint</FormLabel> <FormLabel>Custom Entrypoint</FormLabel>
<FormDescription> <FormDescription>
@@ -711,7 +708,7 @@ export const AddDomain = ({ id, type, domainId = "", children }: Props) => {
control={form.control} control={form.control}
name="https" name="https"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>HTTPS</FormLabel> <FormLabel>HTTPS</FormLabel>
<FormDescription> <FormDescription>
@@ -189,7 +189,7 @@ export const ShowEnvironment = ({ applicationId }: Props) => {
control={form.control} control={form.control}
name="createEnvFile" name="createEnvFile"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Create Environment File</FormLabel> <FormLabel>Create Environment File</FormLabel>
<FormDescription> <FormDescription>
@@ -245,7 +245,7 @@ export const SaveBitbucketProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -333,7 +333,7 @@ export const SaveBitbucketProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -498,7 +498,7 @@ export const SaveBitbucketProvider = ({ applicationId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -305,7 +305,7 @@ export const SaveGitProvider = ({ applicationId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -258,7 +258,7 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -353,7 +353,7 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -525,7 +525,7 @@ export const SaveGiteaProvider = ({ applicationId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -233,7 +233,7 @@ export const SaveGithubProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -320,7 +320,7 @@ export const SaveGithubProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -531,7 +531,7 @@ export const SaveGithubProvider = ({ applicationId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -254,7 +254,7 @@ export const SaveGitlabProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -351,7 +351,7 @@ export const SaveGitlabProvider = ({ applicationId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -518,7 +518,7 @@ export const SaveGitlabProvider = ({ applicationId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -154,7 +154,10 @@ export const ShowProviderForm = ({ applicationId }: Props) => {
}} }}
> >
<div className="flex flex-row items-center justify-between w-full overflow-auto"> <div className="flex flex-row items-center justify-between w-full overflow-auto">
<TabsList className="flex gap-4 justify-start bg-transparent"> <TabsList
variant="line"
className="flex gap-4 justify-start bg-transparent"
>
<TabsTrigger <TabsTrigger
value="github" value="github"
className="rounded-none border-b-2 gap-2 border-b-transparent data-[state=active]:border-b-2 data-[state=active]:border-b-border" className="rounded-none border-b-2 gap-2 border-b-transparent data-[state=active]:border-b-2 data-[state=active]:border-b-border"
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { import {
Ban, Ban,
CheckCircle2, CheckCircle2,
@@ -94,7 +94,7 @@ export const ShowGeneralApplication = ({ applicationId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Downloads the source code and performs a complete Downloads the source code and performs a complete
build build
@@ -137,7 +137,7 @@ export const ShowGeneralApplication = ({ applicationId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Reload the application without rebuilding it</p> <p>Reload the application without rebuilding it</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -176,7 +176,7 @@ export const ShowGeneralApplication = ({ applicationId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Only rebuilds the application without downloading new Only rebuilds the application without downloading new
code code
@@ -219,7 +219,7 @@ export const ShowGeneralApplication = ({ applicationId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the application (requires a previous successful Start the application (requires a previous successful
build) build)
@@ -259,7 +259,7 @@ export const ShowGeneralApplication = ({ applicationId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running application</p> <p>Stop the currently running application</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -200,7 +200,7 @@ export const AddPreviewDomain = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p>Generate sslip.io domain</p> <p>Generate sslip.io domain</p>
</TooltipContent> </TooltipContent>
@@ -249,7 +249,7 @@ export const AddPreviewDomain = ({
control={form.control} control={form.control}
name="https" name="https"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>HTTPS</FormLabel> <FormLabel>HTTPS</FormLabel>
<FormDescription> <FormDescription>
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { import {
ExternalLink, ExternalLink,
FileText, FileText,
@@ -132,7 +132,7 @@ export const ShowPreviewDeployments = ({ applicationId }: Props) => {
<div className="p-4"> <div className="p-4">
<div className="flex items-start justify-between mb-3"> <div className="flex items-start justify-between mb-3">
<div className="flex items-start gap-3"> <div className="flex items-start gap-3">
<GitPullRequest className="size-5 text-muted-foreground mt-1 flex-shrink-0" /> <GitPullRequest className="size-5 text-muted-foreground mt-1 shrink-0" />
<div> <div>
<div className="font-medium text-sm"> <div className="font-medium text-sm">
{deployment.pullRequestTitle} {deployment.pullRequestTitle}
@@ -152,7 +152,7 @@ export const ShowPreviewDeployments = ({ applicationId }: Props) => {
</div> </div>
<div className="pl-8 space-y-3"> <div className="pl-8 space-y-3">
<div className="relative flex-grow"> <div className="relative grow">
<Input <Input
value={deploymentUrl} value={deploymentUrl}
readOnly readOnly
@@ -244,7 +244,7 @@ export const ShowPreviewDeployments = ({ applicationId }: Props) => {
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent <TooltipContent
sideOffset={5} sideOffset={5}
className="z-[60]" className="z-60"
> >
<p> <p>
Rebuild the preview deployment without Rebuild the preview deployment without
@@ -325,7 +325,7 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
control={form.control} control={form.control}
name="previewHttps" name="previewHttps"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>HTTPS</FormLabel> <FormLabel>HTTPS</FormLabel>
<FormDescription> <FormDescription>
@@ -431,7 +431,7 @@ export const ShowPreviewSettings = ({ applicationId }: Props) => {
control={form.control} control={form.control}
name="previewRequireCollaboratorPermissions" name="previewRequireCollaboratorPermissions"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm col-span-2"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs col-span-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel> <FormLabel>
Require Collaborator Permissions Require Collaborator Permissions
@@ -355,10 +355,7 @@ export const HandleSchedules = ({ id, scheduleId, scheduleType }: Props) => {
{scheduleTypeForm === "compose" && ( {scheduleTypeForm === "compose" && (
<div className="flex flex-col w-full gap-4"> <div className="flex flex-col w-full gap-4">
{errorServices && ( {errorServices && (
<AlertBlock <AlertBlock type="warning" className="wrap-anywhere">
type="warning"
className="[overflow-wrap:anywhere]"
>
{errorServices?.message} {errorServices?.message}
</AlertBlock> </AlertBlock>
)} )}
@@ -414,7 +411,7 @@ export const HandleSchedules = ({ id, scheduleId, scheduleType }: Props) => {
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Fetch: Will clone the repository and load the Fetch: Will clone the repository and load the
@@ -444,7 +441,7 @@ export const HandleSchedules = ({ id, scheduleId, scheduleType }: Props) => {
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Cache: If you previously deployed this compose, Cache: If you previously deployed this compose,
@@ -534,7 +531,7 @@ export const HandleSchedules = ({ id, scheduleId, scheduleType }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -73,7 +73,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
}; };
return ( return (
<Card className="border px-6 shadow-none bg-transparent h-full min-h-[50vh]"> <Card className=" px-6 shadow-none bg-transparent h-full min-h-[50vh]">
<CardHeader className="px-0"> <CardHeader className="px-0">
<div className="flex justify-between items-center gap-y-2 flex-wrap"> <div className="flex justify-between items-center gap-y-2 flex-wrap">
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
@@ -110,12 +110,12 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
className="flex flex-col sm:flex-row sm:items-center flex-wrap sm:flex-nowrap gap-y-2 justify-between rounded-lg border p-3 transition-colors bg-muted/50 w-full" className="flex flex-col sm:flex-row sm:items-center flex-wrap sm:flex-nowrap gap-y-2 justify-between rounded-lg border p-3 transition-colors bg-muted/50 w-full"
> >
<div className="flex items-start gap-3 w-full sm:w-auto"> <div className="flex items-start gap-3 w-full sm:w-auto">
<div className="flex flex-shrink-0 h-9 w-9 items-center justify-center rounded-full bg-primary/5"> <div className="flex shrink-0 h-9 w-9 items-center justify-center rounded-full bg-primary/5">
<Clock className="size-4 text-primary/70" /> <Clock className="size-4 text-primary/70" />
</div> </div>
<div className="space-y-1.5 w-full sm:w-auto"> <div className="space-y-1.5 w-full sm:w-auto">
<div className="flex items-center gap-2 flex-wrap"> <div className="flex items-center gap-2 flex-wrap">
<h3 className="text-sm font-medium leading-none [overflow-wrap:anywhere] line-clamp-3"> <h3 className="text-sm font-medium leading-none wrap-anywhere line-clamp-3">
{schedule.name} {schedule.name}
</h3> </h3>
<Badge <Badge
@@ -126,7 +126,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
</Badge> </Badge>
</div> </div>
{schedule.description && ( {schedule.description && (
<p className="text-xs text-muted-foreground/70 [overflow-wrap:anywhere] line-clamp-2"> <p className="text-xs text-muted-foreground/70 wrap-anywhere line-clamp-2">
{schedule.description} {schedule.description}
</p> </p>
)} )}
@@ -154,7 +154,7 @@ export const ShowSchedules = ({ id, scheduleType = "application" }: Props) => {
</div> </div>
{schedule.command && ( {schedule.command && (
<div className="flex items-start gap-2 max-w-full"> <div className="flex items-start gap-2 max-w-full">
<Terminal className="size-3.5 text-muted-foreground/70 flex-shrink-0 mt-0.5" /> <Terminal className="size-3.5 text-muted-foreground/70 shrink-0 mt-0.5" />
<code className="font-mono text-[10px] text-muted-foreground/70 break-all max-w-[calc(100%-20px)]"> <code className="font-mono text-[10px] text-muted-foreground/70 break-all max-w-[calc(100%-20px)]">
{schedule.command} {schedule.command}
</code> </code>
@@ -349,10 +349,7 @@ export const HandleVolumeBackups = ({
<> <>
<div className="flex flex-col w-full gap-4"> <div className="flex flex-col w-full gap-4">
{errorServices && ( {errorServices && (
<AlertBlock <AlertBlock type="warning" className="wrap-anywhere">
type="warning"
className="[overflow-wrap:anywhere]"
>
{errorServices?.message} {errorServices?.message}
</AlertBlock> </AlertBlock>
)} )}
@@ -408,7 +405,7 @@ export const HandleVolumeBackups = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Fetch: Will clone the repository and load the Fetch: Will clone the repository and load the
@@ -438,7 +435,7 @@ export const HandleVolumeBackups = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Cache: If you previously deployed this Cache: If you previously deployed this
@@ -181,7 +181,7 @@ export const RestoreVolumeBackups = ({ id, type, serverId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -263,7 +263,7 @@ export const RestoreVolumeBackups = ({ id, type, serverId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -77,7 +77,7 @@ export const ShowVolumeBackups = ({
}; };
return ( return (
<Card className="border px-6 shadow-none bg-transparent h-full min-h-[50vh]"> <Card className=" px-6 shadow-none bg-transparent h-full min-h-[50vh]">
<CardHeader className="px-0"> <CardHeader className="px-0">
<div className="flex justify-between items-center flex-wrap gap-2"> <div className="flex justify-between items-center flex-wrap gap-2">
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
@@ -160,7 +160,7 @@ export const IsolatedDeploymentTab = ({ composeId }: Props) => {
control={form.control} control={form.control}
name="isolatedDeployment" name="isolatedDeployment"
render={({ field }) => ( render={({ field }) => (
<FormItem className="mt-4 flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="mt-4 flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel> <FormLabel>
Enable Isolated Deployment ({data?.appName}) Enable Isolated Deployment ({data?.appName})
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -72,7 +72,7 @@ export const ComposeActions = ({ composeId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Downloads the source code and performs a complete build Downloads the source code and performs a complete build
</p> </p>
@@ -113,7 +113,7 @@ export const ComposeActions = ({ composeId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Reload the compose without rebuilding it</p> <p>Reload the compose without rebuilding it</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -154,7 +154,7 @@ export const ComposeActions = ({ composeId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the compose (requires a previous successful build) Start the compose (requires a previous successful build)
</p> </p>
@@ -193,7 +193,7 @@ export const ComposeActions = ({ composeId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running compose</p> <p>Stop the currently running compose</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -135,7 +135,7 @@ export const ComposeFileEditor = ({ composeId }: Props) => {
render={({ field }) => ( render={({ field }) => (
<FormItem className="overflow-auto"> <FormItem className="overflow-auto">
<FormControl className=""> <FormControl className="">
<div className="flex flex-col gap-4 w-full outline-none focus:outline-none overflow-auto"> <div className="flex flex-col gap-4 w-full outline-hidden focus:outline-hidden overflow-auto">
<CodeEditor <CodeEditor
// disabled // disabled
language="yaml" language="yaml"
@@ -247,7 +247,7 @@ export const SaveBitbucketProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -335,7 +335,7 @@ export const SaveBitbucketProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -502,7 +502,7 @@ export const SaveBitbucketProviderCompose = ({ composeId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -313,7 +313,7 @@ export const SaveGitProviderCompose = ({ composeId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -244,7 +244,7 @@ export const SaveGiteaProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -331,7 +331,7 @@ export const SaveGiteaProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -491,7 +491,7 @@ export const SaveGiteaProviderCompose = ({ composeId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -234,7 +234,7 @@ export const SaveGithubProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -321,7 +321,7 @@ export const SaveGithubProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -534,7 +534,7 @@ export const SaveGithubProviderCompose = ({ composeId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -256,7 +256,7 @@ export const SaveGitlabProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -353,7 +353,7 @@ export const SaveGitlabProviderCompose = ({ composeId }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
" w-full justify-between !bg-input", " w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -520,7 +520,7 @@ export const SaveGitlabProviderCompose = ({ composeId }: Props) => {
onCheckedChange={field.onChange} onCheckedChange={field.onChange}
/> />
</FormControl> </FormControl>
<FormLabel className="!mt-0">Enable Submodules</FormLabel> <FormLabel className="mt-0!">Enable Submodules</FormLabel>
</FormItem> </FormItem>
)} )}
/> />
@@ -143,7 +143,10 @@ export const ShowProviderFormCompose = ({ composeId }: Props) => {
}} }}
> >
<div className="flex flex-row items-center justify-between w-full overflow-auto"> <div className="flex flex-row items-center justify-between w-full overflow-auto">
<TabsList className="flex gap-4 justify-start bg-transparent"> <TabsList
variant="line"
className="flex gap-4 justify-start bg-transparent"
>
<TabsTrigger <TabsTrigger
value="github" value="github"
className="rounded-none border-b-2 gap-2 border-b-transparent data-[state=active]:border-b-2 data-[state=active]:border-b-border" className="rounded-none border-b-2 gap-2 border-b-transparent data-[state=active]:border-b-2 data-[state=active]:border-b-border"
@@ -160,7 +160,7 @@ export const RandomizeCompose = ({ composeId }: Props) => {
control={form.control} control={form.control}
name="randomize" name="randomize"
render={({ field }) => ( render={({ field }) => (
<FormItem className="mt-4 flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="mt-4 flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Apply Randomize</FormLabel> <FormLabel>Apply Randomize</FormLabel>
<FormDescription> <FormDescription>
@@ -52,7 +52,7 @@ export const ShowConvertedCompose = ({ composeId }: Props) => {
Preview Compose Preview Compose
</Button> </Button>
</DialogTrigger> </DialogTrigger>
<DialogContent className="sm:max-w-6xl max-h-[50rem]"> <DialogContent className="sm:max-w-6xl max-h-200">
<DialogHeader> <DialogHeader>
<DialogTitle>Converted Compose</DialogTitle> <DialogTitle>Converted Compose</DialogTitle>
<DialogDescription> <DialogDescription>
@@ -67,11 +67,11 @@ export const ShowConvertedCompose = ({ composeId }: Props) => {
one domain must be specified for this conversion to take effect. one domain must be specified for this conversion to take effect.
</AlertBlock> </AlertBlock>
{isPending ? ( {isPending ? (
<div className="flex flex-row items-center justify-center min-h-[25rem] border p-4 rounded-md"> <div className="flex flex-row items-center justify-center min-h-100 border p-4 rounded-md">
<Loader2 className="h-8 w-8 text-muted-foreground mb-2 animate-spin" /> <Loader2 className="h-8 w-8 text-muted-foreground mb-2 animate-spin" />
</div> </div>
) : compose?.length === 5 ? ( ) : compose?.length === 5 ? (
<div className="border p-4 rounded-md flex flex-col items-center justify-center min-h-[25rem]"> <div className="border p-4 rounded-md flex flex-col items-center justify-center min-h-100">
<Puzzle className="h-8 w-8 text-muted-foreground mb-2" /> <Puzzle className="h-8 w-8 text-muted-foreground mb-2" />
<span className="text-muted-foreground"> <span className="text-muted-foreground">
No converted compose data available. No converted compose data available.
@@ -364,7 +364,7 @@ export const HandleBackup = ({
> >
<div className="grid grid-cols-1 gap-4"> <div className="grid grid-cols-1 gap-4">
{errorServices && ( {errorServices && (
<AlertBlock type="warning" className="[overflow-wrap:anywhere]"> <AlertBlock type="warning" className="wrap-anywhere">
{errorServices?.message} {errorServices?.message}
</AlertBlock> </AlertBlock>
)} )}
@@ -409,7 +409,7 @@ export const HandleBackup = ({
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -528,7 +528,7 @@ export const HandleBackup = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Fetch: Will clone the repository and load the Fetch: Will clone the repository and load the
@@ -558,7 +558,7 @@ export const HandleBackup = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Cache: If you previously deployed this Cache: If you previously deployed this
@@ -345,7 +345,7 @@ export const RestoreBackup = ({
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -427,7 +427,7 @@ export const RestoreBackup = ({
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full justify-between !bg-input", "w-full justify-between bg-input!",
!field.value && "text-muted-foreground", !field.value && "text-muted-foreground",
)} )}
> >
@@ -622,7 +622,7 @@ export const RestoreBackup = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Fetch: Will clone the repository and load the Fetch: Will clone the repository and load the
@@ -652,7 +652,7 @@ export const RestoreBackup = ({
<TooltipContent <TooltipContent
side="left" side="left"
sideOffset={5} sideOffset={5}
className="max-w-[10rem]" className="max-w-40"
> >
<p> <p>
Cache: If you previously deployed this compose, Cache: If you previously deployed this compose,
@@ -44,7 +44,7 @@ export const ShowContainerConfig = ({ containerId, serverId }: Props) => {
</DialogHeader> </DialogHeader>
<div className="text-wrap rounded-lg border p-4 overflow-y-auto text-sm bg-card max-h-[80vh]"> <div className="text-wrap rounded-lg border p-4 overflow-y-auto text-sm bg-card max-h-[80vh]">
<code> <code>
<pre className="whitespace-pre-wrap break-words"> <pre className="whitespace-pre-wrap wrap-break-word">
<CodeEditor <CodeEditor
language="json" language="json"
lineWrapping lineWrapping
@@ -165,7 +165,7 @@ export function AnalyzeLogs({ logs, context }: Props) {
) : ( ) : (
<> <>
<div className="max-h-[400px] overflow-y-auto"> <div className="max-h-[400px] overflow-y-auto">
<div className="prose prose-sm dark:prose-invert max-w-none text-sm break-words"> <div className="prose prose-sm dark:prose-invert max-w-none text-sm wrap-break-word">
<ReactMarkdown>{data.analysis}</ReactMarkdown> <ReactMarkdown>{data.analysis}</ReactMarkdown>
</div> </div>
</div> </div>
@@ -119,7 +119,7 @@ export function LineCountFilter({
placeholder="Number of lines" placeholder="Number of lines"
value={inputValue} value={inputValue}
onValueChange={handleInputChange} onValueChange={handleInputChange}
className="flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50" className="flex h-9 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"
onKeyDown={(e) => { onKeyDown={(e) => {
if (e.key === "Enter") { if (e.key === "Enter") {
e.preventDefault(); e.preventDefault();
@@ -146,7 +146,7 @@ export function LineCountFilter({
<CommandPrimitive.Item <CommandPrimitive.Item
key={option.value} key={option.value}
onSelect={() => handleSelect(option.label)} onSelect={() => handleSelect(option.label)}
className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground" className="relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50 aria-selected:bg-accent aria-selected:text-accent-foreground"
> >
<div <div
className={cn( className={cn(
@@ -4,7 +4,6 @@ import { Badge } from "@/components/ui/badge";
import { import {
Tooltip, Tooltip,
TooltipContent, TooltipContent,
TooltipPortal,
TooltipProvider, TooltipProvider,
TooltipTrigger, TooltipTrigger,
} from "@/components/ui/tooltip"; } from "@/components/ui/tooltip";
@@ -65,22 +64,20 @@ export function TerminalLine({ log, noTimestamp, searchTerm }: LogLineProps) {
const tooltip = (color: string, timestamp: string | null) => { const tooltip = (color: string, timestamp: string | null) => {
const square = ( const square = (
<div className={cn("w-2 h-full flex-shrink-0 rounded-[3px]", color)} /> <div className={cn("w-2 h-full shrink-0 rounded-[3px]", color)} />
); );
return timestamp ? ( return timestamp ? (
<TooltipProvider delayDuration={0} disableHoverableContent> <TooltipProvider delayDuration={0} disableHoverableContent>
<Tooltip> <Tooltip>
<TooltipTrigger asChild>{square}</TooltipTrigger> <TooltipTrigger asChild>{square}</TooltipTrigger>
<TooltipPortal> <TooltipContent
<TooltipContent sideOffset={5}
sideOffset={5} className="bg-popover border-border z-99999"
className="bg-popover border-border z-[99999]" >
> <p className="text text-xs text-muted-foreground break-all max-w-md">
<p className="text text-xs text-muted-foreground break-all max-w-md"> <pre>{timestamp}</pre>
<pre>{timestamp}</pre> </p>
</p> </TooltipContent>
</TooltipContent>
</TooltipPortal>
</Tooltip> </Tooltip>
</TooltipProvider> </TooltipProvider>
) : ( ) : (
@@ -107,7 +104,7 @@ export function TerminalLine({ log, noTimestamp, searchTerm }: LogLineProps) {
{/* <Square className="size-4 text-muted-foreground opacity-0 group-hover/logitem:opacity-100 transition-opacity" /> */} {/* <Square className="size-4 text-muted-foreground opacity-0 group-hover/logitem:opacity-100 transition-opacity" /> */}
{tooltip(color, rawTimestamp)} {tooltip(color, rawTimestamp)}
{!noTimestamp && ( {!noTimestamp && (
<span className="select-none pl-2 text-muted-foreground w-full sm:w-40 flex-shrink-0"> <span className="select-none pl-2 text-muted-foreground w-full sm:w-40 shrink-0">
{formattedTime} {formattedTime}
</span> </span>
)} )}
@@ -26,7 +26,7 @@ export const RemoveContainerDialog = ({ containerId, serverId }: Props) => {
<AlertDialog> <AlertDialog>
<AlertDialogTrigger asChild> <AlertDialogTrigger asChild>
<DropdownMenuItem <DropdownMenuItem
className="w-full cursor-pointer text-red-500 hover:!text-red-600" className="w-full cursor-pointer text-red-500 hover:text-red-600!"
onSelect={(e) => e.preventDefault()} onSelect={(e) => e.preventDefault()}
> >
Remove Container Remove Container
@@ -100,7 +100,7 @@ export const ShowTraefikFile = ({ path, serverId }: Props) => {
<Form {...form}> <Form {...form}>
<form <form
onSubmit={form.handleSubmit(onSubmit)} onSubmit={form.handleSubmit(onSubmit)}
className="w-full relative z-[5]" className="w-full relative z-5"
> >
<div className="flex flex-col overflow-auto"> <div className="flex flex-col overflow-auto">
{isLoadingFile ? ( {isLoadingFile ? (
@@ -123,7 +123,7 @@ export const ShowTraefikFile = ({ path, serverId }: Props) => {
<FormControl> <FormControl>
<CodeEditor <CodeEditor
lineWrapping lineWrapping
wrapperClassName="h-[35rem] font-mono" wrapperClassName="h-140 font-mono"
placeholder={`http: placeholder={`http:
routers: routers:
router-name: router-name:
@@ -143,7 +143,7 @@ routers:
</pre> </pre>
<div className="flex justify-end absolute z-50 right-6 top-8"> <div className="flex justify-end absolute z-50 right-6 top-8">
<Button <Button
className="shadow-sm" className="shadow-xs"
variant="secondary" variant="secondary"
type="button" type="button"
onClick={async () => { onClick={async () => {
@@ -97,7 +97,7 @@ export const ShowTraefikSystem = ({ serverId }: Props) => {
<> <>
<Tree <Tree
data={directories} data={directories}
className="lg:max-w-[19rem] w-full lg:h-[660px] border rounded-lg" className="lg:max-w-76 w-full lg:h-[660px] border rounded-lg"
onSelectChange={(item) => setFile(item?.id || null)} onSelectChange={(item) => setFile(item?.id || null)}
folderIcon={Folder} folderIcon={Folder}
itemIcon={Workflow} itemIcon={Workflow}
@@ -197,7 +197,7 @@ export const ImpersonationBar = () => {
> >
{selectedUser ? ( {selectedUser ? (
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<UserIcon className="mr-2 h-4 w-4 flex-shrink-0" /> <UserIcon className="mr-2 h-4 w-4 shrink-0" />
<span className="truncate flex flex-col items-start"> <span className="truncate flex flex-col items-start">
<span className="text-sm font-medium"> <span className="text-sm font-medium">
{`${selectedUser.name} ${selectedUser.lastName}`.trim() || {`${selectedUser.name} ${selectedUser.lastName}`.trim() ||
@@ -245,7 +245,7 @@ export const ImpersonationBar = () => {
}} }}
> >
<span className="flex items-center gap-2 flex-1"> <span className="flex items-center gap-2 flex-1">
<UserIcon className="h-4 w-4 flex-shrink-0" /> <UserIcon className="h-4 w-4 shrink-0" />
<span className="flex flex-col items-start"> <span className="flex flex-col items-start">
<span className="text-sm font-medium"> <span className="text-sm font-medium">
{`${user.name} ${user.lastName}`.trim() || {`${user.name} ${user.lastName}`.trim() ||
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -96,7 +96,7 @@ export const ShowGeneralLibsql = ({ libsqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Downloads and sets up the Libsql database</p> <p>Downloads and sets up the Libsql database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -136,7 +136,7 @@ export const ShowGeneralLibsql = ({ libsqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Restart the Libsql service without rebuilding</p> <p>Restart the Libsql service without rebuilding</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -176,7 +176,7 @@ export const ShowGeneralLibsql = ({ libsqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the Libsql database (requires a previous Start the Libsql database (requires a previous
successful setup) successful setup)
@@ -218,7 +218,7 @@ export const ShowGeneralLibsql = ({ libsqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running Libsql database</p> <p>Stop the currently running Libsql database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -243,7 +243,7 @@ export const ShowGeneralLibsql = ({ libsqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Open a terminal to the Libsql container</p> <p>Open a terminal to the Libsql container</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -1,4 +1,3 @@
import { SelectGroup } from "@radix-ui/react-select";
import { ToggleVisibilityInput } from "@/components/shared/toggle-visibility-input"; import { ToggleVisibilityInput } from "@/components/shared/toggle-visibility-input";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
@@ -6,6 +5,7 @@ import { Label } from "@/components/ui/label";
import { import {
Select, Select,
SelectContent, SelectContent,
SelectGroup,
SelectItem, SelectItem,
SelectTrigger, SelectTrigger,
SelectValue, SelectValue,
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -99,7 +99,7 @@ export const ShowGeneralMariadb = ({ mariadbId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Downloads and sets up the MariaDB database</p> <p>Downloads and sets up the MariaDB database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -141,7 +141,7 @@ export const ShowGeneralMariadb = ({ mariadbId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Restart the MariaDB service without rebuilding</p> <p>Restart the MariaDB service without rebuilding</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -183,7 +183,7 @@ export const ShowGeneralMariadb = ({ mariadbId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the MariaDB database (requires a previous Start the MariaDB database (requires a previous
successful setup) successful setup)
@@ -225,7 +225,7 @@ export const ShowGeneralMariadb = ({ mariadbId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running MariaDB database</p> <p>Stop the currently running MariaDB database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -250,7 +250,7 @@ export const ShowGeneralMariadb = ({ mariadbId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Open a terminal to the MariaDB container</p> <p>Open a terminal to the MariaDB container</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -99,7 +99,7 @@ export const ShowGeneralMongo = ({ mongoId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Downloads and sets up the MongoDB database</p> <p>Downloads and sets up the MongoDB database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -139,7 +139,7 @@ export const ShowGeneralMongo = ({ mongoId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Restart the MongoDB service without rebuilding</p> <p>Restart the MongoDB service without rebuilding</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -179,7 +179,7 @@ export const ShowGeneralMongo = ({ mongoId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the MongoDB database (requires a previous Start the MongoDB database (requires a previous
successful setup) successful setup)
@@ -219,7 +219,7 @@ export const ShowGeneralMongo = ({ mongoId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running MongoDB database</p> <p>Stop the currently running MongoDB database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -244,7 +244,7 @@ export const ShowGeneralMongo = ({ mongoId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Open a terminal to the MongoDB container</p> <p>Open a terminal to the MongoDB container</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -34,7 +34,7 @@ export const DockerBlockChart = ({ accumulativeData }: Props) => {
})); }));
return ( return (
<ChartContainer config={chartConfig} className="mt-4 h-[10rem] w-full"> <ChartContainer config={chartConfig} className="mt-4 h-40 w-full">
<AreaChart <AreaChart
data={transformedData} data={transformedData}
margin={{ top: 10, right: 10, left: 0, bottom: 0 }} margin={{ top: 10, right: 10, left: 0, bottom: 0 }}
@@ -29,7 +29,7 @@ export const DockerCpuChart = ({ accumulativeData }: Props) => {
})); }));
return ( return (
<ChartContainer config={chartConfig} className="mt-4 h-[10rem] w-full"> <ChartContainer config={chartConfig} className="mt-4 h-40 w-full">
<AreaChart <AreaChart
data={transformedData} data={transformedData}
margin={{ top: 10, right: 10, left: 0, bottom: 0 }} margin={{ top: 10, right: 10, left: 0, bottom: 0 }}
@@ -29,7 +29,7 @@ export const DockerDiskChart = ({ accumulativeData, diskTotal }: Props) => {
})); }));
return ( return (
<ChartContainer config={chartConfig} className="mt-4 h-[10rem] w-full"> <ChartContainer config={chartConfig} className="mt-4 h-40 w-full">
<AreaChart <AreaChart
data={transformedData} data={transformedData}
margin={{ top: 10, right: 10, left: 0, bottom: 0 }} margin={{ top: 10, right: 10, left: 0, bottom: 0 }}
@@ -78,7 +78,7 @@ export const DockerDiskUsageChart = () => {
if (isLoading) { if (isLoading) {
return ( return (
<div className="flex items-center justify-center h-[16rem]"> <div className="flex items-center justify-center h-64">
<Loader2 className="size-5 animate-spin text-muted-foreground" /> <Loader2 className="size-5 animate-spin text-muted-foreground" />
</div> </div>
); );
@@ -35,7 +35,7 @@ export const DockerMemoryChart = ({
})); }));
return ( return (
<ChartContainer config={chartConfig} className="mt-4 h-[10rem] w-full"> <ChartContainer config={chartConfig} className="mt-4 h-40 w-full">
<AreaChart <AreaChart
data={transformedData} data={transformedData}
margin={{ top: 10, right: 10, left: 0, bottom: 0 }} margin={{ top: 10, right: 10, left: 0, bottom: 0 }}
@@ -34,7 +34,7 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
})); }));
return ( return (
<ChartContainer config={chartConfig} className="mt-4 h-[10rem] w-full"> <ChartContainer config={chartConfig} className="mt-4 h-40 w-full">
<AreaChart <AreaChart
data={transformedData} data={transformedData}
margin={{ top: 10, right: 10, left: 0, bottom: 0 }} margin={{ top: 10, right: 10, left: 0, bottom: 0 }}
@@ -227,7 +227,7 @@ export const ContainerFreeMonitoring = ({
String(currentData.cpu.value ?? "0%").replace("%", ""), String(currentData.cpu.value ?? "0%").replace("%", ""),
10, 10,
)} )}
className="w-[100%]" className="w-full"
/> />
<DockerCpuChart accumulativeData={accumulativeData.cpu} /> <DockerCpuChart accumulativeData={accumulativeData.cpu} />
</div> </div>
@@ -250,7 +250,7 @@ export const ContainerFreeMonitoring = ({
convertMemoryToBytes(currentData.memory.value.total)) * convertMemoryToBytes(currentData.memory.value.total)) *
100 100
} }
className="w-[100%]" className="w-full"
/> />
<DockerMemoryChart <DockerMemoryChart
accumulativeData={accumulativeData.memory} accumulativeData={accumulativeData.memory}
@@ -275,7 +275,7 @@ export const ContainerFreeMonitoring = ({
</span> </span>
<Progress <Progress
value={currentData.disk.value.diskUsedPercentage} value={currentData.disk.value.diskUsedPercentage}
className="w-[100%]" className="w-full"
/> />
<DockerDiskChart <DockerDiskChart
accumulativeData={accumulativeData.disk} accumulativeData={accumulativeData.disk}
@@ -115,7 +115,7 @@ export const ContainerBlockChart = ({ data }: Props) => {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -84,7 +84,7 @@ export const ContainerCPUChart = ({ data }: Props) => {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -99,7 +99,7 @@ export const ContainerMemoryChart = ({ data }: Props) => {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -122,7 +122,7 @@ export const ContainerNetworkChart = ({ data }: Props) => {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -71,7 +71,7 @@ export function CPUChart({ data }: CPUChartProps) {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -86,7 +86,7 @@ export function MemoryChart({ data }: MemoryChartProps) {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -90,7 +90,7 @@ export function NetworkChart({ data }: NetworkChartProps) {
if (active && payload && payload.length) { if (active && payload && payload.length) {
const data = payload?.[0]?.payload; const data = payload?.[0]?.payload;
return ( return (
<div className="rounded-lg border bg-background p-2 shadow-sm"> <div className="rounded-lg border bg-background p-2 shadow-xs">
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-2 gap-2">
<div className="flex flex-col"> <div className="flex flex-col">
<span className="text-[0.70rem] uppercase text-muted-foreground"> <span className="text-[0.70rem] uppercase text-muted-foreground">
@@ -202,7 +202,7 @@ export const ShowPaidMonitoring = ({
{/* Stats Cards */} {/* Stats Cards */}
<div className="grid gap-4 grid-cols-1 sm:grid-cols-2 xl:grid-cols-4"> <div className="grid gap-4 grid-cols-1 sm:grid-cols-2 xl:grid-cols-4">
<div className="rounded-lg border text-card-foreground shadow-sm p-6"> <div className="rounded-lg border text-card-foreground shadow-xs p-6">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Clock className="h-4 w-4 text-muted-foreground" /> <Clock className="h-4 w-4 text-muted-foreground" />
<h3 className="text-sm font-medium">Uptime</h3> <h3 className="text-sm font-medium">Uptime</h3>
@@ -212,7 +212,7 @@ export const ShowPaidMonitoring = ({
</p> </p>
</div> </div>
<div className="rounded-lg border text-card-foreground shadow-sm p-6"> <div className="rounded-lg border text-card-foreground shadow-xs p-6">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Cpu className="h-4 w-4 text-muted-foreground" /> <Cpu className="h-4 w-4 text-muted-foreground" />
<h3 className="text-sm font-medium">CPU Usage</h3> <h3 className="text-sm font-medium">CPU Usage</h3>
@@ -220,7 +220,7 @@ export const ShowPaidMonitoring = ({
<p className="mt-2 text-2xl font-bold">{metrics.cpu}%</p> <p className="mt-2 text-2xl font-bold">{metrics.cpu}%</p>
</div> </div>
<div className="rounded-lg border text-card-foreground bg-transparent shadow-sm p-6"> <div className="rounded-lg border text-card-foreground bg-transparent shadow-xs p-6">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<MemoryStick className="h-4 w-4 text-muted-foreground" /> <MemoryStick className="h-4 w-4 text-muted-foreground" />
<h3 className="text-sm font-medium">Memory Usage</h3> <h3 className="text-sm font-medium">Memory Usage</h3>
@@ -230,7 +230,7 @@ export const ShowPaidMonitoring = ({
</p> </p>
</div> </div>
<div className="rounded-lg border text-card-foreground shadow-sm p-6"> <div className="rounded-lg border text-card-foreground shadow-xs p-6">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<HardDrive className="h-4 w-4 text-muted-foreground" /> <HardDrive className="h-4 w-4 text-muted-foreground" />
<h3 className="text-sm font-medium">Disk Usage</h3> <h3 className="text-sm font-medium">Disk Usage</h3>
@@ -240,7 +240,7 @@ export const ShowPaidMonitoring = ({
</div> </div>
{/* System Information */} {/* System Information */}
<div className="rounded-lg border text-card-foreground shadow-sm p-6"> <div className="rounded-lg border text-card-foreground shadow-xs p-6">
<h3 className="text-lg font-medium mb-4">System Information</h3> <h3 className="text-lg font-medium mb-4">System Information</h3>
<div className="grid gap-4 md:grid-cols-2"> <div className="grid gap-4 md:grid-cols-2">
<div> <div>
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -97,7 +97,7 @@ export const ShowGeneralMysql = ({ mysqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Downloads and sets up the MySQL database</p> <p>Downloads and sets up the MySQL database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -137,7 +137,7 @@ export const ShowGeneralMysql = ({ mysqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Restart the MySQL service without rebuilding</p> <p>Restart the MySQL service without rebuilding</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -177,7 +177,7 @@ export const ShowGeneralMysql = ({ mysqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the MySQL database (requires a previous Start the MySQL database (requires a previous
successful setup) successful setup)
@@ -217,7 +217,7 @@ export const ShowGeneralMysql = ({ mysqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running MySQL database</p> <p>Stop the currently running MySQL database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -242,7 +242,7 @@ export const ShowGeneralMysql = ({ mysqlId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Open a terminal to the MySQL container</p> <p>Open a terminal to the MySQL container</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -99,7 +99,7 @@ export const ShowGeneralPostgres = ({ postgresId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Downloads and sets up the PostgreSQL database</p> <p>Downloads and sets up the PostgreSQL database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -139,7 +139,7 @@ export const ShowGeneralPostgres = ({ postgresId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Restart the PostgreSQL service without rebuilding Restart the PostgreSQL service without rebuilding
</p> </p>
@@ -181,7 +181,7 @@ export const ShowGeneralPostgres = ({ postgresId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the PostgreSQL database (requires a previous Start the PostgreSQL database (requires a previous
successful setup) successful setup)
@@ -221,7 +221,7 @@ export const ShowGeneralPostgres = ({ postgresId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Stop the currently running PostgreSQL database Stop the currently running PostgreSQL database
</p> </p>
@@ -248,7 +248,7 @@ export const ShowGeneralPostgres = ({ postgresId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Open a terminal to the PostgreSQL container</p> <p>Open a terminal to the PostgreSQL container</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -180,7 +180,7 @@ export const AddApplication = ({ environmentId, projectName }: Props) => {
</FormLabel> </FormLabel>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent <TooltipContent
className="z-[999] w-[300px]" className="z-999 w-[300px]"
align="start" align="start"
side="top" side="top"
> >
@@ -191,7 +191,7 @@ export const AddCompose = ({ environmentId, projectName }: Props) => {
</FormLabel> </FormLabel>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent <TooltipContent
className="z-[999] w-[300px]" className="z-999 w-[300px]"
align="start" align="start"
side="top" side="top"
> >
@@ -412,7 +412,7 @@ export const AddDatabase = ({ environmentId, projectName }: Props) => {
/> />
<Label <Label
htmlFor={key} htmlFor={key}
className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer" className="flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary has-data-[state=checked]:border-primary cursor-pointer"
> >
{value.icon} {value.icon}
{value.label} {value.label}
@@ -765,7 +765,7 @@ export const AddDatabase = ({ environmentId, projectName }: Props) => {
name="replicaSets" name="replicaSets"
render={({ field }) => { render={({ field }) => {
return ( return (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Use Replica Sets</FormLabel> <FormLabel>Use Replica Sets</FormLabel>
</div> </div>
@@ -231,7 +231,7 @@ export const AddImport = ({ environmentId, projectName }: Props) => {
</FormLabel> </FormLabel>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent <TooltipContent
className="z-[999] w-[300px]" className="z-999 w-[300px]"
align="start" align="start"
side="top" side="top"
> >
@@ -386,7 +386,7 @@ export const AddImport = ({ environmentId, projectName }: Props) => {
{templateInfo.template.domains.map((domain, index) => ( {templateInfo.template.domains.map((domain, index) => (
<div <div
key={index} key={index}
className="rounded-lg border bg-card p-3 text-card-foreground shadow-sm" className="rounded-lg border bg-card p-3 text-card-foreground shadow-xs"
> >
<div className="font-medium"> <div className="font-medium">
{domain.serviceName} {domain.serviceName}
@@ -236,7 +236,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
<Button <Button
variant="outline" variant="outline"
className={cn( className={cn(
"w-full sm:w-[200px] justify-between !bg-input", "w-full sm:w-[200px] justify-between bg-input!",
)} )}
> >
{isLoadingTags {isLoadingTags
@@ -296,7 +296,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
variant={showBookmarksOnly ? "default" : "outline"} variant={showBookmarksOnly ? "default" : "outline"}
size="icon" size="icon"
onClick={() => setShowBookmarksOnly(!showBookmarksOnly)} onClick={() => setShowBookmarksOnly(!showBookmarksOnly)}
className="h-9 w-9 flex-shrink-0" className="h-9 w-9 shrink-0"
disabled={isLoadingBookmarks} disabled={isLoadingBookmarks}
> >
<Bookmark <Bookmark
@@ -311,7 +311,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
onClick={() => onClick={() =>
setViewMode(viewMode === "detailed" ? "icon" : "detailed") setViewMode(viewMode === "detailed" ? "icon" : "detailed")
} }
className="h-9 w-9 flex-shrink-0" className="h-9 w-9 shrink-0"
> >
{viewMode === "detailed" ? ( {viewMode === "detailed" ? (
<LayoutGrid className="size-4" /> <LayoutGrid className="size-4" />
@@ -398,7 +398,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
<Button <Button
variant="ghost" variant="ghost"
size="icon" size="icon"
className="h-8 w-8 bg-background/80 backdrop-blur-sm hover:bg-background" className="h-8 w-8 bg-background/80 backdrop-blur-xs hover:bg-background"
onClick={(e) => handleToggleBookmark(e, template.id)} onClick={(e) => handleToggleBookmark(e, template.id)}
> >
<Bookmark <Bookmark
@@ -451,7 +451,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
{/* Template Content */} {/* Template Content */}
{viewMode === "detailed" && ( {viewMode === "detailed" && (
<ScrollArea className="flex-1 p-6"> <ScrollArea className="min-h-0 flex-1 p-6">
<div className="text-sm text-muted-foreground"> <div className="text-sm text-muted-foreground">
{template?.description} {template?.description}
</div> </div>
@@ -534,7 +534,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
</Label> </Label>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent <TooltipContent
className="z-[999] w-[300px]" className="z-999 w-[300px]"
align="start" align="start"
side="top" side="top"
> >
@@ -297,7 +297,7 @@ export const AdvancedEnvironmentSelector = ({
</DialogHeader> </DialogHeader>
<div className="space-y-4"> <div className="space-y-4">
<div className="space-y-1"> <div className="space-y-2">
<Label htmlFor="name">Name</Label> <Label htmlFor="name">Name</Label>
<Input <Input
id="name" id="name"
@@ -306,7 +306,7 @@ export const AdvancedEnvironmentSelector = ({
placeholder="Environment name" placeholder="Environment name"
/> />
</div> </div>
<div className="space-y-1"> <div className="space-y-2">
<Label htmlFor="description">Description (optional)</Label> <Label htmlFor="description">Description (optional)</Label>
<Textarea <Textarea
id="description" id="description"
@@ -5,7 +5,7 @@ import type { StepProps } from "./step-two";
export const StepThree = ({ templateInfo }: StepProps) => { export const StepThree = ({ templateInfo }: StepProps) => {
return ( return (
<div className="flex flex-col h-full"> <div className="flex flex-col h-full">
<div className="flex-grow"> <div className="grow">
<div className="space-y-6"> <div className="space-y-6">
<h2 className="text-lg font-semibold">Step 3: Review and Finalize</h2> <h2 className="text-lg font-semibold">Step 3: Review and Finalize</h2>
<div className="space-y-4"> <div className="space-y-4">
@@ -201,7 +201,7 @@ export const StepTwo = ({ templateInfo, setTemplateInfo }: StepProps) => {
return ( return (
<div className="flex flex-col h-full gap-6"> <div className="flex flex-col h-full gap-6">
<div className="flex-grow overflow-auto pb-8"> <div className="grow overflow-auto pb-8">
<div className="space-y-6"> <div className="space-y-6">
<h2 className="text-lg font-semibold">Step 2: Choose a Variant</h2> <h2 className="text-lg font-semibold">Step 2: Choose a Variant</h2>
{!selectedVariant && ( {!selectedVariant && (
@@ -184,7 +184,7 @@ export const TemplateGenerator = ({ environmentId }: Props) => {
> >
{stepper.all.map((step, index, array) => ( {stepper.all.map((step, index, array) => (
<React.Fragment key={step.id}> <React.Fragment key={step.id}>
<li className="flex items-center gap-4 flex-shrink-0"> <li className="flex items-center gap-4 shrink-0">
<Button <Button
type="button" type="button"
role="tab" role="tab"
@@ -154,7 +154,7 @@ export const EnvironmentVariables = ({ environmentId, children }: Props) => {
lineWrapping lineWrapping
language="properties" language="properties"
readOnly={!canWrite} readOnly={!canWrite}
wrapperClassName="h-[35rem] font-mono" wrapperClassName="h-140 font-mono"
placeholder={`NODE_ENV=development placeholder={`NODE_ENV=development
DATABASE_URL=postgresql://localhost:5432/mydb DATABASE_URL=postgresql://localhost:5432/mydb
API_KEY=your-api-key-here API_KEY=your-api-key-here
@@ -152,7 +152,7 @@ export const ProjectEnvironment = ({ projectId, children }: Props) => {
lineWrapping lineWrapping
language="properties" language="properties"
readOnly={!canWrite} readOnly={!canWrite}
wrapperClassName="h-[35rem] font-mono" wrapperClassName="h-140 font-mono"
placeholder={`NODE_ENV=production placeholder={`NODE_ENV=production
PORT=3000 PORT=3000
@@ -207,7 +207,7 @@ export const ShowProjects = () => {
<Card className="h-full bg-sidebar p-2.5 rounded-xl "> <Card className="h-full bg-sidebar p-2.5 rounded-xl ">
<div className="rounded-xl bg-background shadow-md "> <div className="rounded-xl bg-background shadow-md ">
<div className="flex justify-between gap-4 w-full items-center flex-wrap p-6"> <div className="flex justify-between gap-4 w-full items-center flex-wrap p-6">
<CardHeader className="p-0"> <CardHeader className="flex-1 p-0">
<CardTitle className="text-xl flex flex-row gap-2"> <CardTitle className="text-xl flex flex-row gap-2">
<FolderInput className="size-6 text-muted-foreground self-center" /> <FolderInput className="size-6 text-muted-foreground self-center" />
Projects Projects
@@ -1,4 +1,4 @@
import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { Tooltip as TooltipPrimitive } from "radix-ui";
import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react"; import { Ban, CheckCircle2, RefreshCcw, Rocket, Terminal } from "lucide-react";
import { useState } from "react"; import { useState } from "react";
import { toast } from "sonner"; import { toast } from "sonner";
@@ -98,7 +98,7 @@ export const ShowGeneralRedis = ({ redisId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Downloads and sets up the Redis database</p> <p>Downloads and sets up the Redis database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -138,7 +138,7 @@ export const ShowGeneralRedis = ({ redisId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Restart the Redis service without rebuilding</p> <p>Restart the Redis service without rebuilding</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -178,7 +178,7 @@ export const ShowGeneralRedis = ({ redisId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p> <p>
Start the Redis database (requires a previous Start the Redis database (requires a previous
successful setup) successful setup)
@@ -218,7 +218,7 @@ export const ShowGeneralRedis = ({ redisId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Stop the currently running Redis database</p> <p>Stop the currently running Redis database</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -243,7 +243,7 @@ export const ShowGeneralRedis = ({ redisId }: Props) => {
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipPrimitive.Portal> <TooltipPrimitive.Portal>
<TooltipContent sideOffset={5} className="z-[60]"> <TooltipContent sideOffset={5} className="z-60">
<p>Open a terminal to the Redis container</p> <p>Open a terminal to the Redis container</p>
</TooltipContent> </TooltipContent>
</TooltipPrimitive.Portal> </TooltipPrimitive.Portal>
@@ -335,14 +335,14 @@ export const RequestsTable = ({ dateRange }: RequestsTableProps) => {
Details of the request log entry. Details of the request log entry.
</SheetDescription> </SheetDescription>
</SheetHeader> </SheetHeader>
<ScrollArea className="flex-grow mt-4 pr-4"> <ScrollArea className="grow mt-4 pr-4">
<div className="border rounded-md"> <div className="border rounded-md">
<Table> <Table>
<TableBody> <TableBody>
{Object.entries(selectedRow || {}).map(([key, value]) => ( {Object.entries(selectedRow || {}).map(([key, value]) => (
<TableRow key={key}> <TableRow key={key}>
<TableCell className="font-medium">{key}</TableCell> <TableCell className="font-medium">{key}</TableCell>
<TableCell className="truncate break-words break-before-all whitespace-pre-wrap"> <TableCell className="truncate wrap-break-word break-before-all whitespace-pre-wrap">
{key === "RequestAddr" ? ( {key === "RequestAddr" ? (
<div className="flex items-center gap-2 bg-muted p-1 rounded"> <div className="flex items-center gap-2 bg-muted p-1 rounded">
<span>{value}</span> <span>{value}</span>
@@ -226,7 +226,7 @@ export const ShowRequests = () => {
</PopoverTrigger> </PopoverTrigger>
<PopoverContent className="w-auto p-0" align="end"> <PopoverContent className="w-auto p-0" align="end">
<Calendar <Calendar
initialFocus autoFocus
mode="range" mode="range"
defaultMonth={dateRange.from} defaultMonth={dateRange.from}
selected={{ selected={{
@@ -150,7 +150,7 @@ export const SearchCommand = () => {
{application.type === "compose" && ( {application.type === "compose" && (
<CircuitBoard className="h-6 w-6 mr-2" /> <CircuitBoard className="h-6 w-6 mr-2" />
)} )}
<span className="flex-grow"> <span className="grow">
{project.name} / {application.environmentName} /{" "} {project.name} / {application.environmentName} /{" "}
{application.name}{" "} {application.name}{" "}
<div style={{ display: "none" }}>{application.id}</div> <div style={{ display: "none" }}>{application.id}</div>
@@ -317,7 +317,7 @@ export const ShowBilling = () => {
<Button <Button
variant={!updateFormAnnual ? "default" : "outline"} variant={!updateFormAnnual ? "default" : "outline"}
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpdateFormAnnual(false)} onClick={() => setUpdateFormAnnual(false)}
> >
Monthly Monthly
@@ -325,7 +325,7 @@ export const ShowBilling = () => {
<Button <Button
variant={updateFormAnnual ? "default" : "outline"} variant={updateFormAnnual ? "default" : "outline"}
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpdateFormAnnual(true)} onClick={() => setUpdateFormAnnual(true)}
> >
Annual (20% off) Annual (20% off)
@@ -339,7 +339,7 @@ export const ShowBilling = () => {
upgradeTier === "hobby" ? "default" : "outline" upgradeTier === "hobby" ? "default" : "outline"
} }
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpgradeTier("hobby")} onClick={() => setUpgradeTier("hobby")}
> >
Hobby Hobby
@@ -349,7 +349,7 @@ export const ShowBilling = () => {
upgradeTier === "startup" ? "default" : "outline" upgradeTier === "startup" ? "default" : "outline"
} }
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpgradeTier("startup")} onClick={() => setUpgradeTier("startup")}
> >
Startup Startup
@@ -532,7 +532,7 @@ export const ShowBilling = () => {
<Button <Button
variant={!updateFormAnnual ? "default" : "outline"} variant={!updateFormAnnual ? "default" : "outline"}
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpdateFormAnnual(false)} onClick={() => setUpdateFormAnnual(false)}
> >
Monthly Monthly
@@ -540,7 +540,7 @@ export const ShowBilling = () => {
<Button <Button
variant={updateFormAnnual ? "default" : "outline"} variant={updateFormAnnual ? "default" : "outline"}
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpdateFormAnnual(true)} onClick={() => setUpdateFormAnnual(true)}
> >
Annual (20% off) Annual (20% off)
@@ -554,7 +554,7 @@ export const ShowBilling = () => {
upgradeTier === "hobby" ? "default" : "outline" upgradeTier === "hobby" ? "default" : "outline"
} }
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpgradeTier("hobby")} onClick={() => setUpgradeTier("hobby")}
> >
Hobby Hobby
@@ -564,7 +564,7 @@ export const ShowBilling = () => {
upgradeTier === "startup" ? "default" : "outline" upgradeTier === "startup" ? "default" : "outline"
} }
size="sm" size="sm"
className="min-w-[6rem]" className="min-w-24"
onClick={() => setUpgradeTier("startup")} onClick={() => setUpgradeTier("startup")}
> >
Startup Startup
@@ -768,7 +768,7 @@ export const ShowBilling = () => {
</Tabs> </Tabs>
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3"> <div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
{/* Hobby */} {/* Hobby */}
<section className="flex flex-col rounded-2xl border border-border px-5 py-6 shadow-sm"> <section className="flex flex-col rounded-2xl border border-border px-5 py-6 shadow-xs">
{isAnnual && ( {isAnnual && (
<Badge className="mb-3 w-fit" variant="secondary"> <Badge className="mb-3 w-fit" variant="secondary">
20% off 20% off
@@ -892,7 +892,7 @@ export const ShowBilling = () => {
</section> </section>
{/* Startup - Recommended */} {/* Startup - Recommended */}
<section className="flex flex-col rounded-2xl border-2 border-primary px-5 py-6 shadow-sm"> <section className="flex flex-col rounded-2xl border-2 border-primary px-5 py-6 shadow-xs">
<div className="mb-3 flex flex-wrap gap-2"> <div className="mb-3 flex flex-wrap gap-2">
<Badge className="w-fit" variant="default"> <Badge className="w-fit" variant="default">
Recommended Recommended
@@ -1043,7 +1043,7 @@ export const ShowBilling = () => {
</section> </section>
{/* Enterprise */} {/* Enterprise */}
<section className="flex flex-col rounded-2xl border border-border px-5 py-6 shadow-sm"> <section className="flex flex-col rounded-2xl border border-border px-5 py-6 shadow-xs">
<h3 className="text-xl font-bold tracking-tight text-foreground"> <h3 className="text-xl font-bold tracking-tight text-foreground">
Enterprise Enterprise
</h3> </h3>
@@ -1097,7 +1097,7 @@ export const ShowBilling = () => {
className="w-full" className="w-full"
onValueChange={(e) => setIsAnnual(e === "annual")} onValueChange={(e) => setIsAnnual(e === "annual")}
> >
<TabsList className="grid w-full max-w-[14rem] grid-cols-2"> <TabsList className="grid w-full max-w-56 grid-cols-2">
<TabsTrigger value="monthly">Monthly</TabsTrigger> <TabsTrigger value="monthly">Monthly</TabsTrigger>
<TabsTrigger value="annual">Annual (20% off)</TabsTrigger> <TabsTrigger value="annual">Annual (20% off)</TabsTrigger>
</TabsList> </TabsList>
@@ -1110,7 +1110,7 @@ export const ShowBilling = () => {
className={clsx( className={clsx(
"flex flex-col rounded-3xl border-dashed border-2 px-4 max-w-sm", "flex flex-col rounded-3xl border-dashed border-2 px-4 max-w-sm",
featured featured
? "order-first border py-8 lg:order-none" ? "order-first border py-8 lg:order-0"
: "lg:py-8", : "lg:py-8",
)} )}
> >
@@ -160,7 +160,7 @@ export const HandleCertificate = ({ certificateId }: Props) => {
</Button> </Button>
)} )}
</DialogTrigger> </DialogTrigger>
<DialogContent className="sm:max-w-2xl"> <DialogContent className="sm:max-w-2xl max-h-[90vh] overflow-y-auto">
<DialogHeader> <DialogHeader>
<DialogTitle> <DialogTitle>
{certificateId ? "Update" : "Add New"} Certificate {certificateId ? "Update" : "Add New"} Certificate
@@ -200,7 +200,7 @@ export const HandleCertificate = ({ certificateId }: Props) => {
<FormLabel>Certificate Data</FormLabel> <FormLabel>Certificate Data</FormLabel>
<FormControl> <FormControl>
<Textarea <Textarea
className="h-32" className="h-32 max-h-32 resize-none overflow-y-auto field-sizing-fixed"
placeholder={certificateDataHolder} placeholder={certificateDataHolder}
{...field} {...field}
/> />
@@ -217,7 +217,7 @@ export const HandleCertificate = ({ certificateId }: Props) => {
<FormLabel>Private Key</FormLabel> <FormLabel>Private Key</FormLabel>
<FormControl> <FormControl>
<Textarea <Textarea
className="h-32" className="h-32 max-h-32 resize-none overflow-y-auto field-sizing-fixed"
placeholder={privateKeyDataHolder} placeholder={privateKeyDataHolder}
{...field} {...field}
/> />
@@ -292,7 +292,7 @@ export const HandleCertificate = ({ certificateId }: Props) => {
)} )}
</form> </form>
<DialogFooter className="flex w-full flex-row !justify-end"> <DialogFooter className="flex w-full flex-row justify-end!">
<Button <Button
isLoading={isPending} isLoading={isPending}
form="hook-form-handle-certificate" form="hook-form-handle-certificate"
@@ -31,9 +31,9 @@ export const ShowNodeData = ({ data }: Props) => {
See in detail the metadata of this node See in detail the metadata of this node
</DialogDescription> </DialogDescription>
</DialogHeader> </DialogHeader>
<div className="text-wrap rounded-lg border p-4 text-sm sm:max-w-[59rem] bg-card"> <div className="text-wrap rounded-lg border p-4 text-sm sm:max-w-236 bg-card">
<code> <code>
<pre className="whitespace-pre-wrap break-words"> <pre className="whitespace-pre-wrap wrap-break-word">
<CodeEditor <CodeEditor
language="json" language="json"
lineWrapping lineWrapping
@@ -434,8 +434,8 @@ export const HandleDestinations = ({ destinationId }: Props) => {
<DialogFooter <DialogFooter
className={cn( className={cn(
isCloud ? "!flex-col" : "flex-row", isCloud ? "flex-col!" : "flex-row",
"flex w-full !justify-between gap-4", "flex w-full justify-between! gap-4",
)} )}
> >
{isCloud ? ( {isCloud ? (
@@ -890,7 +890,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
/> />
<Label <Label
htmlFor={key} htmlFor={key}
className="h-24 flex flex-col gap-2 items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary cursor-pointer" className="h-24 flex flex-col gap-2 items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary has-data-[state=checked]:border-primary cursor-pointer"
> >
{value.icon} {value.icon}
{value.label} {value.label}
@@ -1051,7 +1051,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
name="decoration" name="decoration"
defaultValue={true} defaultValue={true}
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Decoration</FormLabel> <FormLabel>Decoration</FormLabel>
<FormDescription> <FormDescription>
@@ -1383,7 +1383,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
name="decoration" name="decoration"
defaultValue={true} defaultValue={true}
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Decoration</FormLabel> <FormLabel>Decoration</FormLabel>
<FormDescription> <FormDescription>
@@ -1591,7 +1591,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name={`headers.${index}.value` as never} name={`headers.${index}.value` as never}
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex-[2]"> <FormItem className="flex-2">
<FormControl> <FormControl>
<Input placeholder="Value" {...field} /> <Input placeholder="Value" {...field} />
</FormControl> </FormControl>
@@ -1824,7 +1824,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="appDeploy" name="appDeploy"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className=""> <div className="">
<FormLabel>App Deploy</FormLabel> <FormLabel>App Deploy</FormLabel>
<FormDescription> <FormDescription>
@@ -1844,7 +1844,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="appBuildError" name="appBuildError"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>App Build Error</FormLabel> <FormLabel>App Build Error</FormLabel>
<FormDescription> <FormDescription>
@@ -1865,7 +1865,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="databaseBackup" name="databaseBackup"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Database Backup</FormLabel> <FormLabel>Database Backup</FormLabel>
<FormDescription> <FormDescription>
@@ -1886,7 +1886,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="dokployBackup" name="dokployBackup"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Dokploy Backup</FormLabel> <FormLabel>Dokploy Backup</FormLabel>
<FormDescription> <FormDescription>
@@ -1907,7 +1907,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="volumeBackup" name="volumeBackup"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Volume Backup</FormLabel> <FormLabel>Volume Backup</FormLabel>
<FormDescription> <FormDescription>
@@ -1928,7 +1928,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="dockerCleanup" name="dockerCleanup"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Docker Cleanup</FormLabel> <FormLabel>Docker Cleanup</FormLabel>
<FormDescription> <FormDescription>
@@ -1951,7 +1951,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="dokployRestart" name="dokployRestart"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Dokploy Restart</FormLabel> <FormLabel>Dokploy Restart</FormLabel>
<FormDescription> <FormDescription>
@@ -1974,7 +1974,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
control={form.control} control={form.control}
name="serverThreshold" name="serverThreshold"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm gap-2"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs gap-2">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Server Threshold</FormLabel> <FormLabel>Server Threshold</FormLabel>
<FormDescription> <FormDescription>
@@ -1996,7 +1996,7 @@ export const HandleNotifications = ({ notificationId }: Props) => {
</div> </div>
</form> </form>
<DialogFooter className="flex flex-row gap-2 !justify-between w-full"> <DialogFooter className="flex flex-row gap-2 justify-between! w-full">
<Button <Button
isLoading={ isLoading={
isLoadingSlack || isLoadingSlack ||
@@ -25,7 +25,12 @@ import {
FormMessage, FormMessage,
} from "@/components/ui/form"; } from "@/components/ui/form";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
import { InputOTP } from "@/components/ui/input-otp"; import {
InputOTP,
InputOTPGroup,
InputOTPSeparator,
InputOTPSlot,
} from "@/components/ui/input-otp";
import { import {
Tooltip, Tooltip,
TooltipContent, TooltipContent,
@@ -426,7 +431,19 @@ export const Enable2FA = () => {
value={otpValue} value={otpValue}
onChange={setOtpValue} onChange={setOtpValue}
autoFocus autoFocus
/> >
<InputOTPGroup>
<InputOTPSlot index={0} />
<InputOTPSlot index={1} />
<InputOTPSlot index={2} />
</InputOTPGroup>
<InputOTPSeparator />
<InputOTPGroup>
<InputOTPSlot index={3} />
<InputOTPSlot index={4} />
<InputOTPSlot index={5} />
</InputOTPGroup>
</InputOTP>
<FormDescription> <FormDescription>
Enter the 6-digit code from your authenticator app Enter the 6-digit code from your authenticator app
</FormDescription> </FormDescription>
@@ -272,7 +272,7 @@ export const ProfileForm = () => {
className="flex flex-row flex-wrap gap-2 max-xl:justify-center" className="flex flex-row flex-wrap gap-2 max-xl:justify-center"
> >
<FormItem key="no-avatar"> <FormItem key="no-avatar">
<FormLabel className="[&:has([data-state=checked])>.default-avatar]:border-primary [&:has([data-state=checked])>.default-avatar]:border-1 [&:has([data-state=checked])>.default-avatar]:p-px cursor-pointer"> <FormLabel className="[&:has([data-state=checked])>.default-avatar]:border-primary [&:has([data-state=checked])>.default-avatar]:border [&:has([data-state=checked])>.default-avatar]:p-px cursor-pointer">
<FormControl> <FormControl>
<RadioGroupItem <RadioGroupItem
value="" value=""
@@ -290,7 +290,7 @@ export const ProfileForm = () => {
</FormLabel> </FormLabel>
</FormItem> </FormItem>
<FormItem key="custom-upload"> <FormItem key="custom-upload">
<FormLabel className="[&:has([data-state=checked])>.upload-avatar]:border-primary [&:has([data-state=checked])>.upload-avatar]:border-1 [&:has([data-state=checked])>.upload-avatar]:p-px cursor-pointer"> <FormLabel className="[&:has([data-state=checked])>.upload-avatar]:border-primary [&:has([data-state=checked])>.upload-avatar]:border [&:has([data-state=checked])>.upload-avatar]:p-px cursor-pointer">
<FormControl> <FormControl>
<RadioGroupItem <RadioGroupItem
value="upload" value="upload"
@@ -356,7 +356,7 @@ export const ProfileForm = () => {
</FormLabel> </FormLabel>
</FormItem> </FormItem>
<FormItem key="color-avatar"> <FormItem key="color-avatar">
<FormLabel className="[&:has([data-state=checked])>.color-avatar]:border-primary [&:has([data-state=checked])>.color-avatar]:border-1 [&:has([data-state=checked])>.color-avatar]:p-px cursor-pointer relative"> <FormLabel className="[&:has([data-state=checked])>.color-avatar]:border-primary [&:has([data-state=checked])>.color-avatar]:border [&:has([data-state=checked])>.color-avatar]:p-px cursor-pointer relative">
<FormControl> <FormControl>
<RadioGroupItem <RadioGroupItem
value="color" value="color"
@@ -391,7 +391,7 @@ export const ProfileForm = () => {
</FormItem> </FormItem>
{availableAvatars.map((image) => ( {availableAvatars.map((image) => (
<FormItem key={image}> <FormItem key={image}>
<FormLabel className="[&:has([data-state=checked])>img]:border-primary [&:has([data-state=checked])>img]:border-1 [&:has([data-state=checked])>img]:p-px cursor-pointer"> <FormLabel className="[&:has([data-state=checked])>img]:border-primary [&:has([data-state=checked])>img]:border [&:has([data-state=checked])>img]:p-px cursor-pointer">
<FormControl> <FormControl>
<RadioGroupItem <RadioGroupItem
value={image} value={image}
@@ -420,7 +420,7 @@ export const ProfileForm = () => {
control={form.control} control={form.control}
name="allowImpersonation" name="allowImpersonation"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-sm"> <FormItem className="flex flex-row items-center justify-between p-3 mt-4 border rounded-lg shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Allow Impersonation</FormLabel> <FormLabel>Allow Impersonation</FormLabel>
<FormDescription> <FormDescription>
@@ -125,7 +125,7 @@ export const EditScript = ({ serverId }: Props) => {
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Command</FormLabel> <FormLabel>Command</FormLabel>
<FormControl className="max-h-[75vh] max-w-[60rem] overflow-y-scroll overflow-x-hidden"> <FormControl className="max-h-[75vh] max-w-240 overflow-y-scroll overflow-x-hidden">
<CodeEditor <CodeEditor
language="shell" language="shell"
wrapperClassName="font-mono" wrapperClassName="font-mono"
@@ -151,7 +151,7 @@ export const SetupServer = ({ serverId, asButton = false }: Props) => {
</TabsList> </TabsList>
<TabsContent <TabsContent
value="ssh-keys" value="ssh-keys"
className="outline-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0" className="outline-hidden ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"
> >
<div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3"> <div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3">
<p className="text-primary text-base font-semibold"> <p className="text-primary text-base font-semibold">
@@ -325,7 +325,7 @@ export const SetupServer = ({ serverId, asButton = false }: Props) => {
</TabsContent> </TabsContent>
<TabsContent <TabsContent
value="validate" value="validate"
className="outline-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0" className="outline-hidden ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"
> >
<div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3"> <div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3">
<ValidateServer serverId={serverId} /> <ValidateServer serverId={serverId} />
@@ -335,7 +335,7 @@ export const SetupServer = ({ serverId, asButton = false }: Props) => {
<> <>
<TabsContent <TabsContent
value="audit" value="audit"
className="outline-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0" className="outline-hidden ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"
> >
<div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3"> <div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3">
<SecurityAudit serverId={serverId} /> <SecurityAudit serverId={serverId} />
@@ -343,7 +343,7 @@ export const SetupServer = ({ serverId, asButton = false }: Props) => {
</TabsContent> </TabsContent>
<TabsContent <TabsContent
value="monitoring" value="monitoring"
className="outline-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0" className="outline-hidden ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"
> >
<div className="flex flex-col gap-2 text-sm pt-3"> <div className="flex flex-col gap-2 text-sm pt-3">
<div className="rounded-xl bg-background shadow-md border"> <div className="rounded-xl bg-background shadow-md border">
@@ -353,7 +353,7 @@ export const SetupServer = ({ serverId, asButton = false }: Props) => {
</TabsContent> </TabsContent>
<TabsContent <TabsContent
value="gpu-setup" value="gpu-setup"
className="outline-none ring-0 focus-visible:ring-0 focus-visible:ring-offset-0" className="outline-hidden ring-0 focus-visible:ring-0 focus-visible:ring-offset-0"
> >
<div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3"> <div className="flex flex-col gap-2 text-sm text-muted-foreground pt-3">
<GPUSupport serverId={serverId} /> <GPUSupport serverId={serverId} />
@@ -65,7 +65,7 @@ export const ShowServers = () => {
{isCloud && ( {isCloud && (
<span <span
className="bg-gradient-to-r cursor-pointer from-blue-600 via-green-500 to-indigo-400 inline-block text-transparent bg-clip-text text-sm" className="bg-linear-to-r cursor-pointer from-blue-600 via-green-500 to-indigo-400 inline-block text-transparent bg-clip-text text-sm"
onClick={() => { onClick={() => {
router.push("/dashboard/settings/servers?success=true"); router.push("/dashboard/settings/servers?success=true");
}} }}
@@ -122,7 +122,7 @@ export const ShowServers = () => {
<div className="flex items-start justify-between gap-2"> <div className="flex items-start justify-between gap-2">
<div className="flex min-w-0 items-center gap-2"> <div className="flex min-w-0 items-center gap-2">
<ServerIcon className="size-5 shrink-0 text-muted-foreground" /> <ServerIcon className="size-5 shrink-0 text-muted-foreground" />
<CardTitle className="text-lg break-words min-w-0"> <CardTitle className="text-lg wrap-break-word min-w-0">
{server.name} {server.name}
</CardTitle> </CardTitle>
</div> </div>
@@ -92,7 +92,7 @@ export const WelcomeSubscription = () => {
force={0.3} force={0.3}
particleSize={12} particleSize={12}
particleCount={300} particleCount={300}
className="z-[9999]" className="z-9999"
zIndex={9999} zIndex={9999}
width={1500} width={1500}
/> />
@@ -127,7 +127,7 @@ export const WelcomeSubscription = () => {
> >
{stepper.all.map((step, index, array) => ( {stepper.all.map((step, index, array) => (
<React.Fragment key={step.id}> <React.Fragment key={step.id}>
<li className="flex items-center gap-4 flex-shrink-0"> <li className="flex items-center gap-4 shrink-0">
<Button <Button
type="button" type="button"
role="tab" role="tab"
@@ -335,7 +335,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canCreateProjects" name="canCreateProjects"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Create Projects</FormLabel> <FormLabel>Create Projects</FormLabel>
<FormDescription> <FormDescription>
@@ -355,7 +355,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canDeleteProjects" name="canDeleteProjects"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Delete Projects</FormLabel> <FormLabel>Delete Projects</FormLabel>
<FormDescription> <FormDescription>
@@ -375,7 +375,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canCreateServices" name="canCreateServices"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Create Services</FormLabel> <FormLabel>Create Services</FormLabel>
<FormDescription> <FormDescription>
@@ -395,7 +395,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canDeleteServices" name="canDeleteServices"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Delete Services</FormLabel> <FormLabel>Delete Services</FormLabel>
<FormDescription> <FormDescription>
@@ -415,7 +415,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canCreateEnvironments" name="canCreateEnvironments"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Create Environments</FormLabel> <FormLabel>Create Environments</FormLabel>
<FormDescription> <FormDescription>
@@ -435,7 +435,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canDeleteEnvironments" name="canDeleteEnvironments"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Delete Environments</FormLabel> <FormLabel>Delete Environments</FormLabel>
<FormDescription> <FormDescription>
@@ -455,7 +455,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canAccessToTraefikFiles" name="canAccessToTraefikFiles"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Access to Traefik Files</FormLabel> <FormLabel>Access to Traefik Files</FormLabel>
<FormDescription> <FormDescription>
@@ -475,7 +475,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canAccessToDocker" name="canAccessToDocker"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Access to Docker</FormLabel> <FormLabel>Access to Docker</FormLabel>
<FormDescription> <FormDescription>
@@ -495,7 +495,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canAccessToAPI" name="canAccessToAPI"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Access to API/CLI</FormLabel> <FormLabel>Access to API/CLI</FormLabel>
<FormDescription> <FormDescription>
@@ -515,7 +515,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canAccessToSSHKeys" name="canAccessToSSHKeys"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Access to SSH Keys</FormLabel> <FormLabel>Access to SSH Keys</FormLabel>
<FormDescription> <FormDescription>
@@ -535,7 +535,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
control={form.control} control={form.control}
name="canAccessToGitProviders" name="canAccessToGitProviders"
render={({ field }) => ( render={({ field }) => (
<FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-sm"> <FormItem className="flex flex-row items-center justify-between rounded-lg border p-3 shadow-xs">
<div className="space-y-0.5"> <div className="space-y-0.5">
<FormLabel>Access to Git Providers</FormLabel> <FormLabel>Access to Git Providers</FormLabel>
<FormDescription> <FormDescription>
@@ -242,7 +242,7 @@ export const ShowUsers = () => {
}} }}
> >
<DropdownMenuItem <DropdownMenuItem
className="w-full cursor-pointer text-red-500 hover:!text-red-600" className="w-full cursor-pointer text-red-500 hover:text-red-600!"
onSelect={(e) => e.preventDefault()} onSelect={(e) => e.preventDefault()}
> >
Delete User Delete User
@@ -303,7 +303,7 @@ export const ShowUsers = () => {
}} }}
> >
<DropdownMenuItem <DropdownMenuItem
className="w-full cursor-pointer text-red-500 hover:!text-red-600" className="w-full cursor-pointer text-red-500 hover:text-red-600!"
onSelect={(e) => e.preventDefault()} onSelect={(e) => e.preventDefault()}
> >
Unlink User Unlink User

Some files were not shown because too many files have changed in this diff Show More