Skip to content
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

feat(editor): Main navigation redesign #4144

Merged
merged 39 commits into from
Sep 26, 2022

Conversation

MiloradFilipovic
Copy link
Contributor

Closes N8N-4556

* ✨ Implemented new editor layout using css grid

* ✨ Reworking main navigation layout, migrating some styling to css modules

* ✨ Reworking main sidebar layout and responsiveness

* 💄 Minor type update

* ✨ Updated editor grid layout so empty cells are collapsed (`fit-content`), fixed updates menu items styling

* ✨ Implemented new user area look & feel in main sidebar

* 💄 Adjusting sidebar bottom padding when user area is not shown

* 💄 CSS cleanup/refactor + minor vue refactoring

* ✨ Fixing overscoll issue in chrome and scrolling behaviour of the content view

* 👌 Addressing review feedback

* ✨ Added collapsed and expanded versions of n8n logo

* ✨ Updating infinite scrolling in templates view to work with the new layout

* 💄 Updating main sidebar expanded width and templates view left margin

* 💄 Updating main content height

* 💄 Adding global styles for scrollable views with centered content, minor updates to user area

* ✨ Updating zoomToFit logic, lasso select box position and new nodes positioning

* ✨ Fixing new node drop position now that mouse detection has been adjusted

* 👌 Updating templates view scroll to top logic and responsive padding, aligning menu items titles

* 💄 Moving template layout style from global css class to component level
@MiloradFilipovic MiloradFilipovic self-assigned this Sep 20, 2022
@MiloradFilipovic MiloradFilipovic added the ui Enhancement in /editor-ui or /design-system label Sep 20, 2022
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Sep 20, 2022
packages/editor-ui/src/plugins/icons.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/components/mixins/mouseSelect.ts Outdated Show resolved Hide resolved
packages/editor-ui/src/App.vue Outdated Show resolved Hide resolved
packages/editor-ui/src/App.vue Show resolved Hide resolved
packages/editor-ui/src/components/SettingsSidebar.vue Outdated Show resolved Hide resolved
packages/editor-ui/src/components/ActionDropdown.vue Outdated Show resolved Hide resolved
packages/editor-ui/src/components/ActionDropdown.vue Outdated Show resolved Hide resolved
packages/editor-ui/src/components/ActionDropdown.vue Outdated Show resolved Hide resolved
packages/editor-ui/src/components/SettingsSidebar.vue Outdated Show resolved Hide resolved
Comment on lines 161 to 162
.usersMenu svg:global(.svg-inline--fa) { left: -2px; }
.apiMenu svg:global(.svg-inline--fa) { left: 2px; }
Copy link
Contributor

Choose a reason for hiding this comment

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

could these be global changes? could we update global theme or else put this behind a prop?

Copy link
Contributor Author

@MiloradFilipovic MiloradFilipovic Sep 26, 2022

Choose a reason for hiding this comment

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

Those area fine tunnings that are specific to each icon to keep them aligned so I am not sure they should be a prop. But I could get rid of the global selectors perhaps by targeting and svg elements without class.

Copy link
Contributor

Choose a reason for hiding this comment

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

ideally we should not have to do these tweaks.. I mean what if an embeder wants to replace all our icons.. our components should work without this

Copy link
Contributor

Choose a reason for hiding this comment

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

but that's only in an ideal world 😊

Copy link
Contributor Author

@MiloradFilipovic MiloradFilipovic Sep 26, 2022

Choose a reason for hiding this comment

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

Agree 100%. Here, for example, icons are aligned without any tweaks. So really looking forward to getting it done and merged.

packages/editor-ui/src/components/SettingsSidebar.vue Outdated Show resolved Hide resolved
@MiloradFilipovic MiloradFilipovic merged commit 3db53a1 into master Sep 26, 2022
@MiloradFilipovic MiloradFilipovic deleted the feature-main-nav-redesign branch September 26, 2022 13:25
@n8n-assistant n8n-assistant bot added the Upcoming Release Will be part of the upcoming release label Sep 26, 2022
@janober
Copy link
Member

janober commented Sep 30, 2022

Got released with n8n@0.196.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Sep 30, 2022
valya pushed a commit to valya/n8n that referenced this pull request Nov 8, 2022
* refactor(editor): N8N-4540 Main navigation layout rework (n8n-io#4060)

* ✨ Implemented new editor layout using css grid

* ✨ Reworking main navigation layout, migrating some styling to css modules

* ✨ Reworking main sidebar layout and responsiveness

* 💄 Minor type update

* ✨ Updated editor grid layout so empty cells are collapsed (`fit-content`), fixed updates menu items styling

* ✨ Implemented new user area look & feel in main sidebar

* 💄 Adjusting sidebar bottom padding when user area is not shown

* 💄 CSS cleanup/refactor + minor vue refactoring

* ✨ Fixing overscoll issue in chrome and scrolling behaviour of the content view

* 👌 Addressing review feedback

* ✨ Added collapsed and expanded versions of n8n logo

* ✨ Updating infinite scrolling in templates view to work with the new layout

* 💄 Updating main sidebar expanded width and templates view left margin

* 💄 Updating main content height

* 💄 Adding global styles for scrollable views with centered content, minor updates to user area

* ✨ Updating zoomToFit logic, lasso select box position and new nodes positioning

* ✨ Fixing new node drop position now that mouse detection has been adjusted

* 👌 Updating templates view scroll to top logic and responsive padding, aligning menu items titles

* 💄 Moving template layout style from global css class to component level

* ✨ Moved 'Workflows'  menu to node view header. Added new dropdown component for user area and the new WF menu

* 💄 Updating disabled states in new WF menu

* 💄 Initial stab at new sidebar styling

* ✨ Finished main navigation restyling

* ✨ Updating `zoomToFit` and centering logic

* ✨ Adding updates menu item to settings sidebar

* 💄 Adding updates item to the settings sidebar and final touches on main sidebar style

* 💄 Removing old code & refactoring

* 💄 Minor CSS tweaks

* 💄 Opening credentials modal on sidebar menu item click. Minor CSS updates

* 💄 Updating sidebar expand/collapse animation

* 💄 Few more refinements of sidebar animation

* 👌 Addressing code review comments

* ✨ Moved ActionDropdown component to design system

* 👌 Fixing bugs reported during code review and testing

* 👌 Addressing design review comments for the new sidebar

* ✔️ Updating `N8nActionDropdown` component tests

* ✨ Remembering scroll position when going back to templates list

* ✨ Updating zoomToFit logic to account for footer content

* 👌 Addressing latest sidebar review comments

* 👌 Addressing main sidebar product review comments

* 💄 Updating css variable names after vite merge

* ✔️ Fixing linting errors in the design system

* ✔️ Fixing `element-ui` type import

* 👌 Addressing the code review comments.

* ✨ Adding link to new credentials view, removed old modal

* 💄 Updating credentials view responsiveness and route highlight handling

* 💄 Adding highlight to workflows submenu when on new workflow page

* 💄 Updated active submenu text color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants