Repository navigation
Conversation
Refs #692 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
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.
Refs #692 (UI kit). main 기준의 독립 PR이며, 다른 PR의 선행 병합이 필요하지 않습니다.
요약
Input이readOnly를 구조 분해한 뒤 지우기 버튼 표시 여부에만 사용하고 실제<input>에는 전달하지 않아,<Input readOnly />도 편집 가능한 문제를 수정합니다. 기존 prop 순서를 바꾸지 않고readOnly={readOnly}한 줄만 추가했습니다.기준 커밋:
d121976523cc8f2e9da8d0976d5aa59d30e213d8(origin/main). 회귀 테스트 3개와 components Patch changepack을 추가했습니다. 의존성과 lockfile 변경은 없습니다.같은 유형의 누락 감사
범위는
packages/components/src/components/*/index.tsx9개 파일과 그 안의 하위 컴포넌트입니다. 구조 분해한 native prop 후보를 추적했으며, 확인된 누락은 Input의 readOnly 한 건입니다. 상태/이벤트를 거쳐 동등하게 전달되는 prop과 의도적인 UI kit 전용 prop은 누락으로 세지 않았습니다.defaultValue,value,onChange,disabled,className,readOnly,id,aria-describedbyreadOnly만 누락되어 수정. 초기/제어 값은innerValue, 이벤트는handleChange, 나머지는 native input에 전달disabled,className,rows,id,aria-describedbyreadOnly는 구조 분해하지 않아 spread로 전달type,children,className,disabledsize는 button native 속성이 아닌 UI kit 크기 옵션children,disabled,checked,defaultChecked,onChangeclassName,disabled,children,checked,styledisabled,style,value,onChange,defaultValue,name,label,classNamedefaultValue,value,onChange,disabled,className,style,name,aria-label,aria-labelledbychildren,defaultValue,value,min,max,typeonClick,disabledclassName,onChangechildren,defaultValue,value,onChange,typeclassName,children,onClick,onKeyDownchildrendisabled,onClick,children,value동작
<Input readOnly /><Input defaultValue="test" readOnly /><Input defaultValue="test" />새로 생기는 오류
없음. 새 의존성, 공개 API 또는 빌드 오류 종류를 추가하지 않습니다. WASM 및 루트 setup 빌드가 통과했습니다.
남는 한계
bun-test-env-dom환경에서 native readonly 속성과 버튼 표시를 검증합니다. 실제 브라우저의 키 입력/시각 검증은 별도로 수행하지 않았습니다.검증
bun test ./packages/components/src/components/Input/__tests__/native-props.browser.test.tsx→ 2 pass / 1 fail, assertion 4개. readonly의 기대값""에 실제값null로 실패했습니다. readOnly에서 버튼 숨김/일반 입력에서 버튼 표시는 이미 통과했습니다.Expected this to be instanceof ExpectMatcherUtils가 발생했습니다. 속성을 직접 읽는 assertion으로 바꾼 뒤 production 수정 없이 위의 명확한 RED를 다시 기록했습니다.bun test ./packages/components/src/components/Input/__tests__/→ 39 pass / 0 fail, 파일 3개, snapshot 12개, assertion 71개.bun lint1회: 기존 경고 20개, 수정 파일의 formatting/prop 정렬 오류 5개를 확인했습니다. 저장소 밖 helper의 scopedbun run lint:fix로 수정한 TSX 2개만 정리했습니다. 이후 hook 전체 lint는 0 errors / 20 existing warnings로 통과했습니다. 새 경고는 없습니다.SHASUMS256.txt와 대조한 SHA256:CD2C0FCCC78F3EDE1F50CA827A15F063EDA13D4D150A3D0674F4F6E323D864A5. 공유 설치는 변경하지 않았습니다.bun test --coverage(private 1.4.4): 6251 pass / 0 fail, 169개 파일, snapshot 89개, assertion 23213개, 302.06초, 종료 코드 0.c41b1973ae5e7ecbc87f667f5d8bfb7e834cd6d6. stat-only 차이만 허용된 방식으로 복원했으며 커밋에 포함하지 않았습니다.