Skip to content

Modern Docker Management, Designed for Everyone

feat: clickable dashboard tiles, volumes tile, and default landing page (#3383)

Kyle Mendelle34eb2d2d526
diff --git a/backend/api/handlers/dashboard.go b/backend/api/handlers/dashboard.go
index 8445ef301..98f34c582 100644
--- a/backend/api/handlers/dashboard.go
+++ b/backend/api/handlers/dashboard.go
@@ -22,6 +22,7 @@ import (
dashboardtypes "github.com/getarcaneapp/arcane/types/v2/dashboard"
imagetypes "github.com/getarcaneapp/arcane/types/v2/image"
versiontypes "github.com/getarcaneapp/arcane/types/v2/version"
+ volumetypes "github.com/getarcaneapp/arcane/types/v2/volume"
"go.getarcane.app/streams/agg"
)
@@ -374,6 +375,14 @@ func (h *DashboardHandler) fetchLegacyDashboardSnapshotInternal(ctx context.Cont
snapshot.ImageUsageCounts = imageCounts.Data
}
+ attempted++
+ var volumeCounts base.ApiResponse[volumetypes.UsageCounts]
+ if err := h.environmentService.ProxyJSONRequestForEnvironment(ctx, environment, http.MethodGet, "/api/environments/0/volumes/counts", nil, &volumeCounts); err != nil {
+ errs = append(errs, err)
+ } else {
+ snapshot.VolumeUsageCounts = &volumeCounts.Data
+ }
+
attempted++
var versionInfo versiontypes.Info
if err := h.environmentService.ProxyJSONRequestForEnvironment(ctx, environment, http.MethodGet, "/api/app-version", nil, &versionInfo); err != nil {
diff --git a/backend/api/handlers/dashboard_test.go b/backend/api/handlers/dashboard_test.go
index e5b63f7ca..464b26a8e 100644
--- a/backend/api/handlers/dashboard_test.go
+++ b/backend/api/handlers/dashboard_test.go
@@ -116,7 +116,7 @@ func TestDashboardHandlerGetDashboardReturnsSnapshot(t *testing.T) {
dockerSvc := newDashboardHandlerTestDockerService(t, settingsSvc, containers, images)
handler := &DashboardHandler{
- dashboardService: services.NewDashboardService(db, dockerSvc, nil, nil, nil, settingsSvc, nil, nil, nil),
+ dashboardService: services.NewDashboardService(db, dockerSvc, nil, nil, nil, settingsSvc, nil, nil, nil, nil),
}
output, err := handler.GetDashboard(context.Background(), &GetDashboardInput{EnvironmentID: "0"})
@@ -160,6 +160,7 @@ func runDashboardStreamAllInternal(t *testing.T, ctx context.Context, cancel con
break
}
}
+ require.NoError(t, scanner.Err())
go func() {
_, _ = io.Copy(io.Discard, pr)
@@ -196,7 +197,7 @@ func TestDashboardHandlerStreamAllEmitsRemoteSnapshotInternal(t *testing.T) {
createStreamTestRemoteEnvironmentInternal(t, db, "remote-1", "Remote", server.URL, token)
handler := &DashboardHandler{
- dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil),
+ dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil, nil),
environmentService: services.NewEnvironmentService(db, server.Client(), nil, nil, settingsService, nil),
}
@@ -245,7 +246,7 @@ func TestDashboardHandlerStreamAllLegacyAgentComposesSnapshotFromGranularEndpoin
createStreamTestRemoteEnvironmentInternal(t, db, "remote-1", "Remote", server.URL, token)
handler := &DashboardHandler{
- dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil),
+ dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil, nil),
environmentService: services.NewEnvironmentService(db, server.Client(), nil, nil, settingsService, nil),
}
@@ -287,7 +288,7 @@ func TestDashboardHandlerStreamAllLegacyAgent404EmitsIncompatibleErrorInternal(t
createStreamTestRemoteEnvironmentInternal(t, db, "remote-1", "Remote", server.URL, token)
handler := &DashboardHandler{
- dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil),
+ dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil, nil),
environmentService: services.NewEnvironmentService(db, server.Client(), nil, nil, settingsService, nil),
}
@@ -337,7 +338,7 @@ func TestDashboardHandlerStreamAllFiltersUnauthorizedEnvironmentsInternal(t *tes
createStreamTestRemoteEnvironmentInternal(t, db, "remote-denied", "Denied", deniedServer.URL, "denied-token")
handler := &DashboardHandler{
- dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil),
+ dashboardService: services.NewDashboardService(db, nil, nil, nil, nil, nil, nil, nil, nil, nil),
environmentService: services.NewEnvironmentService(db, allowedServer.Client(), nil, nil, settingsService, nil),
}
ps := authz.NewPermissionSet()
diff --git a/backend/internal/configschema/schema_test.go b/backend/internal/configschema/schema_test.go
index 42d0b5255..654a57b0f 100644
--- a/backend/internal/configschema/schema_test.go
+++ b/backend/internal/configschema/schema_test.go
@@ -286,6 +286,7 @@ var expectedSettingOverrideKeys = []string{
"buildTimeout",
"buildsDirectory",
"defaultDeployPullPolicy",
+ "defaultLandingPage",
"defaultShell",
"depotProjectId",
"depotToken",
diff --git a/backend/internal/models/settings.go b/backend/internal/models/settings.go
index f52d21b7e..f8dc2c3dc 100644
--- a/backend/internal/models/settings.go
+++ b/backend/internal/models/settings.go
@@ -167,6 +167,7 @@ type Settings struct {
OidcMobileRedirectUris SettingVariable `key:"oidcMobileRedirectUris,envOverride" meta:"label=OIDC Mobile Redirect URIs;type=text;keywords=oidc,mobile,redirect,uri,callback,scheme,ios,android,native;category=authentication;description=Comma-separated allowlist of native app redirect URIs (e.g., arcane-mobile://oidc-callback)"`
// Appearance category
+ DefaultLandingPage SettingVariable `key:"defaultLandingPage,authrequired,local" meta:"label=Default Landing Page;type=select;keywords=landing,default,home,start,startup,page,route,redirect,login,dashboard,navigation;category=appearance;description=Page to open after signing in"`
MobileNavigationMode SettingVariable `key:"mobileNavigationMode,authrequired,local" meta:"label=Mobile Navigation Mode;type=select;keywords=mode,style,type,floating,docked,position,layout,design,appearance,bottom;category=appearance;description=Choose between floating or docked navigation on mobile" catmeta:"id=appearance;title=Appearance;icon=appearance;url=/settings/appearance;description=Customize navigation, theme, and interface behavior"`
MobileNavigationShowLabels SettingVariable `key:"mobileNavigationShowLabels,authrequired,local" meta:"label=Show Navigation Labels;type=boolean;keywords=labels,text,icons,display,show,hide,names,captions,titles,visible,toggle;category=appearance;description=Display text labels alongside navigation icons"`
SidebarHoverExpansion SettingVariable `key:"sidebarHoverExpansion,authrequired,local" meta:"label=Sidebar Hover Expansion;type=boolean;keywords=sidebar,hover,expansion,expand,desktop,mouse,over,collapsed,collapsible,icon,labels,text,preview,peek,tooltip,overlay,temporary,quick,access,navigation,menu,items,submenu,nested;category=appearance;description=Expand sidebar on hover in desktop mode"`
diff --git a/backend/internal/services/dashboard_service.go b/backend/internal/services/dashboard_service.go
index c92a7d86f..1c0c98158 100644
--- a/backend/internal/services/dashboard_service.go
+++ b/backend/internal/services/dashboard_service.go
@@ -18,6 +18,7 @@ import (
dashboardtypes "github.com/getarcaneapp/arcane/types/v2/dashboard"
imagetypes "github.com/getarcaneapp/arcane/types/v2/image"
versiontypes "github.com/getarcaneapp/arcane/types/v2/version"
+ volumetypes "github.com/getarcaneapp/arcane/types/v2/volume"
"go.getarcane.app/sys/cgroup"
libupdater "go.getarcane.app/updater/pkg/labels"
)
@@ -36,6 +37,7 @@ type DashboardService struct {
vulnerabilityService *VulnerabilityService
environmentService *EnvironmentService
versionService *VersionService
+ volumeService *VolumeService
}
type DashboardActionItemsOptions struct {
@@ -52,6 +54,7 @@ func NewDashboardService(
vulnerabilityService *VulnerabilityService,
environmentService *EnvironmentService,
versionService *VersionService,
+ volumeService *VolumeService,
) *DashboardService {
return &DashboardService{
db: db,
@@ -63,6 +66,7 @@ func NewDashboardService(
vulnerabilityService: vulnerabilityService,
environmentService: environmentService,
versionService: versionService,
+ volumeService: volumeService,
}
}
@@ -137,6 +141,14 @@ func (s *DashboardService) GetSnapshot(ctx context.Context, options DashboardAct
imageUsageCounts.TotalSize += img.Size
}
+ // Uses the unfiltered container list so a volume mounted only by an internal
+ // container still counts as in use, matching the volumes page.
+ var volumeUsageCounts *volumetypes.UsageCounts
+ if s.volumeService != nil && dockerSnapshot.Volumes != nil {
+ counts := s.volumeService.countVolumeUsageFromSnapshotInternal(dockerSnapshot.Volumes.Items, dockerContainers)
+ volumeUsageCounts = &counts
+ }
+
actionItems, err := s.buildActionItemsForSnapshotInternal(ctx, options, filteredContainers, dockerImages)
if err != nil {
return nil, err
@@ -157,10 +169,11 @@ func (s *DashboardService) GetSnapshot(ctx context.Context, options DashboardAct
Data: imagePage,
Pagination: buildDashboardPaginationResponseInternal(len(imageItems), dashboardSnapshotPreloadLimit),
},
- ImageUsageCounts: imageUsageCounts,
- ActionItems: *actionItems,
- Settings: dashboardtypes.SnapshotSettings{},
- VersionInfo: versionInfo,
+ ImageUsageCounts: imageUsageCounts,
+ VolumeUsageCounts: volumeUsageCounts,
+ ActionItems: *actionItems,
+ Settings: dashboardtypes.SnapshotSettings{},
+ VersionInfo: versionInfo,
}, nil
}
diff --git a/backend/internal/services/dashboard_service_test.go b/backend/internal/services/dashboard_service_test.go
index a0a7a52a2..89e76e243 100644
--- a/backend/internal/services/dashboard_service_test.go
+++ b/backend/internal/services/dashboard_service_test.go
@@ -15,9 +15,12 @@ import (
"github.com/getarcaneapp/arcane/backend/v2/internal/database"
"github.com/getarcaneapp/arcane/backend/v2/internal/models"
dashboardtypes "github.com/getarcaneapp/arcane/types/v2/dashboard"
+ volumetypes "github.com/getarcaneapp/arcane/types/v2/volume"
sqlite "github.com/libtnb/sqlite"
dockercontainer "github.com/moby/moby/api/types/container"
dockerimage "github.com/moby/moby/api/types/image"
+ dockermount "github.com/moby/moby/api/types/mount"
+ dockervolume "github.com/moby/moby/api/types/volume"
"github.com/moby/moby/client"
"github.com/stretchr/testify/require"
"gorm.io/gorm"
@@ -52,6 +55,7 @@ func newDashboardTestDockerService(
settingsSvc *SettingsService,
containers []dockercontainer.Summary,
images []dockerimage.Summary,
+ volumes []dockervolume.Volume,
) *DockerClientService {
t.Helper()
@@ -63,6 +67,8 @@ func newDashboardTestDockerService(
require.NoError(t, json.NewEncoder(w).Encode(containers))
case strings.HasSuffix(r.URL.Path, "/images/json"):
require.NoError(t, json.NewEncoder(w).Encode(images))
+ case strings.HasSuffix(r.URL.Path, "/volumes"):
+ require.NoError(t, json.NewEncoder(w).Encode(map[string]any{"Volumes": volumes, "Warnings": []string{}}))
default:
http.NotFound(w, r)
}
@@ -97,6 +103,9 @@ func TestDashboardService_GetSnapshot_ReturnsDashboardSnapshot(t *testing.T) {
State: "running",
Status: "Up 2 hours",
Labels: map[string]string{},
+ Mounts: []dockercontainer.MountPoint{
+ {Type: dockermount.TypeVolume, Name: "app-data"},
+ },
},
{
ID: "container-stopped",
@@ -142,7 +151,12 @@ func TestDashboardService_GetSnapshot_ReturnsDashboardSnapshot(t *testing.T) {
ExpiresAt: new(time.Now().Add(12 * time.Hour)),
})
- dockerSvc := newDashboardTestDockerService(t, settingsSvc, containers, images)
+ volumes := []dockervolume.Volume{
+ {Name: "app-data", Driver: "local"},
+ {Name: "orphan-data", Driver: "local"},
+ }
+
+ dockerSvc := newDashboardTestDockerService(t, settingsSvc, containers, images, volumes)
projectsDir := t.TempDir()
t.Setenv("PROJECTS_DIRECTORY", projectsDir)
require.NoError(t, settingsSvc.SetStringSetting(context.Background(), "projectsDirectory", projectsDir))
@@ -157,7 +171,7 @@ func TestDashboardService_GetSnapshot_ReturnsDashboardSnapshot(t *testing.T) {
Status: models.ProjectStatusStopped,
}).Error)
projectSvc := NewProjectService(db, settingsSvc, nil, &ImageService{db: db}, nil, nil, nil, nil, config.Load())
- svc := NewDashboardService(db, dockerSvc, nil, projectSvc, nil, settingsSvc, nil, nil, nil)
+ svc := NewDashboardService(db, dockerSvc, nil, projectSvc, nil, settingsSvc, nil, nil, nil, &VolumeService{})
snapshot, err := svc.GetSnapshot(context.Background(), DashboardActionItemsOptions{})
require.NoError(t, err)
@@ -178,6 +192,9 @@ func TestDashboardService_GetSnapshot_ReturnsDashboardSnapshot(t *testing.T) {
require.EqualValues(t, 525, snapshot.ImageUsageCounts.TotalSize)
require.Equal(t, dashboardtypes.SnapshotSettings{}, snapshot.Settings)
+ require.NotNil(t, snapshot.VolumeUsageCounts)
+ require.Equal(t, volumetypes.UsageCounts{Inuse: 1, Unused: 1, Total: 2}, *snapshot.VolumeUsageCounts)
+
require.ElementsMatch(t, []dashboardtypes.ActionItem{
{Kind: dashboardtypes.ActionItemKindStoppedContainers, Count: 1, Severity: dashboardtypes.ActionItemSeverityWarning},
{Kind: dashboardtypes.ActionItemKindImageUpdates, Count: 2, Severity: dashboardtypes.ActionItemSeverityWarning},
@@ -206,8 +223,8 @@ func TestDashboardService_GetSnapshot_DebugAllGoodOnlyClearsActionItems(t *testi
createDashboardTestImageUpdateRecord(t, db, models.ImageUpdateRecord{ID: "sha256:image-b", HasUpdate: true})
- dockerSvc := newDashboardTestDockerService(t, settingsSvc, containers, images)
- svc := NewDashboardService(db, dockerSvc, nil, nil, nil, settingsSvc, nil, nil, nil)
+ dockerSvc := newDashboardTestDockerService(t, settingsSvc, containers, images, nil)
+ svc := NewDashboardService(db, dockerSvc, nil, nil, nil, settingsSvc, nil, nil, nil, nil)
snapshot, err := svc.GetSnapshot(context.Background(), DashboardActionItemsOptions{DebugAllGood: true})
require.NoError(t, err)
@@ -217,5 +234,6 @@ func TestDashboardService_GetSnapshot_DebugAllGoodOnlyClearsActionItems(t *testi
require.Len(t, snapshot.Images.Data, 1)
require.Equal(t, 1, snapshot.Containers.Counts.StoppedContainers)
require.Equal(t, 1, snapshot.ImageUsageCounts.Inuse)
+ require.Nil(t, snapshot.VolumeUsageCounts)
require.Empty(t, snapshot.ActionItems.Items)
}
diff --git a/backend/internal/services/settings_service.go b/backend/internal/services/settings_service.go
index ce4595b43..e0afd0ed5 100644
--- a/backend/internal/services/settings_service.go
+++ b/backend/internal/services/settings_service.go
@@ -184,6 +184,7 @@ func DefaultSettingsConfig() *models.Settings {
OidcProviderName: models.SettingVariable{Value: ""},
OidcProviderLogoUrl: models.SettingVariable{Value: ""},
OidcMobileRedirectUris: models.SettingVariable{Value: "arcane-mobile://oidc-callback"},
+ DefaultLandingPage: models.SettingVariable{Value: "/dashboard"},
MobileNavigationMode: models.SettingVariable{Value: "floating"},
MobileNavigationShowLabels: models.SettingVariable{Value: "true"},
SidebarHoverExpansion: models.SettingVariable{Value: "true"},
diff --git a/backend/internal/services/volume_service.go b/backend/internal/services/volume_service.go
index a482feed2..700e40236 100644
--- a/backend/internal/services/volume_service.go
+++ b/backend/internal/services/volume_service.go
@@ -2148,6 +2148,36 @@ func (s *VolumeService) calculateVolumeUsageCountsInternal(items []volumetypes.V
return counts
}
+// countVolumeUsageFromSnapshotInternal derives volume usage counts from an
+// already-fetched volume and container listing. It mirrors the semantics of
+// ListVolumesPaginated — internal volumes are excluded and a volume counts as
+// in use when any container mounts it — so dashboard tile numbers agree with
+// the volumes page.
+func (s *VolumeService) countVolumeUsageFromSnapshotInternal(volumes []volume.Volume, containers []container.Summary) volumetypes.UsageCounts {
+ inUse := make(map[string]struct{})
+ for _, c := range containers {
+ for _, m := range c.Mounts {
+ if m.Type == mount.TypeVolume && m.Name != "" {
+ inUse[m.Name] = struct{}{}
+ }
+ }
+ }
+
+ counts := volumetypes.UsageCounts{}
+ for _, v := range volumes {
+ if s.isInternalVolumeInternal(volumetypes.NewSummary(v)) {
+ continue
+ }
+ counts.Total++
+ if _, ok := inUse[v.Name]; ok {
+ counts.Inuse++
+ } else {
+ counts.Unused++
+ }
+ }
+ return counts
+}
+
func (s *VolumeService) isInternalVolumeInternal(v volumetypes.Volume) bool {
if strings.EqualFold(strings.TrimSpace(v.Name), strings.TrimSpace(s.backupVolumeName)) {
return true
diff --git a/frontend/messages/en.json b/frontend/messages/en.json
index dfa12bffb..d6ffadd5c 100644
--- a/frontend/messages/en.json
+++ b/frontend/messages/en.json
@@ -439,9 +439,8 @@
"dashboard_all_container_summary": "{running} Running · {stopped} Stopped",
"dashboard_all_no_images": "No images tracked",
"dashboard_all_image_summary": "{inUse} In Use · {unused} Unused",
- "dashboard_all_no_storage": "No image storage reported",
- "dashboard_all_unused_images_summary": "{count} unused images",
- "dashboard_all_images_tracked_summary": "{count} images tracked",
+ "dashboard_all_no_volumes": "No volumes found",
+ "dashboard_all_volume_summary": "{inUse} In Use · {unused} Unused",
"dashboard_all_environment_board_title": "Environment Board",
"dashboard_updates_up_to_date": "You're up to date",
"dashboard_updates_checking": "Checking image updates…",
@@ -1484,6 +1483,8 @@
"navigation_show_labels_description": "Display text labels below navigation icons for better clarity and accessibility",
"navigation_settings_saved": "Navigation settings saved successfully",
"navigation_desktop_sidebar_title": "Desktop Sidebar",
+ "navigation_default_landing_page_label": "Default Landing Page",
+ "navigation_default_landing_page_description": "Page to open after signing in. Applies to this browser when set here; the server default applies everywhere else.",
"navigation_sidebar_hover_expansion_label": "Enable Hover Expansion",
"navigation_sidebar_hover_expansion_description": "When enabled, hovering over the collapsed sidebar will temporarily expand it to show full labels. When disabled, tooltips will appear instead for a cleaner, fixed-width navigation.",
"navigation_keyboard_shortcuts_label": "Keyboard Shortcuts",
diff --git a/frontend/src/lib/config/navigation-config.ts b/frontend/src/lib/config/navigation-config.ts
index 23139ecaf..52dfd9631 100644
--- a/frontend/src/lib/config/navigation-config.ts
+++ b/frontend/src/lib/config/navigation-config.ts
@@ -351,6 +351,17 @@ export function getSwarmNavigationItems(swarmEnabled: boolean): NavigationItem[]
return navigationItems.swarmItems.filter((item) => item.url === '/swarm/cluster');
}
+export const DEFAULT_LANDING_PAGE = '/dashboard';
+
+/**
+ * Top-level pages selectable as the post-login landing page. Derived from the
+ * sidebar sections so the option list stays in sync with the nav; /customize is
+ * excluded because it is a category landing rather than a resource page.
+ */
+export function getLandingPageNavItems(): NavigationItem[] {
+ return [...navigationItems.managementItems, ...navigationItems.resourceItems].filter((item) => item.url !== '/customize');
+}
+
export type MobileNavigationSettings = {
pinnedItems: string[];
mode: 'floating' | 'docked';
diff --git a/frontend/src/lib/services/auth-service.ts b/frontend/src/lib/services/auth-service.ts
index c91b91550..f2c721a63 100644
--- a/frontend/src/lib/services/auth-service.ts
+++ b/frontend/src/lib/services/auth-service.ts
@@ -7,6 +7,7 @@ import type { OidcUserInfo, LoginCredentials, LoginResponseData, AutoLoginConfig
import type { QueryClient } from '@tanstack/svelte-query';
import { activityStore } from '#lib/stores/activity.store.svelte';
import { dashboardStore } from '#lib/stores/dashboard.store.svelte';
+import { getEffectiveLandingPage } from '#lib/utils/navigation';
const REFRESH_TOKEN_KEY = 'arcane_refresh_token';
const TOKEN_EXPIRY_KEY = 'arcane_token_expiry';
@@ -137,7 +138,7 @@ class AuthService extends BaseAPIService {
userStore.setUser(user);
await refreshAll();
- goto('/dashboard');
+ goto(getEffectiveLandingPage());
return user;
}
diff --git a/frontend/src/lib/types/settings.ts b/frontend/src/lib/types/settings.ts
index 2d506fa79..d6303704f 100644
--- a/frontend/src/lib/types/settings.ts
+++ b/frontend/src/lib/types/settings.ts
@@ -96,6 +96,7 @@ export type Settings = {
oidcProviderName: string;
oidcProviderLogoUrl: string;
+ defaultLandingPage: string;
mobileNavigationMode: 'floating' | 'docked';
mobileNavigationShowLabels: boolean;
sidebarHoverExpansion: boolean;
diff --git a/frontend/src/lib/types/shared.ts b/frontend/src/lib/types/shared.ts
index 070503a7d..03e5c2529 100644
--- a/frontend/src/lib/types/shared.ts
+++ b/frontend/src/lib/types/shared.ts
@@ -169,7 +169,7 @@ export interface SettingsSearchResponse {
// --- Dashboard ---
-import type { ContainerStatusCounts, ContainerSummaryDto, ImageSummaryDto, ImageUsageCounts } from './docker';
+import type { ContainerStatusCounts, ContainerSummaryDto, ImageSummaryDto, ImageUsageCounts, VolumeUsageCounts } from './docker';
import type { AppVersionInformation } from './settings';
import type { Environment } from './environment';
@@ -193,6 +193,7 @@ export interface DashboardSnapshot {
containers: Paginated<ContainerSummaryDto, ContainerStatusCounts>;
images: Paginated<ImageSummaryDto>;
imageUsageCounts: ImageUsageCounts;
+ volumeUsageCounts?: VolumeUsageCounts;
actionItems: DashboardActionItems;
settings: DashboardSnapshotSettings;
versionInfo?: AppVersionInformation;
@@ -217,6 +218,7 @@ export interface DashboardEnvironmentOverview {
environment: Environment;
containers: ContainerStatusCounts;
imageUsageCounts: ImageUsageCounts;
+ volumeUsageCounts?: VolumeUsageCounts;
actionItems: DashboardActionItems;
settings: DashboardSnapshotSettings;
versionInfo?: AppVersionInformation;
@@ -235,7 +237,9 @@ export interface DashboardOverviewSummary {
totalImages: number;
imagesInUse: number;
imagesUnused: number;
- totalImageSize: number;
+ totalVolumes: number;
+ volumesInUse: number;
+ volumesUnused: number;
}
export interface DashboardEnvironmentCardState {
diff --git a/frontend/src/lib/utils/auth.ts b/frontend/src/lib/utils/auth.ts
index 0c9a63de6..f33ee54a3 100644
--- a/frontend/src/lib/utils/auth.ts
+++ b/frontend/src/lib/utils/auth.ts
@@ -94,12 +94,13 @@ export function getAuthRedirectPath(
user: User | null,
envId?: string,
accessManifest?: PermissionsManifest | null,
- accessManifestLoadFailed = false
+ accessManifestLoadFailed = false,
+ landingPath: string = '/dashboard'
): string | null {
const isSignedIn = !!user;
if (path === '/') {
- return isSignedIn ? '/dashboard' : '/login';
+ return isSignedIn ? landingPath : '/login';
}
if (!isSignedIn && matchesAny(path, PROTECTED_PREFIXES)) {
@@ -107,7 +108,7 @@ export function getAuthRedirectPath(
}
if (isSignedIn && matchesAny(path, UNAUTHENTICATED_ONLY_PREFIXES)) {
- return '/dashboard';
+ return landingPath;
}
if (
diff --git a/frontend/src/lib/utils/navigation.ts b/frontend/src/lib/utils/navigation.ts
index 744edfbf2..52cda8fba 100644
--- a/frontend/src/lib/utils/navigation.ts
+++ b/frontend/src/lib/utils/navigation.ts
@@ -1,17 +1,21 @@
import { browser } from '$app/env';
import { PersistedState } from 'runed';
import { get } from 'svelte/store';
-import { defaultMobileNavigationSettings, type MobileNavigationSettings } from '#lib/config/navigation-config';
+import {
+ DEFAULT_LANDING_PAGE,
+ defaultMobileNavigationSettings,
+ getLandingPageNavItems,
+ type MobileNavigationSettings
+} from '#lib/config/navigation-config';
import settingsStore from '#lib/stores/config-store';
// --- Mobile nav state ---
const pinnedItemsStore = new PersistedState('mobile-nav-settings', defaultMobileNavigationSettings);
-export const navigationSettingsOverridesStore = new PersistedState<Partial<MobileNavigationSettings>>(
- 'navigation-settings-overrides',
- {}
-);
+export const navigationSettingsOverridesStore = new PersistedState<
+ Partial<MobileNavigationSettings> & { defaultLandingPage?: string }
+>('navigation-settings-overrides', {});
type NavigationVisibilityController = {
resetVisibility: () => void;
@@ -50,6 +54,18 @@ export function getEffectiveNavigationSettings(): MobileNavigationSettings {
};
}
+/**
+ * Resolve the page to open after signing in: per-browser override first, then
+ * the server-side setting, then the built-in default. A stale value (e.g. a
+ * page that no longer exists) falls back to the default rather than 404ing.
+ */
+export function getEffectiveLandingPage(): string {
+ const candidate =
+ navigationSettingsOverridesStore.current.defaultLandingPage ?? get(settingsStore)?.defaultLandingPage ?? DEFAULT_LANDING_PAGE;
+
+ return getLandingPageNavItems().some((item) => item.url === candidate) ? candidate : DEFAULT_LANDING_PAGE;
+}
+
// --- Keyboard shortcuts ---
export type ShortcutKey = 'mod' | 'shift' | 'alt' | 'ctrl' | 'meta' | string;
diff --git a/frontend/src/lib/utils/settings.ts b/frontend/src/lib/utils/settings.ts
index 30192c756..55b53916d 100644
--- a/frontend/src/lib/utils/settings.ts
+++ b/frontend/src/lib/utils/settings.ts
@@ -12,6 +12,7 @@ export type LocalSettings = {
oledMode: boolean;
glassEffectsEnabled: boolean;
animationsEnabled: boolean;
+ defaultLandingPage: string;
mobileNavigationMode: string;
mobileNavigationShowLabels: boolean;
sidebarHoverExpansion: boolean;
@@ -27,6 +28,7 @@ const LOCAL_SETTING_KEYS = new Set([
'oledMode',
'glassEffectsEnabled',
'animationsEnabled',
+ 'defaultLandingPage',
'mobileNavigationMode',
'mobileNavigationShowLabels',
'sidebarHoverExpansion',
diff --git a/frontend/src/routes/(app)/+layout.svelte b/frontend/src/routes/(app)/+layout.svelte
index da52dfd46..f95138201 100644
--- a/frontend/src/routes/(app)/+layout.svelte
+++ b/frontend/src/routes/(app)/+layout.svelte
@@ -9,7 +9,11 @@
import OperationWatchDialog from '#lib/components/operation-watch-dialog.svelte';
import { IsMobile } from '#lib/hooks/is-mobile.svelte.js';
import { IsTablet } from '#lib/hooks/is-tablet.svelte.js';
- import { getEffectiveNavigationSettings, navigationSettingsOverridesStore } from '#lib/utils/navigation';
+ import {
+ getEffectiveLandingPage,
+ getEffectiveNavigationSettings,
+ navigationSettingsOverridesStore
+ } from '#lib/utils/navigation';
import { browser } from '$app/env';
import { environmentStore } from '#lib/stores/environment.store.svelte';
import { navigationItems, getManagementItems, filterByPermissions, type NavigationItem } from '#lib/config/navigation-config';
@@ -55,7 +59,8 @@
user,
currentEnvId,
permissionsManifest,
- permissionsManifestLoadFailed
+ permissionsManifestLoadFailed,
+ getEffectiveLandingPage()
);
if (redirectPath) {
goto(redirectPath);
diff --git a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
index cfd2db22e..328e8fb67 100644
--- a/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
+++ b/frontend/src/routes/(app)/dashboard/dashboard-all-environments-view.svelte
@@ -156,7 +156,9 @@
totalImages: settledEnvironments.reduce((total, item) => total + item.imageUsageCounts.totalImages, 0),
imagesInUse: settledEnvironments.reduce((total, item) => total + item.imageUsageCounts.imagesInuse, 0),
imagesUnused: settledEnvironments.reduce((total, item) => total + item.imageUsageCounts.imagesUnused, 0),
- totalImageSize: settledEnvironments.reduce((total, item) => total + item.imageUsageCounts.totalImageSize, 0)
+ totalVolumes: settledEnvironments.reduce((total, item) => total + (item.volumeUsageCounts?.total ?? 0), 0),
+ volumesInUse: settledEnvironments.reduce((total, item) => total + (item.volumeUsageCounts?.inuse ?? 0), 0),
+ volumesUnused: settledEnvironments.reduce((total, item) => total + (item.volumeUsageCounts?.unused ?? 0), 0)
};
}
@@ -304,6 +306,7 @@
environment,
containers: snapshot.containers.counts ?? { runningContainers: 0, stoppedContainers: 0, totalContainers: 0 },
imageUsageCounts: snapshot.imageUsageCounts,
+ volumeUsageCounts: snapshot.volumeUsageCounts,
actionItems: snapshot.actionItems,
settings: snapshot.settings,
versionInfo: snapshot.versionInfo,
@@ -662,16 +665,12 @@
return m.dashboard_all_image_summary({ inUse: summary.imagesInUse, unused: summary.imagesUnused });
}
- function formatStorageOverviewLabel(summary: DashboardOverviewSummary): string {
- if (summary.totalImageSize === 0) {
- return m.dashboard_all_no_storage();
+ function formatVolumeOverviewLabel(summary: DashboardOverviewSummary): string {
+ if (summary.totalVolumes === 0) {
+ return m.dashboard_all_no_volumes();
}
- if (summary.imagesUnused > 0) {
- return m.dashboard_all_unused_images_summary({ count: summary.imagesUnused });
- }
-
- return m.dashboard_all_images_tracked_summary({ count: summary.totalImages });
+ return m.dashboard_all_volume_summary({ inUse: summary.volumesInUse, unused: summary.volumesUnused });
}
async function openPruneDialog(item: DashboardEnvironmentOverview) {
@@ -781,7 +780,7 @@
<section class="shrink-0">
{#if boardSummaryLoading}
<div class="grid grid-cols-2 gap-x-6 gap-y-4 lg:grid-cols-4">
- {#each [{ icon: UpdateIcon, label: m.updates() }, { icon: ContainersIcon, label: m.containers() }, { icon: ImagesIcon, label: m.images() }, { icon: VolumesIcon, label: m.storage() }] as tile (tile.label)}
+ {#each [{ icon: UpdateIcon, label: m.updates() }, { icon: ContainersIcon, label: m.containers() }, { icon: ImagesIcon, label: m.images() }, { icon: VolumesIcon, label: m.resource_volumes_cap() }] as tile (tile.label)}
<div class="min-w-0">
<div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
<tile.icon class="size-3.5" />
@@ -795,8 +794,14 @@
{:else}
{@const summary = boardState.summary}
<div class="grid grid-cols-2 gap-x-6 gap-y-4 lg:grid-cols-4">
- <div class="min-w-0">
- <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
+ <button
+ type="button"
+ onclick={() => goto('/updates')}
+ class="group min-w-0 cursor-pointer rounded-sm text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring"
+ >
+ <div
+ class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ >
<UpdateIcon class="size-3.5" />
<span>{m.updates()}</span>
</div>
@@ -811,34 +816,52 @@
<span class="truncate">{m.dashboard_updates_available_label()}</span>
{/if}
</div>
- </div>
-
- <div class="min-w-0 border-border/60 max-lg:border-l max-lg:pl-6 lg:border-l lg:pl-6">
- <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
+ </button>
+
+ <button
+ type="button"
+ onclick={() => goto('/containers')}
+ class="group min-w-0 cursor-pointer rounded-sm border-border/60 text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring max-lg:border-l max-lg:pl-6 lg:border-l lg:pl-6"
+ >
+ <div
+ class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ >
<ContainersIcon class="size-3.5" />
<span>{m.containers()}</span>
</div>
<div class="mt-1 text-2xl font-semibold tracking-tight tabular-nums">{summary.totalContainers}</div>
<div class="mt-0.5 truncate text-xs text-muted-foreground">{formatContainerOverviewLabel(summary)}</div>
- </div>
-
- <div class="min-w-0 border-border/60 lg:border-l lg:pl-6">
- <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
+ </button>
+
+ <button
+ type="button"
+ onclick={() => goto('/images')}
+ class="group min-w-0 cursor-pointer rounded-sm border-border/60 text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring lg:border-l lg:pl-6"
+ >
+ <div
+ class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ >
<ImagesIcon class="size-3.5" />
<span>{m.images()}</span>
</div>
<div class="mt-1 text-2xl font-semibold tracking-tight tabular-nums">{summary.totalImages}</div>
<div class="mt-0.5 truncate text-xs text-muted-foreground">{formatImageOverviewLabel(summary)}</div>
- </div>
-
- <div class="min-w-0 border-border/60 max-lg:border-l max-lg:pl-6 lg:border-l lg:pl-6">
- <div class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase">
+ </button>
+
+ <button
+ type="button"
+ onclick={() => goto('/volumes')}
+ class="group min-w-0 cursor-pointer rounded-sm border-border/60 text-left transition-colors focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-ring max-lg:border-l max-lg:pl-6 lg:border-l lg:pl-6"
+ >
+ <div
+ class="flex items-center gap-1.5 text-[11px] font-semibold tracking-wide text-muted-foreground uppercase transition-colors group-hover:text-foreground"
+ >
<VolumesIcon class="size-3.5" />
- <span>{m.storage()}</span>
+ <span>{m.resource_volumes_cap()}</span>
</div>
- <div class="mt-1 text-2xl font-semibold tracking-tight tabular-nums">{bytes.format(summary.totalImageSize)}</div>
- <div class="mt-0.5 truncate text-xs text-muted-foreground">{formatStorageOverviewLabel(summary)}</div>
- </div>
+ <div class="mt-1 text-2xl font-semibold tracking-tight tabular-nums">{summary.totalVolumes}</div>
+ <div class="mt-0.5 truncate text-xs text-muted-foreground">{formatVolumeOverviewLabel(summary)}</div>
+ </button>
</div>
{/if}
</section>
@@ -871,7 +894,7 @@
<Card.Root
variant="outlined"
- class={`dashboard-environment-card [container-type:inline-size] overflow-hidden border transition-colors ${isCurrent ? 'border-primary/40 bg-primary/5' : 'border-border/60'}`}
+ class={`dashboard-environment-card [container-type:inline-size] overflow-hidden border transition-[background-color,border-color,box-shadow] hover:shadow-[0_0_24px_-8px_color-mix(in_oklch,var(--primary)_40%,transparent)] ${isCurrent ? 'border-primary/40 bg-primary/5' : 'border-border/60 hover:border-primary/25'}`}
>
<Card.Content class="space-y-4 p-4 sm:p-5">
<div class="flex flex-col gap-3 border-b border-border/60 pb-4 sm:flex-row sm:items-start sm:justify-between">
diff --git a/frontend/src/routes/(app)/settings/appearance/+page.svelte b/frontend/src/routes/(app)/settings/appearance/+page.svelte
index 936a54bfb..5ef58c76a 100644
--- a/frontend/src/routes/(app)/settings/appearance/+page.svelte
+++ b/frontend/src/routes/(app)/settings/appearance/+page.svelte
@@ -5,6 +5,7 @@
import settingsStore from '#lib/stores/config-store';
import { m } from '#lib/paraglide/messages';
import { navigationSettingsOverridesStore, resetNavigationVisibility } from '#lib/utils/navigation';
+ import { DEFAULT_LANDING_PAGE, getLandingPageNavItems } from '#lib/config/navigation-config';
import { SettingsPageLayout } from '#lib/layouts';
import { Switch } from '#lib/components/ui/switch/index.js';
import { Input } from '#lib/components/ui/input/index.js';
@@ -31,6 +32,7 @@
const formSchema = z.object({
applicationTheme: z.enum(APPLICATION_THEME_VALUES),
iconCatalog: z.enum(['selfhst', 'dashboard-icons']),
+ defaultLandingPage: z.string(),
mobileNavigationMode: z.enum(['floating', 'docked']),
mobileNavigationShowLabels: z.boolean(),
sidebarHoverExpansion: z.boolean(),
@@ -76,7 +78,7 @@
restorePersistedAppearance();
});
- function setLocalOverride(key: 'mode' | 'showLabels', value: any) {
+ function setLocalOverride(key: 'mode' | 'showLabels' | 'defaultLandingPage', value: any) {
const currentOverrides = navigationSettingsOverridesStore.current;
navigationSettingsOverridesStore.current = { ...currentOverrides, [key]: value };
persistedState = navigationSettingsOverridesStore.current;
@@ -106,6 +108,19 @@
}
}
+ // Default Landing Page state
+ const landingPageOptions = $derived(getLandingPageNavItems().map((item) => ({ value: item.url, label: item.title })));
+ const landingValue = $derived.by(() => {
+ const current = persistedState.defaultLandingPage ?? currentSettings.defaultLandingPage ?? DEFAULT_LANDING_PAGE;
+ // A stale value (page removed, or a hand-edited setting) falls back to the
+ // dashboard rather than leaving the select showing a placeholder.
+ return landingPageOptions.some((option) => option.value === current) ? current : DEFAULT_LANDING_PAGE;
+ });
+
+ function handleLandingPageSelect(value: string) {
+ setLocalOverride('defaultLandingPage', value);
+ }
+
// Show Labels state
const labelsIsLocal = $derived(persistedState.showLabels !== undefined);
const labelsSegment = $derived<'default' | 'on' | 'off'>(
@@ -245,6 +260,25 @@
<TimeFormatPicker id="appearanceTimeFormatPicker" />
</SettingsRow>
+ <!-- Default Landing Page -->
+ <SettingsRow
+ label={m.navigation_default_landing_page_label()}
+ description={m.navigation_default_landing_page_description()}
+ layout="inline"
+ >
+ <div class="w-56">
+ <SelectWithLabel
+ id="defaultLandingPage"
+ label={m.navigation_default_landing_page_label()}
+ hideLabel
+ value={landingValue}
+ disabled={isReadOnly}
+ options={landingPageOptions}
+ onValueChange={handleLandingPageSelect}
+ />
+ </div>
+ </SettingsRow>
+
<!-- Theme -->
<SettingsRow
label={m.common_toggle_theme()}
diff --git a/frontend/src/routes/(auth)/login/+page.svelte b/frontend/src/routes/(auth)/login/+page.svelte
index b9bd0f3bb..d7639b900 100644
--- a/frontend/src/routes/(auth)/login/+page.svelte
+++ b/frontend/src/routes/(auth)/login/+page.svelte
@@ -7,6 +7,7 @@
import userStore from '#lib/stores/user-store';
import { m } from '#lib/paraglide/messages';
import { authService } from '#lib/services/auth-service';
+ import { getEffectiveLandingPage } from '#lib/utils/navigation';
import { queryKeys } from '#lib/query/query-keys';
import { getApplicationLogo } from '#lib/utils/docker';
import { ArcaneButton } from '#lib/components/arcane-button/index.js';
@@ -47,7 +48,7 @@
const oidcLoginMutation = createMutation(() => ({
mutationFn: async () => {
error = null;
- const currentRedirect = data.redirectTo || '/dashboard';
+ const currentRedirect = data.redirectTo || getEffectiveLandingPage();
await goto(`/oidc/login?redirect=${encodeURIComponent(currentRedirect)}`);
}
}));
@@ -57,7 +58,7 @@
onSuccess: async (user) => {
userStore.setUser(user);
await queryClient.invalidateQueries({ queryKey: queryKeys.auth.all });
- const redirectTo = data.redirectTo || '/dashboard';
+ const redirectTo = data.redirectTo || getEffectiveLandingPage();
await goto(redirectTo, { replaceState: true });
},
onError: (err) => {
@@ -75,7 +76,7 @@
});
function handleOidcLogin() {
- const currentRedirect = data.redirectTo || '/dashboard';
+ const currentRedirect = data.redirectTo || getEffectiveLandingPage();
oidcLoginMutation.mutate(undefined, {
onError: () => {
// Fallback to direct navigation when mutation fails unexpectedly
diff --git a/frontend/src/routes/(auth)/login/+page.ts b/frontend/src/routes/(auth)/login/+page.ts
index 81924ebe9..f2ba1969d 100644
--- a/frontend/src/routes/(auth)/login/+page.ts
+++ b/frontend/src/routes/(auth)/login/+page.ts
@@ -1,11 +1,13 @@
import { redirect } from '@sveltejs/kit';
+import { getEffectiveLandingPage } from '#lib/utils/navigation';
export const load = async ({ parent, url }) => {
const data = await parent();
- const rawRedirect = url.searchParams.get('redirect') || '/dashboard';
+ const landingPage = getEffectiveLandingPage();
+ const rawRedirect = url.searchParams.get('redirect') || landingPage;
// Guard against open redirects — only allow same-origin relative paths
- const redirectTo = rawRedirect.startsWith('/') && !rawRedirect.startsWith('//') ? rawRedirect : '/dashboard';
+ const redirectTo = rawRedirect.startsWith('/') && !rawRedirect.startsWith('//') ? rawRedirect : landingPage;
if (data.user) {
throw redirect(302, redirectTo);
diff --git a/frontend/src/routes/(auth)/oidc/callback/+page.svelte b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
index 9fa977fe4..47a596cd1 100644
--- a/frontend/src/routes/(auth)/oidc/callback/+page.svelte
+++ b/frontend/src/routes/(auth)/oidc/callback/+page.svelte
@@ -12,6 +12,7 @@
import { authService } from '#lib/services/auth-service';
import { environmentStore } from '#lib/stores/environment.store.svelte';
import { getAuthRedirectPath } from '#lib/utils/auth';
+ import { getEffectiveLandingPage } from '#lib/utils/navigation';
import OidcStatusPanel from '#lib/components/oidc-status-panel.svelte';
import { createMutation, useQueryClient } from '@tanstack/svelte-query';
@@ -30,7 +31,7 @@
const getStoredRedirect = () => {
const storedRedirect = localStorage.getItem('oidc_redirect');
- return storedRedirect?.startsWith('/') && !storedRedirect.startsWith('//') ? storedRedirect : '/dashboard';
+ return storedRedirect?.startsWith('/') && !storedRedirect.startsWith('//') ? storedRedirect : getEffectiveLandingPage();
};
type CallbackFailure = {
@@ -146,7 +147,8 @@
landingUser,
environmentStore.selected?.id,
page.data['permissionsManifest'],
- page.data['permissionsManifestLoadFailed'] ?? false
+ page.data['permissionsManifestLoadFailed'] ?? false,
+ getEffectiveLandingPage()
) ?? redirectTo;
await goto(target, { replaceState: true });
},
diff --git a/frontend/src/routes/(auth)/oidc/login/+page.svelte b/frontend/src/routes/(auth)/oidc/login/+page.svelte
index 4e03d1e5f..6670c3364 100644
--- a/frontend/src/routes/(auth)/oidc/login/+page.svelte
+++ b/frontend/src/routes/(auth)/oidc/login/+page.svelte
@@ -4,6 +4,7 @@
import { page } from '$app/state';
import { m } from '#lib/paraglide/messages';
import { authService } from '#lib/services/auth-service';
+ import { getEffectiveLandingPage } from '#lib/utils/navigation';
import OidcStatusPanel from '#lib/components/oidc-status-panel.svelte';
import { createMutation } from '@tanstack/svelte-query';
@@ -13,7 +14,7 @@
const oidcLoginMutation = createMutation(() => ({
mutationFn: async () => {
- const redirect = page.url.searchParams.get('redirect') || '/dashboard';
+ const redirect = page.url.searchParams.get('redirect') || getEffectiveLandingPage();
const authUrl = await authService.getAuthUrl(redirect);
if (!authUrl) {
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 16f446261..44f329a5e 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -21,5 +21,16 @@
"noPropertyAccessFromIndexSignature": true,
"moduleResolution": "bundler",
"types": ["unplugin-icons/types/svelte"]
- }
+ },
+ "exclude": [
+ "node_modules/**",
+ "src/lib/paraglide/**",
+ "src/paraglide/**",
+ "src/service-worker.js",
+ "src/service-worker/**/*.js",
+ "src/service-worker.ts",
+ "src/service-worker/**/*.ts",
+ "src/service-worker.d.ts",
+ "src/service-worker/**/*.d.ts"
+ ]
}
diff --git a/types/dashboard/dashboard.go b/types/dashboard/dashboard.go
index 99328ad42..5dd73e347 100644
--- a/types/dashboard/dashboard.go
+++ b/types/dashboard/dashboard.go
@@ -7,6 +7,7 @@ import (
containertypes "github.com/getarcaneapp/arcane/types/v2/container"
imagetypes "github.com/getarcaneapp/arcane/types/v2/image"
versiontypes "github.com/getarcaneapp/arcane/types/v2/version"
+ volumetypes "github.com/getarcaneapp/arcane/types/v2/volume"
dockercontainer "github.com/moby/moby/api/types/container"
dockerimage "github.com/moby/moby/api/types/image"
dockernetwork "github.com/moby/moby/api/types/network"
@@ -107,6 +108,13 @@ type Snapshot struct {
// Required: true
ImageUsageCounts imagetypes.UsageCounts `json:"imageUsageCounts"`
+ // VolumeUsageCounts is the dashboard volume usage summary. It is a pointer
+ // so agents that predate the field are distinguishable from environments
+ // that genuinely have no volumes.
+ //
+ // Required: false
+ VolumeUsageCounts *volumetypes.UsageCounts `json:"volumeUsageCounts,omitempty"`
+
// ActionItems is the dashboard attention summary.
//
// Required: true
diff --git a/types/settings/settings.go b/types/settings/settings.go
index 29d8e03a5..b459d951d 100644
--- a/types/settings/settings.go
+++ b/types/settings/settings.go
@@ -403,6 +403,11 @@ type Update struct {
// Required: false
OidcProviderLogoUrl *string `json:"oidcProviderLogoUrl,omitempty"`
+ // DefaultLandingPage is the route opened after signing in.
+ //
+ // Required: false
+ DefaultLandingPage *string `json:"defaultLandingPage,omitempty"`
+
// MobileNavigationMode is the navigation mode for mobile devices.
//
// Required: false