-
Notifications
You must be signed in to change notification settings - Fork 268
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
Conversation
d27dcae
to
b3a9fd8
Compare
c469f14
to
37b8380
Compare
Update the title to match the guidelines. |
return nodeAspects.indexOf('rule:rules') > -1 || nodeAspects.indexOf('rule:rules') > -1; | ||
} | ||
|
||
isALinkFolder(node: 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.
change from isALinkFolder to isLinkFolder() method
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
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
ad130fe
to
a860554
Compare
c23f7f4
to
f24c918
Compare
@@ -1,10 +1,12 @@ | |||
<label class="adf-property-label" | |||
[ngClass]="{'adf-property-label-not-editable' : !isEditable() && editable}" |
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.
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}" |
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.
2 similar flags that is confusing
@@ -34,7 +68,7 @@ describe('InfoDrawerComponent', () => { | |||
beforeEach(() => { | |||
TestBed.configureTestingModule({ | |||
imports: [ | |||
TranslateModule.forRoot(), | |||
TranslateModule.forRoot(), |
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.
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]')); |
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.
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]')); |
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.
missing proper type
margin-bottom: 12px; | ||
} | ||
|
||
.acs-details-container { |
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.
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)", |
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.
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) { |
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.
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', |
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.
Why this rename?
We are raising new PR hence Closing this 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-content-app#3415 is a dependency of this PR