Skip to content

Feature/new UI drive #3340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Mar 28, 2025
Merged

Feature/new UI drive #3340

merged 14 commits into from
Mar 28, 2025

Conversation

lenhanphung
Copy link
Contributor

Key Changes

  1. Improved File List Header Interface

Updated header design for both desktop and mobile versions
Refined header cell styling for better display
Enhanced user experience with the new interface

  1. Added ViewSwitcher Component

Created a new ViewSwitcher component allowing users to toggle between view modes
Integrated the component into the Toolbar and Drive folder view
Added English and French translations for the new feature

  1. Relocated AddButton from Toolbar to Sidebar

Restructured the add button position to improve usability
Updated related layout components to accommodate the new position
Updated all translations in supported languages

  1. Move Trash button from Files List to Sidebar

Copy link
Contributor

@JF-Cozy JF-Cozy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean, clear, explicit, and pleasant PR to review, well done, good job! 😄 🎉

About the commit message, if you modify UX somehow, it's not a refactor but a feat. Fix are used if you fixed something from previous release only. There is not such thing as style.

return (
<LayoutUI>
<BarComponent searchOptions={{ enabled: true }} disableInternalStore />
<FlagSwitcher />
<Sidebar className="u-flex-justify-between">
{folderId ? (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be careful the all modification on this commit is not behind a isTwakeTheme()... Maybe it's not a big deal, I suggest you to ask @poupotte (Zoé), maybe it's ok to do the modification on Cozy side too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@poupotte can you help me leave some cmt? or what is your twake chat ID?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@poupotte told me : let's go

label="trash"
rx={/\/trash(\/.*)?/}
clickState={clickState}
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we "recently" did the strict opposite of this commit. Did you knew ? Maybe this way is the right way to do it, maybe we missed something, I let you judge on that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous work is here a4a1ab1 and b621c45

It seems okay because there is still the trash for nextcloud drives inside nextcloud folders. So now we will have :

  • a central trash that concerns "our drive"
  • trash inside nextcloud folders that concern nextcloud folders

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CircleButton is not meant to be used like this... but if the result is as expected, why not! FYI you have some circle button example in https://docs.cozy.io/cozy-ui/react/#/Buttons chapter "Icons"

Update both desktop and mobile versions of file header
Modify header cell styling to enhance user experience
Create new ViewSwitcher component for toggling between view modes
Integrate component into Toolbar and Drive folder view
Add translations for the new component in English and French
Fix conflicts between branches and ensure code consistency
Relocated trash functionality from the files list to the sidebar navigation for better user experience and cleaner file view
Improved mobile experience by updating the add menu button across multiple components and adding necessary translations
Update 3-dots action buttons appearance with rounded hover style next to share button and in table action column
Add missing translations for SelectionBar component across multiple languages
Shortened text labels in mobile version for better UI/UX in limited screen space
Apply PR feedback: use isTwakeTheme directly, rename class to fil-content-header--capitalize, fix object formatting, use hook provider for thumbnail controls
Implement changes requested in PR: replace refactor with feat type, use isTwakeTheme() directly, rename u-capitalize to fil-content-header--capitalize, fix object formatting, use hook provider for thumbnail controls instead of props
Resolve code style and formatting issues flagged by linter
Replace direct t prop passing with useI18n() hook in makeComponent function for better code organization
@lenhanphung lenhanphung force-pushed the feature/new-ui-drive branch from 1d218dd to 6022561 Compare March 28, 2025 10:01
by removing failing on console
Copy link

bundlemon bot commented Mar 28, 2025

BundleMon

Files updated (7)
Status Path Size Limits
static/js/cozy.(hash).js
896.79KB (+1.13KB +0.13%) -
static/js/(chunkId).(hash).js
1.05MB (+1.04KB +0.1%) -
public/static/js/cozy.(hash).js
760.59KB (+770B +0.1%) -
static/js/main.(hash).js
126.18KB (+734B +0.57%) -
public/static/js/public.(hash).js
97.53KB (+289B +0.29%) -
public/static/css/public.(hash).css
6.27KB (+22B +0.34%) -
static/css/main.(hash).css
16.72KB (+21B +0.12%) -
Unchanged files (14)
Status Path Size Limits
public/static/js/(chunkId).(hash).js
851.17KB -
(hash).js
337.62KB -
public/(hash).js
337.62KB -
services/qualificationMigration.js
271.6KB -
services/dacc.js
254.54KB -
public/static/js/lib-react.(hash).js
39.37KB -
static/js/lib-react.(hash).js
39.37KB -
public/static/css/cozy.(hash).css
34.58KB -
static/css/cozy.(hash).css
34.58KB -
public/static/js/lib-router.(hash).js
22.05KB -
static/js/lib-router.(hash).js
22.05KB -
manifest.webapp
1.91KB -
index.html
688B -
assets/manifest.json
185B -

Total files change +3.96KB +0.08%

Groups updated (2)
Status Path Size Limits
**/*.js
6.67MB (+4.83KB +0.07%) -
**/*.css
132.95KB (+73B +0.05%) -
Unchanged groups (1)
Status Path Size Limits
**/*.{png,svg,ico}
2.19MB -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@lenhanphung lenhanphung merged commit 7dd3a96 into master Mar 28, 2025
4 checks passed
@lenhanphung lenhanphung deleted the feature/new-ui-drive branch March 28, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants