-
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-5645] Added edit button to each property panel #8837
Conversation
51a5f0b
to
a2e2491
Compare
525e189
to
a6d749a
Compare
@Yasa-Nataliya I see a bug with that new design. Earlier when you locked file and then you opened viewer then you could not edit any content inside viewer. Now editing is possible when file is locked. Please have a look at below comparison of new and old design. You can check it on ACA environment. Screen.Recording.2023-08-25.at.12.55.51.movScreen.Recording.2023-08-25.at.12.57.40.mov |
...content-services/src/lib/category/categories-management/categories-management.component.html
Show resolved
Hide resolved
...content-services/src/lib/category/categories-management/categories-management.component.html
Outdated
Show resolved
Hide resolved
lib/content-services/src/lib/category/categories-management/categories-management.component.ts
Show resolved
Hide resolved
...c/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html
Show resolved
Hide resolved
...content-services/src/lib/category/categories-management/categories-management.component.html
Show resolved
Hide resolved
...content-services/src/lib/category/categories-management/categories-management.component.html
Show resolved
Hide resolved
...c/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html
Show resolved
Hide resolved
...c/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html
Show resolved
Hide resolved
...c/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html
Show resolved
Hide resolved
...c/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html
Show resolved
Hide resolved
...c/lib/content-metadata/components/content-metadata-card/content-metadata-card.component.html
Show resolved
Hide resolved
...-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts
Outdated
Show resolved
Hide resolved
2752d70
to
ca39fc3
Compare
This issue is resolved. |
I tested with Firefox, and it's working fine |
} | ||
|
||
hasTags(): boolean { | ||
return this.tags?.length === 0 && !this.editableTags; |
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 logical check... the length === 0 means "has no tags"
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.
we have updated the method name.
} | ||
|
||
hasCategories(): boolean { | ||
return this.categories?.length === 0 && !this.editableCategories; |
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 logical check, length === 0 means "true" but method is called "hasCategories"
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.
we have updated the method name.
Form field styling will come from @AnukritiGL's PR: #8898 |
I added styling according to Figma and did not see any gaps |
Hi @DenysVuika , |
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@DenysVuika FF_issue.webmedge_issue.webmWe are using Ubuntu 20.04.6 LTS OS. |
Closing the PR. We have raised a new 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)
Our current behavior is to have only one edit button which can be used to edit all panels when clicked.
What is the new behaviour?
screen-capture (16).webm
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-5645,
https://alfresco.atlassian.net/browse/ACS-5541,
https://alfresco.atlassian.net/browse/ACS-5574,
https://alfresco.atlassian.net/browse/ACS-5575,
https://alfresco.atlassian.net/browse/ACS-5579.
Based on requirements, we've added some new features:
Edit Icon Button: We've added an 'Edit' icon button on each panel. When click this button on a specific panel, that panel becomes editable, allowing you to make changes to its content.
Save and Discard Icons: Once you click the 'Edit' button and make changes to a panel, you'll notice two new icons within that panel: 'Save' and 'Discard.' The 'Save' icon lets you save the changes you've made, while the 'Discard' icon allows you to abandon any unsaved modifications and revert to the original content.
Improved Styles: We've also worked on the styles of property panel. The tags and category panels now have a more appealing look, tailored to match figma design.
Expansion Indicator: we've added expansion indicators to the panel headers.
Edit Button Functionality for Aspect Panel: We've implemented an 'Edit' button functionality for the Aspect Panel as well. Similar to the other panels, clicking this button will enable you to edit the content within the Aspect Panel.
Improved Panel Visibility: we have made significant improvements to the overall layout. Now, all panels are visible without the need for any additional buttons like 'More Information' or 'Less Information.
Alfresco/alfresco-content-app#3414 was a dependency of this PR
https://github.com/Alfresco/alfresco-applications/pull/360 was a dependency of this PR