refactor(workspace): finish-audit fixes — off-main scan, parser edges, dead code out
Reviewers' findings on 804b588: scan moved off MainActor (Task.detached),
PostLibrary struct folded into Post.scan, hidden dirs and symlinked dirs
now actually skipped (test de-vacuated), unterminated frontmatter no longer
leaks as the Title, quoted YAML values unquoted, leading blank line before
--- tolerated, #-only body reads untitled, persisted Home validated
isFileURL. Dead code deleted: radiusLarge, editorMinWidth, homeKey,
PaneHeader trailing slot, Settings ScrollView, PostRow fill dance.
Tests 56/56, lint 0.
[Generated by AI]
This commit is contained in:
1 parent
804b5889f6
commit
765d32d4d4
10 files changed
+158
-101
No files matched your search
@@ -51,7 +51,7 @@ struct WorkspaceView: View {
|
||||
}
|
||||
.background(DesignTokens.background)
|
||||
}
|
||||
// Collapsed floor: rail 56 + editor 420 (export ≤920 layout).
|
||||
// Collapsed floor: rail 56 + editor placeholder (export ≤920 layout).
|
||||
.frame(minWidth: 480, minHeight: 320)
|
||||
}
|
||||
|
||||
@@ -125,9 +125,9 @@ private struct RailButton: View {
|
||||
}
|
||||
|
||||
/// Pane-head row per the export (52pt, serif 15 semibold title, bottom border).
|
||||
struct PaneHeader<Trailing: View>: View {
|
||||
/// Trailing slot returns with #18's New Post button.
|
||||
struct PaneHeader: View {
|
||||
let title: String
|
||||
@ViewBuilder var trailing: () -> Trailing
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
@@ -135,7 +135,6 @@ struct PaneHeader<Trailing: View>: View {
|
||||
Text(title)
|
||||
.font(.system(size: 15, weight: .semibold, design: DesignTokens.serif))
|
||||
Spacer()
|
||||
trailing()
|
||||
}
|
||||
.padding(.horizontal, 14)
|
||||
.frame(minHeight: 52)
|
||||
|
||||
Reference in new issue
Block a user