-
Notifications
You must be signed in to change notification settings - Fork 149
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
[ACS-5551] Property Panel Design Update #3415
Conversation
8403af5
to
8d8a5a2
Compare
c02b280
to
d816736
Compare
projects/aca-content/src/lib/components/details/details.component.html
Outdated
Show resolved
Hide resolved
projects/aca-content/src/lib/components/details/details.component.html
Outdated
Show resolved
Hide resolved
projects/aca-content/src/lib/components/details/details.component.html
Outdated
Show resolved
Hide resolved
projects/aca-content/src/lib/components/details/details.component.spec.ts
Outdated
Show resolved
Hide resolved
projects/aca-content/src/lib/components/details/details.component.ts
Outdated
Show resolved
Hide resolved
4c79368
to
735db84
Compare
8c7fb0c
to
1bcc083
Compare
@@ -2,11 +2,11 @@ | |||
<mat-progress-bar mode="indeterminate" [attr.aria-label]="'APP.INFO_DRAWER.DATA_LOADING' | translate"></mat-progress-bar> | |||
</div> | |||
<ng-container *ngIf="!isLoading && !!displayNode"> | |||
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE'" cdkTrapFocus cdkTrapFocusAutoCapture> | |||
<adf-info-drawer [drawerIcon]="node.entry" [title]="node?.entry ? node.entry.name : 'APP.INFO_DRAWER.TITLE'" cdkTrapFocus cdkTrapFocusAutoCapture> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is drawerIcon
and why it requires node.entry
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- | ||
<span class="acs-details-breadcrumb-item">{{ 'APP.INFO_DRAWER.TITLE' | translate }}</span> | ||
<span class="acs-details-breadcrumb-library"> | ||
<img class="acs-details-breadcrumb-icon" alt="Info Drawer icon" src="{{ getInfoDrawerIcon(node) }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alt is not translated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added translation.
@@ -563,6 +563,47 @@ export class NodeActionsService { | |||
return null; | |||
} | |||
|
|||
getInfoDrawerIcon(node: Node): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be just 'getNodeIcon' ? why this service has a knowledge of the info drawer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the name
} | ||
|
||
isSmartFolder(node: Node): boolean { | ||
const nodeAspects = this.getNodeAspectNames(node); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafe code, missing null checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added missing checks
825bebb
to
958b307
Compare
…fresco/alfresco-content-app into ACS-5551-Property-panel-style
…fresco/alfresco-content-app into ACS-5551-Property-panel-style
Closing the PR as we have another active PR. |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
The design of the Property Panel appears outdated, and the title in the InfoDrawer is generic, labeled as "Details."
What is the new behaviour?
The Property Panel design has been revamped for both small and large screens. Additionally, the InfoDrawer now displays file titles with accompanying icons instead of the generic label "Details."
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:
https://alfresco.atlassian.net/browse/ACS-5551
Based on requirements, updated the below points:
Title and Icon in property Panel: In the collapsed and expanded mode now displays file titles with accompanying icons instead of the generic label "Details."
Edit and Clear Button: As per design edit and clear button has been removed from the property panel fields.
Improved Styles: Worked on the styles of property panel. Panels now have a more appealing look, tailored to match figma design.
Alfresco/alfresco-ng2-components#8898 is a dependency of this PR
property-panel-design.webm