@@ -294,7 +297,7 @@ function InstanceTabs() {
{TABS.map((tab) => {
const targetPath =
tab.value === 'dashboard' ? '/instance' : `/instance/${tab.value}`;
-
+ const Icon = tab.icon;
return (
-
+
{tab.label}
diff --git a/app/(main)/layout.tsx b/app/(main)/layout.tsx
index d2899542..f816a1b7 100644
--- a/app/(main)/layout.tsx
+++ b/app/(main)/layout.tsx
@@ -8,7 +8,6 @@ export default function DashboardLayout({
}: {
children: React.ReactNode;
}) {
- const variant = 'inset';
return (
-
- {variant != 'inset' ? (
- <>
-
- >
- ) : (
-
-
- {children}
-
-
- )}
+
+
+
+ {children}
+
+
);
diff --git a/app/_lib/server.ts b/app/_lib/server.ts
index e69a43c7..46de2071 100644
--- a/app/_lib/server.ts
+++ b/app/_lib/server.ts
@@ -45,7 +45,8 @@ function processConfigurableOptions(config: ConfigurableOptions) {
};
// Helper to process a single option
- const MATCHED_TYPE_BOTH = 'both' as const;
+ const getOptionIdentifier = (option: ConfigOption) =>
+ option.name || option.key || '[unknown key]';
const processOption = (option: ConfigOption) => {
const textToCheck = [option.condition, option.shortdesc, option.longdesc]
@@ -55,25 +56,25 @@ function processConfigurableOptions(config: ConfigurableOptions) {
// Default to supporting both types
option.supported_types = ['container', 'virtual-machine'];
- let typeMatchCategory: 'both' | 'container' | 'virtual-machine' = MATCHED_TYPE_BOTH;
+ let matchedType: 'both' | 'container' | 'virtual-machine' = 'both';
// Check for container-only patterns
if (
TYPE_PATTERNS.container.some((pattern) => textToCheck.includes(pattern))
) {
option.supported_types = ['container'];
- typeMatchCategory = 'container';
+ matchedType = 'container';
}
// Check for VM-only patterns
else if (
TYPE_PATTERNS.vm.some((pattern) => textToCheck.includes(pattern))
) {
option.supported_types = ['virtual-machine'];
- typeMatchCategory = 'virtual-machine';
+ matchedType = 'virtual-machine';
}
// Warn if no pattern matched and falling back to both
- if (typeMatchCategory === MATCHED_TYPE_BOTH && process.env.NODE_ENV === 'development') {
+ if (matchedType === 'both' && process.env.NODE_ENV === 'development') {
console.warn(
- `[processOption] Option ${option.name || option.key || '[unknown key]'} uses the default 'both' instance types due to unmatched pattern:`,
+ `[processOption] Option ${getOptionIdentifier(option)} uses the default 'both' instance types due to unmatched pattern:`,
textToCheck
);
}