diff --git a/README.md b/README.md index 1980c3dc0..8c123fb58 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ This command builds the `app` container, installs dependencies, performs databas Your Docker services should now be up and running 🎉 -You can access to the project by going to . +You can access the project by going to . You will be prompted to log in. The default credentials are: @@ -106,7 +106,7 @@ username: impress password: impress ``` -📝 Note that if you need to run them afterwards, you can use the eponym Make rule: +📝 Note that if you need to run them afterwards, you can use the eponymous Make rule: ```shellscript $ make run diff --git a/UPGRADE.md b/UPGRADE.md index ea49216c2..c167db3c2 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -18,7 +18,7 @@ the following command inside your docker container: ## [3.3.0] - 2025-05-22 -⚠️ For some advanced features (ex: Export as PDF) Docs relies on XL packages from BlockNote. These are licenced under AGPL-3.0 and are not MIT compatible. You can perfectly use Docs without these packages by setting the environment variable `PUBLISH_AS_MIT` to true. That way you'll build an image of the application without the features that are not MIT compatible. Read the [environment variables documentation](/docs/docs/env.md) for more information. +⚠️ For some advanced features (ex: Export as PDF) Docs relies on XL packages from BlockNote. These are licenced under AGPL-3.0 and are not MIT compatible. You can perfectly use Docs without these packages by setting the environment variable `PUBLISH_AS_MIT` to true. That way you'll build an image of the application without the features that are not MIT compatible. Read the [environment variables documentation](/docs/env.md) for more information. The footer is now configurable from a customization file. To override the default one, you can use the `THEME_CUSTOMIZATION_FILE_PATH` environment variable to point to your customization file. diff --git a/src/backend/core/api/viewsets.py b/src/backend/core/api/viewsets.py index cf9930703..2250c91aa 100644 --- a/src/backend/core/api/viewsets.py +++ b/src/backend/core/api/viewsets.py @@ -404,7 +404,7 @@ class DocumentViewSet( Example: - Ascending: GET /api/v1.0/documents/?ordering=created_at - - Desceding: GET /api/v1.0/documents/?ordering=-title + - Descending: GET /api/v1.0/documents/?ordering=-title ### Filtering: - `is_creator_me=true`: Returns documents created by the current user. diff --git a/src/backend/core/models.py b/src/backend/core/models.py index e9880f527..ff4a70628 100644 --- a/src/backend/core/models.py +++ b/src/backend/core/models.py @@ -747,7 +747,7 @@ def get_links_definitions(self, ancestors_links): for ancestor in ancestors_links: links_definitions[ancestor["link_reach"]].add(ancestor["link_role"]) - return dict(links_definitions) # Convert defaultdict back to a normal dict + return dict(links_definitions) # Convert default dict back to a normal dict def compute_ancestors_links(self, user): """ diff --git a/src/frontend/apps/e2e/__tests__/app-impress/config.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/config.spec.ts index 21bb085ec..5a7e5a30d 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/config.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/config.spec.ts @@ -121,7 +121,7 @@ test.describe('Config', () => { }); }); -test.describe('Config: Not loggued', () => { +test.describe('Config: Not logged', () => { test.use({ storageState: { cookies: [], origins: [] } }); test('it checks the config api is called', async ({ page }) => { diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-create.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-create.spec.ts index 52aedce08..811d64bba 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-create.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-create.spec.ts @@ -31,7 +31,7 @@ test.describe('Doc Create', () => { }); }); -test.describe('Doc Create: Not loggued', () => { +test.describe('Doc Create: Not logged', () => { test.use({ storageState: { cookies: [], origins: [] } }); test('it creates a doc server way', async ({ diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts index 722769af3..06b2d54ba 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-editor.spec.ts @@ -95,7 +95,7 @@ test.describe('Doc Editor', () => { const selectVisibility = page.getByLabel('Visibility', { exact: true }); - // When the visibility is changed, the ws should closed the connection (backend signal) + // When the visibility is changed, the ws should close the connection (backend signal) const wsClosePromise = webSocket.waitForEvent('close'); await selectVisibility.click(); diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts index b41ecc339..f523d3eaf 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-export.spec.ts @@ -270,7 +270,7 @@ test.describe('Doc Export', () => { }); /** - * We cannot assert the line break is visible in the pdf but we can assert the + * We cannot assert the line break is visible in the pdf, but we can assert the * line break is visible in the editor and that the pdf is generated. */ test('it exports the doc with divider', async ({ page, browserName }) => { diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts index 9aebb4084..6eec23d43 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-routing.spec.ts @@ -96,7 +96,7 @@ test.describe('Doc Routing', () => { }); }); -test.describe('Doc Routing: Not loggued', () => { +test.describe('Doc Routing: Not logged', () => { test.use({ storageState: { cookies: [], origins: [] } }); test('checks redirect to a doc after login', async ({ diff --git a/src/frontend/apps/e2e/__tests__/app-impress/doc-visibility.spec.ts b/src/frontend/apps/e2e/__tests__/app-impress/doc-visibility.spec.ts index f28fb38d1..2c0f35066 100644 --- a/src/frontend/apps/e2e/__tests__/app-impress/doc-visibility.spec.ts +++ b/src/frontend/apps/e2e/__tests__/app-impress/doc-visibility.spec.ts @@ -295,7 +295,7 @@ test.describe('Doc Visibility: Public', () => { ).toBeVisible(); await page.getByLabel('Visibility mode').click(); - await page.getByLabel('Edition').click(); + await page.getByLabel('Editing').click(); await expect( page.getByText('The document visibility has been updated.').first(), @@ -333,7 +333,7 @@ test.describe('Doc Visibility: Public', () => { test.describe('Doc Visibility: Authenticated', () => { test.use({ storageState: { cookies: [], origins: [] } }); - test('A doc is not accessible when unauthentified.', async ({ + test('A doc is not accessible when unauthenticated.', async ({ page, browserName, }) => { @@ -476,7 +476,7 @@ test.describe('Doc Visibility: Authenticated', () => { const urlDoc = page.url(); await page.getByLabel('Visibility mode').click(); - await page.getByLabel('Edition').click(); + await page.getByLabel('Editing').click(); await expect( page.getByText('The document visibility has been updated.').first(), diff --git a/src/frontend/apps/impress/src/api/__tests__/fetchApi.test.tsx b/src/frontend/apps/impress/src/api/__tests__/fetchApi.test.tsx index 9b9d6a9a3..f65b450f9 100644 --- a/src/frontend/apps/impress/src/api/__tests__/fetchApi.test.tsx +++ b/src/frontend/apps/impress/src/api/__tests__/fetchApi.test.tsx @@ -29,7 +29,7 @@ describe('fetchAPI', () => { }); }); - it('check the versionning', () => { + it('check the versioning', () => { fetchMock.mock('http://test.jest/api/v2.0/some/url', 200); void fetchAPI('some/url', {}, '2.0'); diff --git a/src/frontend/apps/impress/src/features/docs/doc-export/blocks-mapping/paragraphPDF.tsx b/src/frontend/apps/impress/src/features/docs/doc-export/blocks-mapping/paragraphPDF.tsx index 86d74877e..19c253b7d 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-export/blocks-mapping/paragraphPDF.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-export/blocks-mapping/paragraphPDF.tsx @@ -5,7 +5,7 @@ import { DocsExporterPDF } from '../types'; export const blockMappingParagraphPDF: DocsExporterPDF['mappings']['blockMapping']['paragraph'] = (block, exporter) => { /** - * Breakline in the editor are not rendered in the PDF + * Break line in the editor are not rendered in the PDF * By adding a space if the block is empty we ensure that the block is rendered */ if (Array.isArray(block.content)) { diff --git a/src/frontend/apps/impress/src/features/docs/doc-share/hooks/useTranslatedShareSettings.tsx b/src/frontend/apps/impress/src/features/docs/doc-share/hooks/useTranslatedShareSettings.tsx index 771a3300c..d21460998 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-share/hooks/useTranslatedShareSettings.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-share/hooks/useTranslatedShareSettings.tsx @@ -13,7 +13,7 @@ export const useTranslatedShareSettings = () => { const linkModeTranslations = { [LinkRole.READER]: t('Reading'), - [LinkRole.EDITOR]: t('Edition'), + [LinkRole.EDITOR]: t('Editing'), }; const linkReachChoices = { diff --git a/src/frontend/apps/impress/src/features/language/hooks/useLanguageSynchronizer.ts b/src/frontend/apps/impress/src/features/language/hooks/useLanguageSynchronizer.ts index e6bb23b99..b58ac08a9 100644 --- a/src/frontend/apps/impress/src/features/language/hooks/useLanguageSynchronizer.ts +++ b/src/frontend/apps/impress/src/features/language/hooks/useLanguageSynchronizer.ts @@ -41,7 +41,7 @@ export const useLanguageSynchronizer = () => { (userPreferredLanguages.length ? 'toFrontend' : 'toBackend'); if (direction === 'toBackend') { - // Update user's preference from frontends's language + // Update user's preference from frontend's language const closestBackendLanguage = getMatchingLocales( availableBackendLanguages, diff --git a/src/frontend/apps/impress/src/features/service-worker/plugins/ApiPlugin.ts b/src/frontend/apps/impress/src/features/service-worker/plugins/ApiPlugin.ts index 7a03f291d..49485277a 100644 --- a/src/frontend/apps/impress/src/features/service-worker/plugins/ApiPlugin.ts +++ b/src/frontend/apps/impress/src/features/service-worker/plugins/ApiPlugin.ts @@ -112,7 +112,7 @@ export class ApiPlugin implements WorkboxPlugin { }; /** - * When we get an network error. + * When we get a network error. */ handlerDidError: WorkboxPlugin['handlerDidError'] = async ({ request }) => { if (!this.isFetchDidFailed) {