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

feat: add configurable subtitle and explanation inputs #2656

Merged
merged 19 commits into from
Nov 14, 2024

Conversation

sadaf895
Copy link
Contributor

closes: #2594

- Added `subtitle` and `explanation` as configurable inputs for the `EntityCountDashboard` component
- Updated template to display `subtitle` and `explanation` from the configuration, falling back to defaults if not provided
- Modified widget configuration to support customizable subtitles and explanations for enhanced clarity
@sadaf895
Copy link
Contributor Author

@sleidig Can you please tell me what will be my further step?

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.

Looks good so far!

(Did you test it without the config-fix change also, to see that the default logic still works correctly?)

For the other widgets we'll have to do the exact same thing, adding those two Input properties. I discussed with Tom but we didn't see a way to nicely generalize that

…et/entity-count-dashboard/entity-count-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
@sadaf895
Copy link
Contributor Author

Looks good so far!

(Did you test it without the config-fix change also, to see that the default logic still works correctly?)

For the other widgets we'll have to do the exact same thing, adding those two Input properties. I discussed with Tom but we didn't see a way to nicely generalize that

Looks good so far!

(Did you test it without the config-fix change also, to see that the default logic still works correctly?)

For the other widgets we'll have to do the exact same thing, adding those two Input properties. I discussed with Tom but we didn't see a way to nicely generalize that

Yes, I have tested it the default logic is working without the config-fix change.

@sadaf895 sadaf895 marked this pull request as ready for review November 12, 2024 15:15
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.

Functionality looks good! I have suggested some small adjustments to the exact texts for users.

(please move those to the changed translation/default code as explained above)

sadaf895 and others added 4 commits November 13, 2024 13:45
…tes-dashboard/important-notes-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…et/entity-count-dashboard/entity-count-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…rogress-dashboard/progress-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
@sadaf895
Copy link
Contributor Author

@sleidig Please review the updated code.

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.

A few more glitches.

I have reset the config-fix so that we see the default values from the components. Please do a final check viewing the app and look at my final comments.

sadaf895 and others added 8 commits November 13, 2024 19:15
…tes-dashboard/important-notes-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…hortcut-dashboard/shortcut-dashboard.component.ts

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…hortcut-dashboard/shortcut-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…et/entity-count-dashboard/entity-count-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…et/entity-count-dashboard/entity-count-dashboard.component.ts

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…irthday-dashboard/birthday-dashboard.component.html

Co-authored-by: Sebastian <sebastian@aam-digital.com>
…tes-dashboard/important-notes-dashboard.component.ts

Co-authored-by: Sebastian <sebastian@aam-digital.com>
@sleidig sleidig merged commit 123154b into master Nov 14, 2024
12 of 13 checks passed
@sleidig sleidig deleted the Overwriting_label/title branch November 14, 2024 11:27
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.43.0-master.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released on @master managed by CI (semantic-release) label Nov 14, 2024
sleidig pushed a commit that referenced this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released on @master managed by CI (semantic-release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard widgets should allow overwriting label / title
3 participants