Skip to content

Commit

Permalink
Merge pull request #6601 from nextcloud/feat/change-descr
Browse files Browse the repository at this point in the history
feat: improve the description text
  • Loading branch information
GretaD authored Jan 3, 2025
2 parents 7e355d8 + 8f9e504 commit 7e8d32f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/models/rfcProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ const getRFCProperties = () => {
*/
description: {
readableName: t('calendar', 'Description'),
placeholder: t('calendar', 'Add a description'),
placeholder: t('calendar', 'Add a description\n'
+ '\n'
+ '- What is this meeting about\n'
+ '- Agenda items\n'
+ '- Anything participants need to prepare'),
icon: 'TextBoxOutline',
defaultNumberOfRows: 2,
},
Expand Down
12 changes: 10 additions & 2 deletions tests/javascript/unit/models/rfcProps.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ describe('Test suite: RFC properties (models/rfcProps.js)', () => {

expect(rfcProps.description).toEqual(expect.any(Object))
expect(rfcProps.description.readableName).toEqual('Description')
expect(rfcProps.description.placeholder).toEqual('Add a description')
expect(rfcProps.description.placeholder).toEqual('Add a description\n'
+ '\n'
+ '- What is this meeting about\n'
+ '- Agenda items\n'
+ '- Anything participants need to prepare')
expect(rfcProps.description.icon).toEqual('TextBoxOutline')
expect(rfcProps.description.defaultNumberOfRows).toEqual(2)

Expand Down Expand Up @@ -96,7 +100,11 @@ describe('Test suite: RFC properties (models/rfcProps.js)', () => {
expect(translate).toHaveBeenNthCalledWith(7, 'calendar', 'Add a location')

expect(translate).toHaveBeenNthCalledWith(8, 'calendar', 'Description')
expect(translate).toHaveBeenNthCalledWith(9, 'calendar', 'Add a description')
expect(translate).toHaveBeenNthCalledWith(9, 'calendar', 'Add a description\n'
+ '\n'
+ '- What is this meeting about\n'
+ '- Agenda items\n'
+ '- Anything participants need to prepare')

expect(translate).toHaveBeenNthCalledWith(10, 'calendar', 'Status')
expect(translate).toHaveBeenNthCalledWith(11, 'calendar', 'Confirmed')
Expand Down

0 comments on commit 7e8d32f

Please sign in to comment.