Commit graph

2005 commits

Author SHA1 Message Date
Anthony LC
3cc9655574
🐛(frontend) fix position interlinking when lost focus
When switching between a interlinking search to a
interlinking link, we could lose the position of
the interlinking. The interlinking was added at
the beginning of the document or where the cursor was.
We refactorize the interlinking to be only one type
of inline content, by doing so we do not lose the position
of the interlinking because we don't remove the interlinking search
to add the interlinking link, we just update the
interlinking search to be a interlinking link.
2026-04-21 10:15:35 +02:00
Anthony LC
c20e71e21d
💄(frontend) update interlinking ux/ui
Update interlinking to fit the new design.
The notable changes is that we cannot create
a subdoc from the search dropdown.
2026-04-21 10:15:34 +02:00
Anthony LC
b3dd8f2e39
🐛(frontend) fix interlinking modal clipping
Depend the parent block, the modal search may be
clipped by the parent block. We now use the portal
to render the modal search, which will not be
affected by the parent block's clipping.
2026-04-21 10:15:34 +02:00
Manuel Raynaud
203b3edcae
🐛(backend) load jwks url when OIDC_RS_PRIVATE_KEY_STR is set
Some checks are pending
Update crowdin sources / install-dependencies (push) Waiting to run
Update crowdin sources / synchronize-with-crowdin (push) Blocked by required conditions
Docker Hub Workflow / build-and-push-backend (push) Waiting to run
Docker Hub Workflow / build-and-push-frontend (push) Waiting to run
Docker Hub Workflow / build-and-push-y-provider (push) Waiting to run
Docker Hub Workflow / notify-argocd (push) Blocked by required conditions
Build and Push to GHCR / build-and-push-backend (push) Waiting to run
Build and Push to GHCR / build-and-push-frontend (push) Waiting to run
Build and Push to GHCR / build-and-push-y-provider (push) Waiting to run
Helmfile lint / helmfile-lint (push) Waiting to run
Frontend Workflow / install-dependencies (push) Waiting to run
Frontend Workflow / test-front (push) Blocked by required conditions
Frontend Workflow / lint-front (push) Blocked by required conditions
Frontend Workflow / test-e2e-chromium (push) Waiting to run
Frontend Workflow / test-e2e-other-browser (push) Blocked by required conditions
Frontend Workflow / bundle-size-check (push) Blocked by required conditions
Frontend Workflow / uikit-theme-checker (push) Blocked by required conditions
Main Workflow / install-dependencies (push) Waiting to run
Main Workflow / lint-git (push) Waiting to run
Main Workflow / check-changelog (push) Waiting to run
Main Workflow / lint-changelog (push) Waiting to run
Main Workflow / lint-spell-mistakes (push) Waiting to run
Main Workflow / lint-back (push) Waiting to run
Main Workflow / test-back (push) Blocked by required conditions
When the resource server is enabled and the backend used is
JWTResourceServerBackend, then the API should expose a JWKS endpoint to
share the RSA public key to the OIDC provider. Everything is made in the
Django LaSuite library, but the URL is not included in the Docs URLs.
This commit adds it when the setting OIDC_RS_PRIVATE_KEY_STR is set.
2026-04-20 15:14:09 +00:00
Anthony LC
ee90443cb2
(frontend) add documentation link in help menu
Some checks are pending
Update crowdin sources / install-dependencies (push) Waiting to run
Update crowdin sources / synchronize-with-crowdin (push) Blocked by required conditions
Docker Hub Workflow / build-and-push-backend (push) Waiting to run
Docker Hub Workflow / build-and-push-frontend (push) Waiting to run
Docker Hub Workflow / build-and-push-y-provider (push) Waiting to run
Docker Hub Workflow / notify-argocd (push) Blocked by required conditions
Build and Push to GHCR / build-and-push-backend (push) Waiting to run
Build and Push to GHCR / build-and-push-frontend (push) Waiting to run
Build and Push to GHCR / build-and-push-y-provider (push) Waiting to run
Helmfile lint / helmfile-lint (push) Waiting to run
Frontend Workflow / install-dependencies (push) Waiting to run
Frontend Workflow / test-front (push) Blocked by required conditions
Frontend Workflow / lint-front (push) Blocked by required conditions
Frontend Workflow / test-e2e-chromium (push) Waiting to run
Frontend Workflow / test-e2e-other-browser (push) Blocked by required conditions
Frontend Workflow / bundle-size-check (push) Blocked by required conditions
Frontend Workflow / uikit-theme-checker (push) Blocked by required conditions
Main Workflow / install-dependencies (push) Waiting to run
Main Workflow / lint-git (push) Waiting to run
Main Workflow / check-changelog (push) Waiting to run
Main Workflow / lint-changelog (push) Waiting to run
Main Workflow / lint-spell-mistakes (push) Waiting to run
Main Workflow / lint-back (push) Waiting to run
Main Workflow / test-back (push) Blocked by required conditions
We want to add a link to the documentation in
the help menu, to make it easier for users to find it.
2026-04-20 14:29:12 +02:00
Anthony LC
572074d141
🚸(frontend) show Crisp from the help menu
The Crisp button is very intrusive, it often overlaps
with element of the app.
We now show the Crisp modal
only when the user clicks on the "Get Support"
button in the help menu.
2026-04-20 14:29:12 +02:00
Anthony LC
599b909318
🛂(frontend) fix cannot manage member on small screen
We can now manage document members on small
screens (mobile and tablet). We improved the
overall responsive design of the doc share modal.
2026-04-20 11:00:41 +02:00
Anthony LC
5a687799d5
🥚(e2e) fix e2e easter egg
Some checks failed
Helmfile lint / helmfile-lint (push) Has been cancelled
Release Chart / release (push) Has been cancelled
The test e2e were not working on April 1st
because of the easter egg that changes
the document emoji to a fish.
2026-04-17 16:08:07 +02:00
virgile-deville
30ed563be4
📝(contributing.md) fix typos
Some checks failed
Update crowdin sources / install-dependencies (push) Has been cancelled
Update crowdin sources / synchronize-with-crowdin (push) Has been cancelled
Docker Hub Workflow / build-and-push-backend (push) Has been cancelled
Docker Hub Workflow / build-and-push-frontend (push) Has been cancelled
Docker Hub Workflow / build-and-push-y-provider (push) Has been cancelled
Docker Hub Workflow / notify-argocd (push) Has been cancelled
Main Workflow / install-dependencies (push) Has been cancelled
Build and Push to GHCR / build-and-push-y-provider (push) Has been cancelled
Build and Push to GHCR / build-and-push-backend (push) Has been cancelled
Build and Push to GHCR / build-and-push-frontend (push) Has been cancelled
Helmfile lint / helmfile-lint (push) Has been cancelled
Frontend Workflow / install-dependencies (push) Has been cancelled
Frontend Workflow / test-front (push) Has been cancelled
Frontend Workflow / lint-front (push) Has been cancelled
Frontend Workflow / test-e2e-chromium (push) Has been cancelled
Frontend Workflow / test-e2e-other-browser (push) Has been cancelled
Frontend Workflow / bundle-size-check (push) Has been cancelled
Frontend Workflow / uikit-theme-checker (push) Has been cancelled
Main Workflow / lint-git (push) Has been cancelled
Main Workflow / check-changelog (push) Has been cancelled
Main Workflow / lint-changelog (push) Has been cancelled
Main Workflow / lint-back (push) Has been cancelled
Main Workflow / lint-spell-mistakes (push) Has been cancelled
Main Workflow / test-back (push) Has been cancelled
So that it doesn't contain mistakes

Signed-off-by: virgile-deville <virgile.deville@beta.gouv.fr>
2026-04-16 13:59:33 +02:00
Cyril
e59d8a4631
️(frontend) make doc search result labels uniquely identifiable
Include each doc's relative update date in `SimpleDocItem` aria-label.
2026-04-15 15:52:53 +02:00
Cyril
9a5d81f983
️(frontend) redirect unmanaged 5xx to dedicated /500 page
Add /500 with coffee illustration; replace inline TextErrors for API 5xx
2026-04-14 17:36:23 +02:00
Cyril
31fea43729
️(frontend) structure 5xx error alerts
Use h1/p for 500/502/503; pass status from doc and version views.
2026-04-14 17:22:13 +02:00
Anthony LC
ff176d67ae
🚨(frontend) add default favicon.ico
We had a warning in the console about a
missing favicon.ico. This commit adds a default
one to prevent that warning.
2026-04-14 15:47:26 +02:00
Anthony LC
7dc7320dac
🚸(frontend) redirect on current url tab after 401
When multiple tabs were opened and a 401 error occurred,
the user was redirected to the login page, then
after login, the user was redirected to the page
where the last 401 error occurred.
We improved this behavior by saving the url per tab,
and after login, the user is redirected to the
last url of the current tab.
2026-04-14 14:48:15 +02:00
Anthony LC
d9334352bb
♻️(CI) factorized E2E tests into a separate workflow
We had to maintains 2 jobs, test-e2e-chromium and
test-e2e-other-browser, in the impress-frontend
workflow.
By factorising the E2E tests into a separate
workflow, we can now maintain only one job for
each browser, which is much simpler and easier
to maintain.
2026-04-13 11:36:23 +02:00
Anthony LC
d68d7ee31d
🐛(CI) add last-failed flag only if last-run is filled
We got cases where the last-run is empty, but the
last-failed flag is set to true. If that happens,
the workflow will fail because the last-run is empty.
We now check if the last-run is filled before
setting the last-failed flag.
2026-04-13 11:36:23 +02:00
renovate[bot]
0060c59615
⬆️(dependencies) update axios to v1.15.0 [SECURITY] 2026-04-13 08:30:36 +00:00
renovate[bot]
48fb17bf3e
⬆️(dependencies) update next to v16.2.3 [SECURITY] 2026-04-11 01:12:58 +00:00
pvrn
e652cdd040
(backend) Order pinned documents by last updated at
Sort favorite_list results by updated_at property descending.
    
