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

[ACS-5551] Property Panel Design Update #3415

Closed
wants to merge 62 commits into from

Conversation

AnukritiGL
Copy link
Contributor

@AnukritiGL AnukritiGL commented Sep 1, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

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")

  • Yes
  • No

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

@CLAassistant
Copy link

CLAassistant commented Sep 1, 2023

CLA assistant check
All committers have signed the CLA.

@AnukritiGL AnukritiGL force-pushed the ACS-5551-Property-panel-style branch 2 times, most recently from 8403af5 to 8d8a5a2 Compare September 5, 2023 11:18
@AnukritiGL AnukritiGL force-pushed the ACS-5551-Property-panel-style branch from c02b280 to d816736 Compare September 5, 2023 14:37
@AnukritiGL AnukritiGL changed the title [ACS-5551] property panel design update [ACS-5551] Property Panel Design Update Sep 6, 2023
@AnukritiGL AnukritiGL force-pushed the ACS-5551-Property-panel-style branch from 8c7fb0c to 1bcc083 Compare September 6, 2023 15:13
@rbahirsheth rbahirsheth marked this pull request as ready for review September 7, 2023 06:45
@@ -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>
Copy link
Contributor

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?

Copy link
Contributor Author

@AnukritiGL AnukritiGL Sep 15, 2023

Choose a reason for hiding this comment

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

We need to display the node icon alongside the name, so I've incorporated that into the design.
image

Additionally, I've now updated the name to "nodeIcon."

-
<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) }}">
Copy link
Contributor

Choose a reason for hiding this comment

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

alt is not translated

Copy link
Contributor Author

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 {
Copy link
Contributor

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?

Copy link
Contributor Author

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);
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added missing checks

@AnukritiGL AnukritiGL force-pushed the ACS-5551-Property-panel-style branch from 825bebb to 958b307 Compare October 12, 2023 06:57
@AnukritiGL AnukritiGL changed the base branch from ACS-5540 to develop October 12, 2023 07:22
@rbahirsheth
Copy link
Contributor

Closing the PR as we have another active PR.

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.

9 participants