Skip to content

Commit f5d874a

Browse files
committed
fix: clarify "created by" library restore message
Previously, when you uploaded a backup archive to restore a library from, it was ambiguous as to whether "created by" referred to the person who created the original library, or the person who created the backup archive. This re-wording clarifies that it's the person who created the backup archive.
1 parent 2930265 commit f5d874a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/library-authoring/create-library/CreateLibrary.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ describe('<CreateLibrary />', () => {
480480
expect(screen.getByText('TestOrg / test-archive')).toBeInTheDocument();
481481
// Testing the archive details summary
482482
expect(screen.getByText(/Contains 8 sections, 12 subsections, 20 units, 15 components/i)).toBeInTheDocument();
483-
expect(screen.getByText(/Created on instance test.com/i)).toBeInTheDocument();
483+
expect(screen.getByText(/Backup created on instance test.com/i)).toBeInTheDocument();
484484
expect(screen.getByText(/by user test@example.com/i)).toBeInTheDocument();
485485
});
486486
});
@@ -537,7 +537,7 @@ describe('<CreateLibrary />', () => {
537537
await waitFor(() => {
538538
// Testing the archive details summary without instance and user email
539539
expect(screen.getByText(/Contains 8 sections, 12 subsections, 20 units, 15 components/i)).toBeInTheDocument();
540-
expect(screen.queryByText(/Created on instance/i)).not.toBeInTheDocument();
540+
expect(screen.queryByText(/Backup created on instance/i)).not.toBeInTheDocument();
541541
expect(screen.queryByText(/by user/i)).not.toBeInTheDocument();
542542
});
543543
});

src/library-authoring/create-library/messages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ const messages = defineMessages({
4848
},
4949
slugHelp: {
5050
id: 'course-authoring.library-authoring.create-library.form.slug.help',
51-
defaultMessage: `The unique code that identifies this library. Note: This is
52-
part of your library URL, so no spaces or special characters are allowed.
51+
defaultMessage: `The unique code that identifies this library. Note: This is
52+
part of your library URL, so no spaces or special characters are allowed.
5353
This cannot be changed.`,
5454
description: 'Help text for the slug field.',
5555
},
@@ -125,7 +125,7 @@ const messages = defineMessages({
125125
},
126126
archiveRestoredCreatedBy: {
127127
id: 'course-authoring.library-authoring.create-library.form.archive.restored-created-by',
128-
defaultMessage: 'Created on instance {server}, by user {createdBy}',
128+
defaultMessage: 'Backup created on instance {server}, by user {createdBy}',
129129
description: 'Text showing who restored the archive.',
130130
},
131131
archiveBackupDate: {

0 commit comments

Comments
 (0)