-
Notifications
You must be signed in to change notification settings - Fork 307
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
Lectures
: Disable submit button on invalid form and add tooltip
#10430
base: develop
Are you sure you want to change the base?
Lectures
: Disable submit button on invalid form and add tooltip
#10430
Conversation
…invalid-form-add-tooltip
…invalid-form-add-tooltip
WalkthroughThis pull request adjusts the attachment unit form component. In the HTML template, it removes an extra space before the asterisk in the name label, deletes an existing file size error message, and wraps the submit button with a tooltip-enabled span. The TypeScript file is updated to inject a translation service, use signals for reactive validations, and include a new computed property for tooltip text. Additionally, new validation error messages have been added to both the German and English translation files for attachment unit creation. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant C as AttachmentUnitFormComponent
participant T as TranslateService
U->>C: Enter name and select file
C->>C: Update signals and validate form
U->>C: Hover on submit button
C->>C: Compute tooltipText based on input validations
C->>T: Retrieve translated error message (if applicable)
T-->>C: Return translation
C-->>U: Display tooltip with error message
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)`src/main/webapp/**/*.ts`: angular_style:https://angular.io/...
🧠 Learnings (1)src/main/webapp/app/lecture/lecture-unit/lecture-unit-management/attachment-unit-form/attachment-unit-form.component.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (7)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Lectures
: Disable submit button on invalid form and add tooltip
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.
Code looks good 👍
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
Opening this PR from a branch in the main repository to enable test server deployment, as it wasn't possible with the previous PR from a forked repository (see #9846), and reopened it again after the old PR was open for too long #10129.
Checklist
General
Server
Client
Motivation and Context
Fixes #9829. The submit button did not indicate that a mandatory field was still missing and could be clicked.
This led to confusion among users.
The error message for files that were too large also had an redundant sentence.
Description
I have updated/changed the conditions in isValidForm to recognize empty string names and uploaded files.
Steps for Testing
Prerequisites:
Lecture
Units
->File
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Exam Mode Test
Performance Tests
Screenshots
tooltip-submit-button.mp4
Summary by CodeRabbit
New Features
Style