-
Notifications
You must be signed in to change notification settings - Fork 657
Scheduler: Add "(No subject)" title to appointments without text #31739
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
Conversation
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.
Pull Request Overview
This PR adds a "(No subject)" placeholder text for scheduler appointments that have no title/text, improving the user experience by providing visual feedback instead of leaving the appointment title empty.
- Added localization key
dxScheduler-noSubjectwith value "(No subject)" across all supported language files - Updated scheduler code to display "(No subject)" when appointment text is empty or missing
- Added test coverage to verify the behavior
Reviewed Changes
Copilot reviewed 32 out of 36 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/devextreme/js/__internal/scheduler/m_subscribes.ts | Added messageLocalization import and updated createFormattedDateText and _createAppointmentTitle functions to use "(No subject)" fallback for empty appointment text |
| packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.test.ts | Added test to verify appointments without title display "(No subject)" while keeping the input field empty |
| packages/devextreme/js/localization/messages/*.json (31 files) | Added "dxScheduler-noSubject" key with "(No subject)" value to all language localization files |
| packages/devextreme/playground/jquery.html | Removed trailing whitespace from closing HTML tag |
packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.test.ts
Outdated
Show resolved
Hide resolved
| }); | ||
| }); | ||
|
|
||
| it('should display "(No subject)" for appointments without title', async () => { |
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.
I suggest to add a visual test to check that "(No subject)" is displayed correctly.
I know that there are already some screenshots that you've updated, but it seems that they are not directly related to appointments without subject.
What do you think?
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.
Since it is a BC it is a good idea. For such small functionality in other scenario I would consider it as overkill
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.
I just realized that we don't have visual test for appointment without subject. Maybe add a visual or jest test for appointment tooltip too?
packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.test.ts
Outdated
Show resolved
Hide resolved
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.
Pull Request Overview
Copilot reviewed 33 out of 37 changed files in this pull request and generated no new comments.
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.
Pull Request Overview
Copilot reviewed 33 out of 46 changed files in this pull request and generated no new comments.
b5aea28
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.
Pull request overview
Copilot reviewed 33 out of 46 changed files in this pull request and generated no new comments.
No description provided.