Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(ui): drop create-project dialog strokes (D297)

vastsa1f789b320457
diff --git a/apps/desktop/src/styles/project-create-dialog.css b/apps/desktop/src/styles/project-create-dialog.css
index bac7aa943..32e92e91c 100644
--- a/apps/desktop/src/styles/project-create-dialog.css
+++ b/apps/desktop/src/styles/project-create-dialog.css
@@ -128,12 +128,6 @@
line-height: var(--leading-normal);
}
-.project-create-dialog-name-field:focus-visible {
- outline: 1.5px solid color-mix(in oklab, var(--ds-accent) 80%, transparent);
- outline-offset: 2px;
- box-shadow: none;
-}
-
.project-create-dialog-name-field::placeholder {
color: var(--ds-text-muted);
}
@@ -164,7 +158,8 @@
align-items: center;
justify-content: center;
gap: 6px;
- border: 1px solid var(--ds-border-subtle);
+ appearance: none;
+ border: 0;
border-radius: var(--radius-md);
background: var(--ds-tile);
color: var(--ds-text-secondary);
@@ -173,7 +168,6 @@
line-height: var(--leading-compact-plus);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
- border-color var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
@@ -183,17 +177,14 @@
}
.project-create-dialog-source-option.is-active {
- border-color: color-mix(in oklab, var(--ds-accent) 55%, transparent);
- background: color-mix(in oklab, var(--ds-accent) 12%, var(--ds-tile));
+ background: var(--ds-tile-deep);
color: var(--ds-text-primary);
}
.project-create-dialog-source-option:focus-visible,
-.project-create-dialog-url-field:focus-visible,
.project-create-dialog-location:focus-visible {
- outline: 1.5px solid color-mix(in oklab, var(--ds-accent) 80%, transparent);
- outline-offset: 2px;
- box-shadow: none;
+ outline: none;
+ box-shadow: 0 0 0 2px color-mix(in oklab, var(--ds-accent) 22%, transparent);
}
.project-create-dialog-url-field {
@@ -215,6 +206,8 @@
align-items: center;
gap: 10px;
margin-top: 8px;
+ appearance: none;
+ border: 0;
border-radius: var(--radius-md);
background: var(--ds-tile);
padding: 10px 12px;
diff --git a/apps/desktop/test/project-create-dialog.test.mjs b/apps/desktop/test/project-create-dialog.test.mjs
index fd808e467..1aedcbf67 100644
--- a/apps/desktop/test/project-create-dialog.test.mjs
+++ b/apps/desktop/test/project-create-dialog.test.mjs
@@ -134,3 +134,18 @@ test("create project dialog remains usable on narrow screens and reduced motion"
assert.match(styles, /\.project-create-dialog-location\.is-chosen/);
assert.match(styles, /\.project-create-dialog-clone-hint \{/);
});
+
+test("create project dialog stays lineless (D297)", () => {
+ assert.match(styles, /\.project-create-dialog-source-option \{[^}]*border: 0;/);
+ assert.match(
+ styles,
+ /\.project-create-dialog-source-option\.is-active \{[^}]*background: var\(--ds-tile-deep\);/,
+ );
+ assert.doesNotMatch(styles, /border: 1px solid var\(--ds-border-subtle\)/);
+ assert.doesNotMatch(styles, /\.project-create-dialog-name-field:focus-visible/);
+ assert.doesNotMatch(styles, /outline-offset: 2px/);
+ assert.match(
+ styles,
+ /\.project-create-dialog-source-option:focus-visible,[^}]*box-shadow: 0 0 0 2px color-mix\(in oklab, var\(--ds-accent\) 22%, transparent\);/,
+ );
+});
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index f168a4b27..f47b68c49 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -502,15 +502,18 @@ visually distinct from list content.
while distinct sections use a 16px gap and shared button/input metrics. One
Create project title leads into an explicitly labeled filled name field and
the workspace list with a softly filled Add folder action; the field does not
- repeat its label as placeholder text. Edit project reuses the same surface,
- loads the host-owned group, allows the name and non-primary folders to be
- adjusted, keeps Primary first and non-removable, and rejects removal of a
- folder that still owns chats. The source selector offers This computer and
- Git repository as equal peers; a repository URL reuses the clone rules of
- ADR 0247 and its checkout becomes the primary root of the same group.
- dialog does not add explanatory copy for durable memory or multi-selection.
- The surface has no outer stroke, section rules, footer divider, or dashed
- picker border. The action row stays fixed while the content scrolls; narrow
+ repeat its label as placeholder text and uses the shared field well plus the
+ accent-tinted focus ring, not an outline stroke. Edit project reuses the same
+ surface, loads the host-owned group, allows the name and non-primary folders
+ to be adjusted, keeps Primary first and non-removable, and rejects removal of
+ a folder that still owns chats. The source selector offers This computer and
+ Git repository as equal filled tiles without strokes (D297); the active source
+ uses a deeper tile, not a selected border. A repository URL reuses the clone
+ rules of ADR 0247 and its checkout becomes the primary root of the same group.
+ The dialog does not add explanatory copy for durable memory or multi-selection.
+ The surface has no outer stroke, section rules, footer divider, source-option
+ stroke, field stroke, or dashed picker border. The action row stays fixed
+ while the content scrolls; narrow
windows retain a single column and reachable actions. Light and dark themes
preserve readable filled surfaces and visible keyboard focus, and transitions
respect reduced motion.
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 2093aed5c..2c04998e5 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -12019,7 +12019,9 @@ plugin-form fixtures in an isolated temporary directory at runtime.
5. Reopen the dialog, switch to Git repository, and paste a private or
malformed remote.
- **Expected**: The dialog swaps the folder list for a repository URL field plus
- a clone destination row and keeps one project name field; Create stays
+ a clone destination row and keeps one project name field. Source options and
+ fields are filled tiles without strokes; keyboard focus uses the shared
+ accent-tinted ring. Create stays
disabled until the URL parses and a folder is chosen. Confirming runs
`git clone` into the chosen folder with the renderer still owning project
creation: the checkout becomes the primary root and the entered name names the