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

Display entity improvements #1370

Merged
merged 8 commits into from
Jul 19, 2022
Merged

Conversation

TheSlimvReal
Copy link
Collaborator

The usage of the ChildBlockComponent, SchoolBlockComponent and DisplayEntityComponent currently leads to inconsistent behavior for things that look the same. Sometimes there is a hover, sometimes the cursor becomes a pointer, sometimes it's clickable.

The approach here is to generally use the DisplayEntityComponent and also let it handle the click, hover and pointer logic.
The ...Block components are only dynamically inserted based on the entity which is displayed.

Visible/Frontend Changes

  • All shown entities-blocks have the same click, hover and pointer behavior - if not disabled

Architectural/Backend Changes

  • Renamed routes /users and /users/:id to /user and /user/:id to be consistent with other entity types. MIGRATION REQUIRED

@github-actions
Copy link
Contributor

Copy link
Member

@sleidig sleidig left a comment

Choose a reason for hiding this comment

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

Nice generalization

@@ -1,4 +1,7 @@
<span [ngClass]="{ clickable: !linkDisabled }">
<div
Copy link
Member

Choose a reason for hiding this comment

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

I think this was "" for a reason - otherwise it can't be displayed inline properly, which we do at some occasions? Admittedly, I didn't find any UI issue in the PR deployment now, so maybe this is not relevant any more. But I do remember I explicitly changed this to span a while back.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess the recent style improvements made this not required any more

@sonarqubecloud
Copy link

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.0% 0.0% Duplication

@TheSlimvReal TheSlimvReal merged commit 27542ad into master Jul 19, 2022
@TheSlimvReal TheSlimvReal deleted the display-entity-improvements branch July 19, 2022 09:41
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.8.3-master.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.8.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants