Repository navigation
Keep the project name on the Overview header at narrow widths - #626
Merged
Merged
Conversation
At 720 px the Overview header's content is 348 px wide. The path back's "All projects /" and the two action buttons, which never shrink, left the project name 0 px, so the header read "All projects /" alone. The header is now a size container: under 512 px New agent and New issue keep their icon and drop their word and keycap, with their name and the shortcut in a hint, so the name keeps the row and truncates only after that. Closes #618
…n icon-only actions The actions now keep their word and keycap only while the whole project name fits beside them, measured from the name and the labelled actions rather than a fixed width, so a long name, another language, a device badge or a wide sidebar cannot take the name to zero again. The hint opens only while an action is icon-only, over a span so it also opens on a disabled one. The spec uses a long project name and polls the state it asserts; the theme chooser the Overview specs each copied is one helper in wire.ts.
…oll, and close a hint that was open when it went inactive The copy of the labelled actions that the title row measures is clipped to the row, so it cannot give the Overview a horizontal scrollbar beside a wide sidebar. A hint that is open when its action stops needing it still closes. The spec waits out the hint delay with a stated quiet window, reads the keycap in the hint itself, and checks the page that scrolls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #618
Summary
창 폭 720px에서 Project Overview 헤더가
All projects /만 남기고 프로젝트 이름을 잃었습니다.원인은 오른쪽 두 버튼이 줄지 않고 폭을 먼저 가져가는 구조입니다. 헤더 내용 폭 348px에서 버튼 227px과 gap 48px를 빼면 위치 표시가 73px만 받고,
All projects /가 그 폭을 다 쓰면truncate인 이름 칸이 0px이 됩니다(측정: 같은 화면에서 이름이 1600px에서 55px, 720px에서 0px).C를 보이고, 아니면 아이콘만 남깁니다.C까지), disabled 버튼 위에서도 열립니다.web/src/OverviewTitleRow.tsx로 나눴고,Hint에active를 더했습니다.위가 전, 아래가 후입니다.
All projects /뒤에 이름이 있는지, 오른쪽 두 버튼이 아이콘인지 보세요(전에는 이름 폭이 0이었습니다).Review
web/src/OverviewTitleRow.tsx- ResizeObserver로 측정해 상태를 바꾸는 high-frequency 가까운 경로입니다. 측정 입력(줄 폭, 이름의 자연 폭, 복사본 폭)이 현재 상태에 의존하지 않아 되돌아가며 흔들리지 않고, observer는 줄, 복사본, nav 자식만 봅니다.web/src/components/ui/tooltip.tsx-Hint의active는 열기만 막고 닫기는 항상 통과시킵니다.Evidence
--size-tab-title-min(104px) 이상, 1600에서만 전체 이름과 단어, 900과 720에서 말줄임과 아이콘, 페이지가 가로로 스크롤되지 않음을 봅니다. 상태는expect.poll로 기다립니다.New issue와 keycapC, 비활성 처리한 New agent 위에서도 열림, 단어가 보이는 1600에서는 500ms 지연 뒤에도 안 열림.webtypecheck, lint, unit test, build와desktoptypecheck, lint,node scripts/check-design-contract.mjs가 통과합니다.overview-header,overview-modal,overview-requests,overview,overview-prs,checkout-pr,sidebar-shellspec 8개가 통과합니다.shrink) 했지만 원격 장치를 가진 fixture가 없어 실제 폭은 보지 못했습니다.disabled를 켜 hint를 확인했습니다.--size-tab-title-min은 spec의 기준값으로만 읽습니다).추가 증거
720px 라이트 전/후:
900px 다크 전/후(긴 이름이 있어 후에서는 아이콘):
900px 라이트와 1600px(단어와
C가 전부 보임):Verification record
bash scripts/verify-web.sh web typecheck|lint|test|build,desktop typecheck|lint: 통과node scripts/check-design-contract.mjs: 통과pnpm --dir web exec playwright test위 spec 7개 파일(8 test): 8 passedHintactive가 닫기까지 막음(열기만 막도록 수정), 음성 단언이 지연보다 먼저 통과함(quietFor800ms), 근거 없는 헤더 폭 단언(삭제), disabled 검증이 DOM을 직접 바꾼다는 사실(주석에 명시, 실제 disabled fixture는 없음). Follow-up: Badge 말줄임과 hint,column-gap변화에 대한 재측정은 하지 않았습니다.C단언, 10chooseTheme을wire.ts하나로(다섯 복사본 제거), 11 non-null 단언 제거, 12 문서를 실제 동작에 맞춤.web/src/OverviewTitleRow.tsx(새),web/src/ProjectOverview.tsx,web/src/components/ui/tooltip.tsx,web/e2e/overview-header.spec.ts(새),web/e2e/wire.ts와 spec 다섯 개,docs/UI_BEHAVIOR.md,docs/DESIGN_WORKFLOW.md