dbbed96e8a21

remove duplicate create-vault choice tile, nav button is the sole create CTA

time
2026-08-18 12:02 UTC · 2 months ago
machine
koh2
agent
deepseek-v4-flash-free
session
onboarding create-vault choice
parent
c3ecf10fefd5
3 files src/popup/styles/popup.css+0 −18src/popup/views/AdoptVaultView.test.tsx+3 −3src/popup/views/Onboarding.tsx+0 −15
src/popup/styles/popup.css+0 −18
@@ -7157,24 +7157,6 @@71577157   background: color-mix(in srgb, var(--peach-accent) 13%, transparent);71587158 }71597159 7160-.peach-onboarding-choice--create {7161-  border-color: color-mix(in srgb, var(--peach-accent) 55%, transparent);7162-  background: color-mix(in srgb, var(--peach-accent) 16%, transparent);7163-  color: var(--peach-t0);7164-  box-shadow:7165-    inset 0 1px 0 rgba(255, 255, 255, 0.05),7166-    0 0 18px color-mix(in srgb, var(--peach-accent) 12%, transparent);7167-}7168-7169-.peach-onboarding-choice--create:hover {7170-  border-color: color-mix(in srgb, var(--peach-accent) 75%, transparent);7171-  background: color-mix(in srgb, var(--peach-accent) 22%, transparent);7172-}7173-7174-.peach-onboarding-choice--create .peach-onboarding-choice-detail {7175-  color: var(--peach-t1);7176-}7177-71787160 .peach-adopt-vault {71797161   position: relative;71807162   min-height: 100%;

view file

src/popup/views/AdoptVaultView.test.tsx+3 −3
@@ -69,7 +69,7 @@6969     expect(onAdopt).toHaveBeenCalledTimes(1);7070   });7171 72-  it("T-A21b: create-vault is an explicit choice; a final-card tap does not silently create", () => {72+  it("T-A21b: create-vault is the nav call-to-action; a final-card tap does not silently create", () => {7373     vi.useFakeTimers();7474     const onComplete = vi.fn();7575     const view = mounted(() => <Onboarding onComplete={onComplete} onRestore={() => {}} onAdopt={() => {}} />);@@ -79,12 +79,12 @@7979     button(view.container, "next").click();8080     vi.advanceTimersByTime(220);8181 82-    expect(view.container.textContent).toContain("Create a new vault");82+    expect(view.container.textContent).toContain("Create vault");8383 8484     (view.container.querySelector(".peach-onboarding-card") as HTMLElement).click();8585     expect(onComplete).not.toHaveBeenCalled();8686 87-    button(view.container, "Create a new vault").click();87+    button(view.container, "Create vault").click();8888     vi.advanceTimersByTime(250);8989     expect(onComplete).toHaveBeenCalledTimes(1);9090   });

view file

src/popup/views/Onboarding.tsx+0 −15
@@ -128,21 +128,6 @@128128           </p>129129         </Show>130130         <Show when={card() === CARDS.length - 1}>131-          <div class="peach-onboarding-choice-row">132-            <button133-              type="button"134-              class="peach-onboarding-choice peach-onboarding-choice--create"135-              onClick={(e) => {136-                e.stopPropagation();137-                void advance();138-              }}139-            >140-              <span class="peach-onboarding-choice-label">Create a new vault</span>141-              <span class="peach-onboarding-choice-detail">142-                Set your master password and start saving.143-              </span>144-            </button>145-          </div>146131           <p class="peach-onboarding-choice-heading">Already using Peach?</p>147132           <div class="peach-onboarding-choice-row">148133             <button

view file