-
Notifications
You must be signed in to change notification settings - Fork 66
WEBUI-1935: WEBUI REBRANDING USING SATORI ASSETS [LTS-2023] #2990
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
Open
naveen-konda
wants to merge
51
commits into
maintenance-3.1.x
Choose a base branch
from
WEBUI-1935-POC-REBRANDING
base: maintenance-3.1.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
6bc39d6
WEBUI-1935: Remove satori theme and use nuxeo default theme.
naveen-konda 87644a1
WEBUI-1935: Address a11y issue
naveen-konda 170c151
WEBUI-1935: Update ftest selector for profile button in drawer.js
naveen-konda 4bd866c
WEBUI-1935 : UPDATE ICON LOGIC TO USE NEW SATORI ICONS AND REMOVE HAR…
naveen-konda c60b1e0
ADDED MISSING TABINDEX ID
naveen-konda 8e29be8
WEBUI-1935: ENABLE WORKFLOW CHECKS
naveen-konda 2e29e19
WEBUI-1961: DOCUMENT LIST & VIEW PAGE REBRANDING (#2985)
naveen-konda a869df0
WEBUI-1961: Enhance document create button styling and functionality
naveen-konda 8adb172
Update font family
naveen-konda 9cb51d1
Merge maintenance-3.1.x into WEBUI-1935-POC-REBRANDING
naveen-konda 77dc2fd
Merge branch 'WEBUI-1935-POC-REBRANDING' of https://github.com/nuxeo/…
naveen-konda a79f148
Remove redundant pull_request_target section from a11y and ftest work…
naveen-konda e4b610e
Potential fix for pull request finding
naveen-konda 746d721
Remove unnecessary margin
naveen-konda b880b4b
Potential fix for pull request finding
naveen-konda 701ba5a
WEBUI:1935 - Add Figtree and Noto Sans font families; update theme st…
naveen-konda ecef79a
Remove borders on side nav
naveen-konda 899280d
WEBUI-1935: Update border-radius for selected node in document tree.
naveen-konda 101b148
WebUI-1935: Address copilot suggestions
naveen-konda 9a1ac7d
Reomove main build on rebranding feature
naveen-konda 50a0531
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda b912d04
webui-1935: Remove Autonavigation to profile page on click of user pr…
naveen-konda 7e35e7b
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda cc13bcf
WEBUI-1935: FIX THE SIDENAV SCROLLING ISSUE
naveen-konda 1fbcb9d
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda 0e34fe4
Fix prettoer issues
naveen-konda 65163a8
Fix lint issue
naveen-konda edd09e0
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda ce62dab
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda 5530b58
Remove unused font asset
naveen-konda 739dc06
refactor: update styles and themes for Nuxeo components
naveen-konda 133e5ac
Fix sonar cloud issues
naveen-konda 5fc7a30
Add new tests to increase coverage to 90%
naveen-konda dcbeac1
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda 2562c71
WEBUI-2048: Remove Kawai and Light Themes from Codebase
naveen-konda df67347
refactor: update styles for Nuxeo components and themes
naveen-konda 3732d62
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda f70cb6c
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda b84fde2
Implement drawer toggle functionality
naveen-konda 93f6fb9
Fix sonar cloud issues
naveen-konda 6f59abd
Update satori variable names
naveen-konda 5fdc69b
refactor: update theme colors and variables for consistency
naveen-konda fcdcd5a
refactor: enhance hover and focus styles for menu items
naveen-konda 088b241
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda 45df335
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda f1fbd42
Merge branch 'WEBUI-1935-POC-REBRANDING' of https://github.com/nuxeo/…
naveen-konda 62a8a34
test: Enhance keyboard navigation tests for logo menu
naveen-konda ec48e0e
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda c858b51
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda 4f2019b
Add sonar check on LTS 2023 Rebranding PR's
naveen-konda c6c7416
Merge branch 'maintenance-3.1.x' into WEBUI-1935-POC-REBRANDING
naveen-konda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,6 +116,62 @@ Polymer({ | |
| } | ||
| } | ||
|
|
||
| /* Profile avatar with initials */ | ||
| .profile-avatar { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| color: var(--nuxeo-sidebar-menu); | ||
| padding: 12px 13px; | ||
| width: var(--nuxeo-sidebar-width); | ||
| cursor: pointer; | ||
| background: transparent; | ||
| border: none; | ||
| outline: none; | ||
| text-decoration: none; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .profile-avatar:hover { | ||
| background: rgba(0, 0, 0, 0.2); | ||
| color: var(--nuxeo-sidebar-menu-hover); | ||
| } | ||
|
|
||
| :host([sidebar-expanded]) .profile-avatar:hover, | ||
| .profile-avatar.selected { | ||
| background: rgba(0, 0, 0, 0.2); | ||
| color: var(--nuxeo-sidebar-menu-hover); | ||
| } | ||
|
|
||
| .profile-initials { | ||
| width: 32px; | ||
| height: 32px; | ||
| border-radius: 50%; | ||
| background: var(--sat-profile-avatar-bg); | ||
| color: var(--nuxeo-sidebar-menu); | ||
| border: none; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-size: 14px; | ||
| font-weight: 600; | ||
| text-transform: uppercase; | ||
| letter-spacing: 0; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .profile-avatar-image { | ||
| width: 32px; | ||
| height: 32px; | ||
| border-radius: 50%; | ||
| object-fit: cover; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .profile-avatar-label { | ||
| display: none; | ||
| } | ||
|
|
||
| /* Layout base */ | ||
| app-drawer-layout { | ||
| display: flex; | ||
|
|
@@ -263,7 +319,7 @@ Polymer({ | |
| width: calc(100% - var(--nuxeo-sidebar-width)); | ||
| height: calc(100vh - (var(--nuxeo-app-top, 0) + var(--nuxeo-app-bottom, 0))); | ||
| margin-left: var(--nuxeo-sidebar-width); | ||
| background-color: var(--nuxeo-drawer-background); | ||
| background-color: var(--sat-drawer-content-background, var(--nuxeo-drawer-background)); | ||
| } | ||
|
|
||
| :host([dir='rtl']) #drawer iron-pages { | ||
|
|
@@ -303,7 +359,14 @@ Polymer({ | |
| top: 5px; | ||
| left: 6px; | ||
| z-index: 99; | ||
| background-color: var(--nuxeo-drawer-background); | ||
| background-color: var(--sat-drawer-toggle-bg, var(--nuxeo-drawer-background)); | ||
| } | ||
|
|
||
| .header h5 { | ||
| font-weight: var(--sat-home-header-font-weight); | ||
| font-size: var(--sat-home-header-font-size); | ||
| color: var(--sat-home-header-color, var(--nuxeo-drawer-text)); | ||
| font-family: var(--sat-font-family-primary); | ||
| } | ||
|
|
||
| #drawerToggle svg, | ||
|
|
@@ -448,18 +511,38 @@ Polymer({ | |
| <nuxeo-slot name="DRAWER_ITEMS" model="[[actionContext]]"></nuxeo-slot> | ||
| <nuxeo-menu-icon | ||
| name="administration" | ||
| icon="nuxeo:admin" | ||
| label="app.administration" | ||
| class="settings" | ||
| hidden$="[[!hasAdministrationPermissions(currentUser)]]" | ||
| icon="nuxeo:admin" | ||
| ></nuxeo-menu-icon> | ||
| <nuxeo-menu-icon | ||
| <a | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nuxeo-menu-icon usage is being removed ? |
||
| name="profile" | ||
| src="[[currentUser.contextParameters.userprofile.avatar.data]]" | ||
| icon="nuxeo:user-settings" | ||
| label="app.account" | ||
| class="settings" | ||
| ></nuxeo-menu-icon> | ||
| class="settings profile-avatar" | ||
| href="[[urlFor('page', 'profile')]]" | ||
| id="profileWrapper" | ||
| role="option" | ||
| > | ||
| <template is="dom-if" if="[[currentUser.contextParameters.userprofile.avatar.data]]"> | ||
| <img | ||
| class="profile-avatar-image" | ||
| src="[[currentUser.contextParameters.userprofile.avatar.data]]" | ||
| alt="[[_displayUser(currentUser)]]" | ||
| /> | ||
| </template> | ||
| <template is="dom-if" if="[[!currentUser.contextParameters.userprofile.avatar.data]]"> | ||
| <span class="profile-initials">[[_userInitials(currentUser)]]</span> | ||
| </template> | ||
| </a> | ||
| <nuxeo-tooltip | ||
| for="profileWrapper" | ||
| position="right" | ||
| offset="0" | ||
| animation-delay="0" | ||
| id="profileTooltip" | ||
| tabindex="-1" | ||
| >[[i18n('app.account')]]</nuxeo-tooltip | ||
| > | ||
| </paper-listbox> | ||
|
|
||
|
naveen-konda marked this conversation as resolved.
Outdated
|
||
| <!-- drawer content --> | ||
|
|
@@ -1152,7 +1235,46 @@ Polymer({ | |
| }, | ||
|
|
||
| _logo(baseUrl) { | ||
| return `${baseUrl}themes/${localStorage.getItem('theme') || 'default'}/logo.png`; | ||
| return `${baseUrl}themes/${localStorage.getItem('theme') || 'default'}/logo.svg`; | ||
| }, | ||
|
|
||
| _userInitials(user) { | ||
| if (!user) { | ||
| return ''; | ||
| } | ||
| const firstName = user.properties && user.properties.firstName ? user.properties.firstName.trim() : ''; | ||
| const lastName = user.properties && user.properties.lastName ? user.properties.lastName.trim() : ''; | ||
|
|
||
| // Case 1: Both first and last name - use first letter of each | ||
| if (firstName && lastName) { | ||
| return (firstName.charAt(0) + lastName.charAt(0)).toUpperCase(); | ||
| } | ||
|
|
||
| // Case 2: Only first name with 2+ characters - use first two | ||
| if (firstName && firstName.length >= 2) { | ||
| return firstName.substring(0, 2).toUpperCase(); | ||
| } | ||
|
|
||
| // Case 3: Only first name with 1 character | ||
| if (firstName) { | ||
| return firstName.charAt(0).toUpperCase(); | ||
| } | ||
|
|
||
| // Case 4: Only last name | ||
| if (lastName && lastName.length >= 2) { | ||
| return lastName.substring(0, 2).toUpperCase(); | ||
| } | ||
|
|
||
| if (lastName) { | ||
| return lastName.charAt(0).toUpperCase(); | ||
| } | ||
|
|
||
| // Fallback to user id first two characters | ||
| if (user.id) { | ||
| return user.id.substring(0, 2).toUpperCase(); | ||
| } | ||
|
|
||
| return '??'; | ||
| }, | ||
|
|
||
| showHome(e) { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.