feat: add Atlas native app UX overhaul
This commit is contained in:
10
Packages/AtlasFeaturesStorage/README.md
Normal file
10
Packages/AtlasFeaturesStorage/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# AtlasFeaturesStorage
|
||||
|
||||
## Responsibility
|
||||
|
||||
- Large folders, large files, and unused-item views
|
||||
|
||||
## Note
|
||||
|
||||
- The full storage module is deferred beyond the frozen MVP shell.
|
||||
- This directory remains scaffolded so list-based storage work can resume without changing top-level layout.
|
||||
@@ -0,0 +1,42 @@
|
||||
import AtlasDesignSystem
|
||||
import AtlasDomain
|
||||
import SwiftUI
|
||||
|
||||
public struct StorageFeatureView: View {
|
||||
private let insights: [StorageInsight]
|
||||
|
||||
public init(insights: [StorageInsight] = AtlasScaffoldFixtures.storageInsights) {
|
||||
self.insights = insights
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
AtlasScreen(
|
||||
title: "Storage",
|
||||
subtitle: "Reserved list-based storage views for a future scope decision beyond the frozen MVP shell."
|
||||
) {
|
||||
AtlasInfoCard(title: "Large Items") {
|
||||
VStack(alignment: .leading, spacing: 14) {
|
||||
ForEach(insights) { insight in
|
||||
HStack(alignment: .top, spacing: 12) {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
Text(insight.title)
|
||||
.font(.headline)
|
||||
Text(insight.path)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
VStack(alignment: .trailing, spacing: 8) {
|
||||
AtlasStatusChip(insight.ageDescription, tone: .neutral)
|
||||
Text(AtlasFormatters.byteCount(insight.bytes))
|
||||
.font(.subheadline.weight(.medium))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user