From 80c817431849a28556e8057d064273358c7da620 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Wed, 8 Apr 2026 17:14:12 -0400 Subject: [PATCH] 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. --- src/library-authoring/create-library/CreateLibrary.test.tsx | 4 ++-- src/library-authoring/create-library/messages.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/library-authoring/create-library/CreateLibrary.test.tsx b/src/library-authoring/create-library/CreateLibrary.test.tsx index 06228f1aa5..adbb823d75 100644 --- a/src/library-authoring/create-library/CreateLibrary.test.tsx +++ b/src/library-authoring/create-library/CreateLibrary.test.tsx @@ -480,7 +480,7 @@ describe('', () => { expect(screen.getByText('TestOrg / test-archive')).toBeInTheDocument(); // Testing the archive details summary expect(screen.getByText(/Contains 8 sections, 12 subsections, 20 units, 15 components/i)).toBeInTheDocument(); - expect(screen.getByText(/Created on instance test.com/i)).toBeInTheDocument(); + expect(screen.getByText(/Backup created on instance test.com/i)).toBeInTheDocument(); expect(screen.getByText(/by user test@example.com/i)).toBeInTheDocument(); }); }); @@ -537,7 +537,7 @@ describe('', () => { await waitFor(() => { // Testing the archive details summary without instance and user email expect(screen.getByText(/Contains 8 sections, 12 subsections, 20 units, 15 components/i)).toBeInTheDocument(); - expect(screen.queryByText(/Created on instance/i)).not.toBeInTheDocument(); + expect(screen.queryByText(/Backup created on instance/i)).not.toBeInTheDocument(); expect(screen.queryByText(/by user/i)).not.toBeInTheDocument(); }); }); diff --git a/src/library-authoring/create-library/messages.ts b/src/library-authoring/create-library/messages.ts index 846b6bd5e2..d9ad0d52ef 100644 --- a/src/library-authoring/create-library/messages.ts +++ b/src/library-authoring/create-library/messages.ts @@ -48,8 +48,8 @@ const messages = defineMessages({ }, slugHelp: { id: 'course-authoring.library-authoring.create-library.form.slug.help', - defaultMessage: `The unique code that identifies this library. Note: This is - part of your library URL, so no spaces or special characters are allowed. + defaultMessage: `The unique code that identifies this library. Note: This is + part of your library URL, so no spaces or special characters are allowed. This cannot be changed.`, description: 'Help text for the slug field.', }, @@ -125,7 +125,7 @@ const messages = defineMessages({ }, archiveRestoredCreatedBy: { id: 'course-authoring.library-authoring.create-library.form.archive.restored-created-by', - defaultMessage: 'Created on instance {server}, by user {createdBy}', + defaultMessage: 'Backup created on instance {server}, by user {createdBy}', description: 'Text showing who restored the archive.', }, archiveBackupDate: {