Skip to content

Move Settings into the sidebar footer and give the usage popover its own width - #165

Merged
yansfil merged 2 commits into
mainfrom
quick/usage-footer-settings
Sep 26, 2026
Merged

yansfil merged 2 commits into
mainfrom
quick/usage-footer-settings

Conversation

@yansfil

@yansfil yansfil commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Related: #153, #162

Summary

#162 리뷰에서 남은 두 결정을 반영합니다.
Settings 톱니를 사이드바 헤더에서 footer로 옮겨, footer가 Swift utility bar처럼 왼쪽 device picker, 오른쪽 사용량 chip과 Settings로 읽힙니다.
Weekly Usage popover는 빌려 쓰던 --size-agent-children-popover(280) 대신 새 토큰 --size-usage-popover(Swift와 같은 250)를 씁니다.
헤더 줄에는 Agents, Projects, ⌘E만 남습니다.

Dark: footer의 This Mac, chip, Settings 톱니와 250 폭 popover

Light: 93%는 destructive, Fable 74%는 warning, 같은 footer 순서

Review

  • 판단해 주세요: Pen의 Main과 Workspace 화면 시트는 사이드바를 220(--size-sidebar-min)으로 그려 footer에 톱니가 들어가지 않았습니다. 웹이 실제로 쓰는 --size-sidebar-ideal(292)로 바꿨고, 두 시트의 폭이 그만큼 넓어졌습니다.
  • 조심해서 볼 파일: scripts/pen-screens.mjs - 생성기: screenSidebar가 tokens를 받아 폭을 읽고, Palette 시트 사이드바 헤더의 톱니를 지웠습니다.

Evidence

  • 확인한 것: pnpm --dir web typecheck, lint, test(40 files, 338 tests).
  • 확인한 것: 이 worktree에서 hided를 새로 빌드하고 격리된 pinned Herdr(private socket)로 pnpm --dir web e2e 전체 62개 통과, 0개 실패(10.9분).
  • 확인한 것: 로컬 전용 캡처 spec에서 footer의 톱니(data-open-settings)를 눌러 Settings를 열고 Appearance에서 Light로 바꾼 뒤 chip과 popover를 캡처했습니다.
  • 확인한 것: node scripts/check-design-contract.mjs, design node test 4종(51개), python3 -m unittest discover -s scripts/tests -p 'test_*.py', check-no-workstation-identity.sh, check-hide-design-enforcement.mjs, check-no-attribution.py.
  • 확인한 것: headless pen interactive로 Main 사이드바(Light, Dark), Workspace 시트, Weekly usage popover 상태를 렌더해 footer 세 요소가 잘리지 않고 popover가 250 폭인지 봤습니다.
  • 확인하지 못한 것: desktop, cargo, Swift lane은 로컬에서 돌리지 않았습니다. Rust와 Swift, desktop 소스는 바뀌지 않았고 CI(desktop app, rust workspace, swift shell)에서 통과했습니다.
  • 생성물: design/hide-ui.lib.pen(새 변수와 Weekly usage 시트의 폭), design/hide-screens.pen(변수 블록, Main, Workspace, Palette 사이드바), web/src/tokens.css는 스크립트 출력입니다.

AI tooling: 대부분 AI 도구로 작성. Swift 참조 화면과 웹, Pen 캡처를 대조하고 .pen diff가 폭, 변수, 사이드바 노드만 바꾸는지 확인했습니다.

The popover borrowed --size-agent-children-popover (280). It now reads
--size-usage-popover, 250 wide as the native popover is, and the
Component / Weekly usage sheet draws its popovers and rows at that width.
The web sidebar footer now reads as the native utility bar does: the
device picker at the left, then the usage chips and the Settings gear at
the right, and the mode row keeps only Agents, Projects and its chord.
The Main and Workspace screen sheets draw the sidebar at
--size-sidebar-ideal, the width sidebar.tsx gives it, so the footer holds
all three.
@yansfil
yansfil merged commit 3e03532 into main Sep 26, 2026
7 checks passed
@yansfil
yansfil deleted the quick/usage-footer-settings branch September 26, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant