Skip to content

♻️ Move doc action buttons to fix toolbar#2360

Open
AntoLC wants to merge 5 commits into
mainfrom
feat/floating-icons
Open

♻️ Move doc action buttons to fix toolbar#2360
AntoLC wants to merge 5 commits into
mainfrom
feat/floating-icons

Conversation

@AntoLC
Copy link
Copy Markdown
Collaborator

@AntoLC AntoLC commented May 27, 2026

Purpose

When a doc is long, we need to scroll all the way up to get access to the sharing / download and ... menu.
We now moved all these action buttons to a fix toolbar.

Demo

Enregistrement.2026-05-28.171346.mp4

@AntoLC AntoLC self-assigned this May 27, 2026
@AntoLC AntoLC added frontend feature add a new feature refacto labels May 27, 2026
@AntoLC AntoLC changed the base branch from main to feat/comment-side-panel May 27, 2026 14:28
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Size Change: +1.48 kB (+0.03%)

Total Size: 4.32 MB

📦 View Changed
Filename Size Change
apps/impress/out/_next/static/bee0a635/_buildManifest.js 0 B -656 B (removed) 🏆
apps/impress/out/_next/static/chunks/6990.js 54.7 kB +1.48 kB (+2.78%)
apps/impress/out/_next/static/css/20f860381852d52f.css 54.4 kB +54.4 kB (new file) 🆕
apps/impress/out/_next/static/css/69aebafa68be8afe.css 0 B -54.4 kB (removed) 🏆
apps/impress/out/_next/static/f7f4e428/_buildManifest.js 655 B +655 B (new file) 🆕

compressed-size-action

@AntoLC AntoLC force-pushed the feat/comment-side-panel branch from 7d4748a to e85e7d6 Compare May 27, 2026 15:03
Base automatically changed from feat/comment-side-panel to main May 27, 2026 15:25
@AntoLC AntoLC force-pushed the feat/floating-icons branch from 04224a1 to 65e44fc Compare May 28, 2026 14:50
@AntoLC AntoLC changed the title Feat/floating icons ♻️ Move doc action buttons to fix toolbar May 28, 2026
@AntoLC AntoLC linked an issue May 28, 2026 that may be closed by this pull request
@AntoLC AntoLC added the preview label May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Preview will be available at https://2360-docs.ppr-docs.beta.numerique.gouv.fr/

You can use the existing account with these credentials:

  • username: docs
  • password: docs

You can also create a new account if you want to.

Once this Pull Request is merged, the preview will be destroyed.

@AntoLC AntoLC force-pushed the feat/floating-icons branch 5 times, most recently from ba34365 to 9e11739 Compare May 29, 2026 10:56
AntoLC added 5 commits May 29, 2026 14:17
We are modifying the doc header, we are moving elements
to a floating bar. In this case, we are moving the
Button Share to the floating bar.
We remove the AlertPublic component and replace it
with a new visibility status in the DocHeaderInfo
component. This change simplifies the user interface
by providing a more direct indication of the
document's visibility status, whether it's public
or internal, without needing an additional alert
component.
We are modifying the doc header, we are moving elements
to a floating bar. In this case, we are moving the
doc toolbox to the floating bar.
We adapted the toolbox with the updated actions.
We update the doc header to use all empty space.
We moved the emoji part from the toolbox directly
to the header.
Add wrapper to catch focus.
Benefit:
- The tooltip will show exactly in the middle of
  the title input text
- When the user is click on the right side of the
  doc title, the title get the focus and the cursor,
  which is the expected behavior when editing a title.
The icon in the left panel header was updated to
match the new design.
@AntoLC AntoLC force-pushed the feat/floating-icons branch from 9e11739 to 15bcac1 Compare May 29, 2026 12:18
@AntoLC AntoLC marked this pull request as ready for review May 29, 2026 12:49
@AntoLC AntoLC requested a review from Ovgodd May 29, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a fixed top bar or a back to top icon

1 participant