-
Notifications
You must be signed in to change notification settings - Fork 0
feat(web): 대시보드와 보관함의 확정 스케줄 달력 가독성 개선 #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5565caa
feat(web): improve schedule calendar and time inputs
meteorqz6 0c39c11
fix: address schedule review feedback
meteorqz6 355dcce
Merge develop into feature/schedule-calendar-readability
meteorqz6 9aef158
Merge latest develop into schedule calendar readability
meteorqz6 75390df
fix: address remaining schedule review comments
meteorqz6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
기존 저장 운영 시간이 편집 불가능해질 수 있습니다.
Line 37의
TIME_OPTIONS가 30분 단위로만 고정되면서, 기존input[type="time"]나 API를 통해 저장된09:15같은 값은 수정 화면에서SelectItem으로 표현되지 않습니다. 이 PR은 shared/API 스키마를 바꾸지 않았기 때문에, 현재는 합법적인 저장값을 웹 폼이 round-trip 하지 못하는 상태입니다.최소한 기존 값이 옵션에 없으면 임시로 주입해서 표시·재저장 가능하게 하거나, 30분 제한을 도입하려면 shared schema/API validation/backfill까지 같이 맞춰야 합니다.
가능한 국소 수정 예시
const TIME_OPTIONS = Array.from( { length: MINUTES_IN_DAY / TIME_OPTION_STEP_MINUTES }, (_, index) => { const minutes = index * TIME_OPTION_STEP_MINUTES; const hour = Math.floor(minutes / 60); const minute = minutes % 60; const value = `${String(hour).padStart(2, "0")}:${String(minute).padStart(2, "0")}`; return { label: value, value }; }, ); + +function getTimeOptions(currentValue?: string | null) { + if (!currentValue || TIME_OPTIONS.some((option) => option.value === currentValue)) { + return TIME_OPTIONS; + } + + return [...TIME_OPTIONS, { label: currentValue, value: currentValue }].sort((a, b) => + a.value.localeCompare(b.value), + ); +}As per path instructions, "SPEC의 입력 검증(필수값, 이메일 형식, 비밀번호 확인, 날짜 범위, 시작/종료 시간, 1명 이상/1 이상의 숫자)을 UI와 schema가 함께 처리하는지 확인".
Also applies to: 221-263
🤖 Prompt for AI Agents
Source: Path instructions