Skip to content

Update OpenAPI schema#14

Merged
kantacky merged 4 commits intomainfrom
update-openapi-schema
Mar 18, 2026
Merged

Update OpenAPI schema#14
kantacky merged 4 commits intomainfrom
update-openapi-schema

Conversation

@dotto-api-schema-updater
Copy link
Contributor

This PR updates the OpenAPI schema from dotto-typespec.

Triggered by: fun-dotto/dotto-typespec@a187430

@kantacky kantacky self-assigned this Mar 18, 2026
kantacky and others added 3 commits March 18, 2026 23:20
OpenAPIスキーマ更新によりsubjectIdがネストされたsubjectオブジェクトに変更されたため対応

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
OpenAPIスキーマ更新によりfacultyIdがネストされたfacultyオブジェクトに変更されたため対応

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
OpenAPIスキーマ更新により:
- subjectIdをsubject.idに変更
- TimetableItemRequest/TimetableItemからroomIdが削除されたため関連UI・ロジックを削除

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kantacky kantacky marked this pull request as ready for review March 18, 2026 14:21
@kantacky kantacky enabled auto-merge (squash) March 18, 2026 14:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR syncs the admin web app with the latest OpenAPI schema generated from dotto-typespec, updating frontend code to match the new response shapes (notably subject / faculty becoming nested objects) and removing timetable room handling.

Changes:

  • Update OpenAPI schemas to replace subjectId/facultyId with nested subject/faculty objects in several resources.
  • Refactor timetable and course-registration UI to use the new nested subject.id access pattern.
  • Remove timetable room selection/display and stop fetching rooms in timetable pages.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/components/timetable/TimetableItemTable.tsx Adjusts timetable rendering for nested subject and removes room column/prop.
src/components/timetable/TimetableItemForm.tsx Removes room selection and updates submit payload accordingly.
src/components/subjects/SubjectTable.tsx Updates faculty display to use nested faculty.id.
src/components/course-registrations/CourseRegistrationTable.tsx Updates subject display to use nested subject.id.
src/app/dotto/timetable/page.tsx Stops fetching rooms for timetable page.
src/app/dotto/timetable/new/page.tsx Stops fetching rooms for new timetable item page.
src/app/dotto/timetable/new/NewTimetableItemPageClient.tsx Removes rooms prop plumbing into the form.
src/app/dotto/timetable/TimetablePageClient.tsx Removes rooms/roomMap usage and updates delete dialog subject access.
src/app/dotto/course-registrations/CourseRegistrationsPageClient.tsx Updates delete dialog subject access to nested subject.id.
openapi/openapi.yaml Updates schemas to nested subject/faculty objects and removes timetable roomId.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Member

@masaya-osuga masaya-osuga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@kantacky kantacky merged commit 9d70bf2 into main Mar 18, 2026
7 checks passed
@kantacky kantacky deleted the update-openapi-schema branch March 18, 2026 15:18
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.

3 participants