Signed-off-by: Paul Vernin <paul.vernin@gmail.com>
2026-04-10 15:15:55 +00:00
Mohamed El Amine BOUKERFA
1ebdda8c9e
🐛(backend) Fix unreachable exception handler for URLValidator
The exception block was never being executed because URLValidator raises
django.core.exceptions.ValidationError, not
drf.exceptions.ValidationError, so the except block was dead code.


Signed-off-by: Mohamed El Amine BOUKERFA <boukerfa.ma@gmail.com>
2026-04-10 13:21:56 +00:00
virgile-deville
d0bf24f368
📝(PR template) add AI checklist
so that we can keep  welcoming external contributions

Signed-off-by: virgile-deville <virgile.deville@beta.gouv.fr>
2026-04-10 14:32:30 +02:00
virgile-deville
2da87baef5
📝(contributing.md) revamp and AI policy
so that we can keep  welcoming external contribution

Signed-off-by: virgile-deville <virgile.deville@beta.gouv.fr>
2026-04-10 14:32:29 +02:00
Sylvain Boissel
3399734a55
🐛(backend) fix race condition in reconciliation requests CSV import
The call to the background task is now wrapped in a on_commit to ensure
that it isn't called before the save is finished, in order to avoid race
condition issues.
2026-04-10 10:46:56 +00:00
Sylvain Boissel
a29b25f82f
🐛(backend) create_for_owner: add accesses before saving doc content
We add the User Accesses before saving content so the user is sure to
have access to the the first version when creating a doc through
create_for_owner (fixes #2123)
2026-04-10 10:20:37 +00:00
Anthony LC
c1e104a686
🐛(frontend) abort check media status unmount
When a media file is uploaded, the application
checks its status every 5 seconds until it
becomes 'ready'. If the user navigates away from
the page before the media is ready, the
application should stop checking the status to
avoid unnecessary API calls. This can be achieved
by using an AbortController to signal when the
component is unmounted, allowing the loop to
exit gracefully.
2026-04-09 11:51:19 +02:00
Anthony LC
21c73fd064
🔖(patch) release 4.8.6
Added:
- 🚸(frontend) allow opening "@page" links with
  ctrl/command/middle-mouse click
-  E2E - Any instance friendly

Changed:
- ♻️(backend) do not paginate threads list response
- 💄(frontend) Use StyledLink for sub doc tree

Fixed:
- 🐛(frontend) Fix drop cursor creating columns
- 🐛 Fixed side effects between comments and versioning
2026-04-09 09:52:00 +02:00
AntoLC
e2d0e7ccc7
🌐(i18n) update translated strings
Update translated files with new translations
2026-04-08 16:56:36 +02:00
Paul Vernin
2ebfa1efbf
💄(frontend) Use StyledLink for sub doc tree
Replace ButtonBox by StyledLink in DocSubPageItem
so ctrl+click on the sub document title open a new browser tab

Signed-off-by: Paul Vernin <paul.vernin@gmail.com>
2026-04-08 16:37:47 +02:00
Anthony LC
b5d9c58761
💄(frontend) replace icons in tree children action
We replace icons with what is used in the ui kit.
By replacing the icons, we also fix the height
problems with Firefox.
2026-04-08 16:15:30 +02:00
Anthony LC
c58deb11e8
🏷️(frontend) adapt thread new type
We stopped to use pagination for thread comments,
so we need to adapt the thread type to reflect that.
2026-04-08 14:04:03 +02:00
Manuel Raynaud
9a1dae4908
♻️(backend) do not paginate threads list response
The threads list action was paginated its response. this is not the
behavior we want. all threads should be loaded when the document is
loaded.
2026-04-08 10:59:36 +02:00
Anthony LC
dba762759e
🐛(frontend) Fixed side effects between comments and versionning
We fixed 2 side effects between comments and versionning:
- When going from a version, it was not possible
to add a comment anymore. This was due to the fact
that the versionning was resetting the comment store.
- When restoring a version, we now reset the comment
store to avoid having comments that are not relevant
anymore.
2026-04-08 09:36:25 +02:00
Anthony LC
563a6d0e08
🐛(frontend) Fix drop cursor creating columns
When dropping content, the drop cursor was creating
new columns. This fix ensures that the
drop cursor behaves correctly and does not
create unnecessary columns.
2026-04-07 18:04:45 +02:00
Anthony LC
52c998ee5f
️(e2e) replay only failed tests when rerunning the test suite
We improved the test suite to only replay failed
tests when rerunning the test suite.
This allows us to focus on fixing the failed
tests without having to wait for the entire
test suite to run again.
We add the Browser in cache to speed up the test
execution and reduce the time it takes to run the tests.
2026-04-07 16:11:18 +02:00
Anthony LC
a01c5f97ca
(e2e) e2e instances compatibility
We want to be able to run our e2e tests on
any instance of Docs, to do so we need to make
some adjustments to our tests and configuration.
We will use environment variables to configure
the tests.
2026-04-07 16:11:18 +02:00
Anthony LC
883d65136a
🔒️(CI) add permissions level on workflow
We add permissions level on workflow to avoid
warning in github action logs.
This is a warning and not an error,
but it is good to have a clean log without warnings.
2026-04-07 14:52:31 +02:00
Emmanuel Pelletier
4dcf752ff9
🚸(frontend) allow opening "interlinks" with ctrl/command/middle mouse
Links to other pages created through the "@" shortcut are not actual
anchor (`<a>`) elements seemingly due to conflicts with lower-lvl
code, noticeably when drag&dropping the elements.

So those "links" are actually span and we must handle the
"link behavior" ourselves.

This adds more usual "link behavior" to thoses, allowing users to
ctrl+click, command+click, shift+click and middle-mouse click to
interact with the links and open them in a new tab or new window.

Signed-off-by: Emmanuel Pelletier <manu@habite.la>
2026-04-07 11:14:01 +02:00
renovate[bot]
be38e68dd5
⬆️(dependencies) update lodash to v4.18.1 [SECURITY] 2026-04-03 18:39:40 +00:00
Manuel Raynaud
63d18e3ad4
🔖(patch) release 4.8.5
Added

- 🔧(backend) settings CONVERSION_UPLOAD_ENABLED to control usage of docspec
- 🥚(frontend) add easter egg on doc emoji creation #2155

Changed

- (frontend) use aria-haspopup menu on DropButton triggers #2126
- ️(frontend) add contextual browser tab titles for docs routes #2120
- ️(frontend) fix empty heading before section titles in HTML export #2125

Fixed

- ️(frontend) add jitter to WS reconnection #2162
- 🐛(frontend) fix tree pagination #2145
- 🐛(nginx) add page reconciliation on nginx #2154
2026-04-03 09:57:23 +02:00
Anthony LC
4aa7d52406
⬆️(frontend) Update blocknote dependencies to 0.47.3
We updated the blocknote dependencies to
version 0.47.3.
This update includes a bug fix when we copy
paste a docx content into a document.
2026-04-03 09:57:23 +02:00
Anthony LC
cf0f3eecbc
🔥(frontend) remove UTM parameters
We decided to remove the UTM parameters.
This change simplifies the link and makes
it cleaner for users to share.
2026-04-03 09:36:51 +02:00
Anthony LC
4b4319d5af
️(frontend) add jitter to WS reconnection
When a massive simultaneous disconnection occurs
(e.g. infra restart), all clients would reconnect
and invalidate their queries at exactly the same
time, causing a possible DB spike.
Adding random jitter spreads these events over a
time window so the load is absorbed gradually.
2026-04-02 11:40:47 +02:00
Manuel Raynaud
8df86e6dc8
♻️(backend) move lock in create_for_owner action in the serializer
For the create_for_owner action, all the db operation are made in the
serializer. But the lock of the table was acquired in the viewsets, lot
of operation are made between the lock is made and the insert in db. We
move the lock operation closer to the insert in the database. We wrap it
in a transaction to release the lock once the commit made.
2026-04-02 09:34:49 +00:00
Anthony LC
756cf82678
🐛(frontend) fix styles in doc editor heading
The headings in the doc editor were not
inheriting the correct style anymore due to a recent
upgrade of Blocknote.
This commit fixes the issue.
2026-03-31 17:08:35 +02:00
Anthony LC
9c832197ed
🔒️(js) fix security warning
Critical;
- fix handlebars CVE
High:
- fix picomatch CVE
- fix flatted CVE
- fix serialize-javascript CVE
- path-to-regexp CVE
Moderate:
- brace-expansion CVE
- yaml CVE
2026-03-31 17:08:35 +02:00
Anthony LC
21af59900d
(frontend) fix eslint errors and warnings
Recent dependencies update caused some
eslint errors and warnings. This commit fixes them.
2026-03-31 17:08:35 +02:00
renovate[bot]
da091a07ea
⬆️(dependencies) update js dependencies 2026-03-31 17:08:35 +02:00
Anthony LC
cd882c8f70
🧑‍💻(nginx) add nginx-frontend
To test easily a build application with nginx,
we add a nginx-frontend to serve the static files
of the application, it will help us to test the
application in a more production-like environment.
2026-03-31 16:14:30 +02:00
Anthony LC
53c51a3cca
🐛(nginx) add page reconciliation on nginx
The nginx conf was lacking the page reconciliation.
It is necessary to have it in place to avoid
404 errors when refreshing the page or accessing
a page directly.
It is a known issue when using the Next Router
in "export" mode, as it relies on client-side routing.
2026-03-31 16:14:30 +02:00
Anthony LC
45fac1e869
🥚(frontend) add easter egg on doc emoji creation
The first April, we add a easter egg on doc
emoji creation. When the user creates a doc emoji
an egg emoji is displayed instead of the page emoji.
2026-03-31 09:40:59 +02:00