feat: improve post-assignment UI and prevent double posting#478
Merged
Conversation
- Redesign post-assignment form: clearer header, target class label, full-width title input, hint text about GC settings - Default title now uses assignment name only (not class name) - Add Google Classroom icon to post/view buttons - Save courseWorkId and alternateLink to DynamoDB after posting - After posting, button changes from "課題を配信" to "課題を確認" which opens the Google Classroom assignment in a new tab - Return googleClassroomAlternateLink in list/get classroom APIs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/feature/improve-post-assignment-ui/ |
github-actions Bot
pushed a commit
that referenced
this pull request
Apr 8, 2026
…ve-post-assignment-ui feat: improve post-assignment UI and prevent double posting
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.
Summary
Changes
Backend (Lambda)
handlePostAssignment: 投稿後にgoogleClassroomCourseWorkIdとgoogleClassroomAlternateLinkを DynamoDB に保存handleListClassrooms/handleGetClassroom:googleClassroomAlternateLinkをレスポンスに追加Frontend
teacher-post-assignment.jsx: フォーム UI を刷新(ヘッダー、対象、ヒントテキスト、GC アイコン付きボタン)teacher-class-detail.jsx:alternateLinkがある場合は「課題を確認」リンクボタン(新しいタブで開く)、ない場合は「課題を配信」ボタンuse-teacher-classroom.js: 投稿後にselectedClassroomとclassroomsリストのalternateLinkを更新classroom-modal.css: ボタンの inline-flex 化、新しい CSS クラス追加ja.js/en.js/ja-Hira.js: 新しい翻訳キー追加Test plan
🤖 Generated with Claude Code