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 #8877

Closed
wants to merge 20 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-content-app#3415 is a dependency of this PR

@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-design branch from d27dcae to b3a9fd8 Compare September 4, 2023 11:55
@AnukritiGL AnukritiGL force-pushed the ACS-5551-Property-panel-design branch from c469f14 to 37b8380 Compare September 5, 2023 12:23
@AnukritiGL AnukritiGL changed the title Acs 5551 property panel design AC 5551 property panel design Sep 5, 2023
@AnukritiGL AnukritiGL changed the title AC 5551 property panel design ACS 5551 property panel design Sep 5, 2023
@AnukritiGL AnukritiGL changed the base branch from develop to ACS-5645 September 5, 2023 14:08
@arohilaGL
Copy link
Contributor

Update the title to match the guidelines.

return nodeAspects.indexOf('rule:rules') > -1 || nodeAspects.indexOf('rule:rules') > -1;
}

isALinkFolder(node: Node) {
Copy link
Contributor

Choose a reason for hiding this comment

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

change from isALinkFolder to isLinkFolder() method

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

@AnukritiGL AnukritiGL changed the title ACS 5551 property panel design [ACS 5551] Property Panel Design Sep 6, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.2% 0.2% Duplication

@@ -1,10 +1,12 @@
<label class="adf-property-label"
[ngClass]="{'adf-property-label-not-editable' : !isEditable() && editable}"
Copy link
Contributor

Choose a reason for hiding this comment

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

why there are 2 editable flags that look the same? can you have one check instead?

@@ -2,6 +2,7 @@
<div
[attr.data-automation-id]="'card-select-label-' + property.key"
class="adf-property-label"
[ngClass]="{'adf-property-label-not-editable' : !isEditable() && editable}"
Copy link
Contributor

Choose a reason for hiding this comment

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

2 similar flags that is confusing

@@ -34,7 +68,7 @@ describe('InfoDrawerComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
TranslateModule.forRoot(),
TranslateModule.forRoot(),
Copy link
Contributor

Choose a reason for hiding this comment

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

extra space after coma

});

it('should show info drawer header by default', () => {
fixture.detectChanges();
const title: any = fixture.debugElement.queryAll(By.css('[info-drawer-title]'));
const icon: any = fixture.debugElement.queryAll(By.css('[info-drawer-icon]'));
Copy link
Contributor

Choose a reason for hiding this comment

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

please use proper type instead of "any" here

fixture.detectChanges();
component.showHeader = false;
fixture.detectChanges();
const title: any = fixture.debugElement.queryAll(By.css('[info-drawer-title]'));
const icon: any = fixture.debugElement.queryAll(By.css('[info-drawer-icon]'));
Copy link
Contributor

Choose a reason for hiding this comment

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

missing proper type

margin-bottom: 12px;
}

.acs-details-container {
Copy link
Contributor

Choose a reason for hiding this comment

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

incorrect prefix, should be "app"

@@ -91,7 +91,7 @@
"max-line-length": 240,
"linebreaks": "unix",
"selector-class-pattern": [
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page)",
"^_?(adf|adf-|app|app-|cdk-|example-|demo-|mat-|material-|textLayer|canvasWrapper|page|acs)",
Copy link
Contributor

Choose a reason for hiding this comment

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

please don't introduce new prefixes for no reason

@@ -251,6 +280,27 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
}
}

toggleEditMode(buttonType: ButtonType, group?: CardViewGroup) {
Copy link
Contributor

Choose a reason for hiding this comment

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

you are hardcoding the notion of Tags, Categories, etc in the ADF that has no idea what is that... tags and categories are provided in the App... cc @MichalKinas

LESS_INFO_BUTTON: 'Less information',
ARROW_DOWN: 'keyboard_arrow_down',
ARROW_UP: 'keyboard_arrow_up',
DEFAULT_ASPECT: 'General info',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this rename?

@rbahirsheth
Copy link
Contributor

We are raising new PR hence Closing this PR.

@rbahirsheth rbahirsheth closed this Sep 8, 2023
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.

6 participants