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

Dialog & Routed Views #2304

Merged
merged 25 commits into from
Apr 12, 2024
Merged

Dialog & Routed Views #2304

merged 25 commits into from
Apr 12, 2024

Conversation

sleidig
Copy link
Member

@sleidig sleidig commented Mar 18, 2024

closes: #2069

objectives:

  • allow NoteDetails to be opened via RoutedViewComponent
  • allow EntityDetails to be opened via FormDialogService

changes implemented:

  • migrated special config appConfig:note-details to a standard view:note/:id
  • adapted building blocks to be more flexible (app-view-title, app-dialog-buttons)
  • extracted basics from EntityDetailsComponent into a new AbstractEntityDetailsComponent to be reused
  • implemented DialogViewComponent similar to RoutedViewComponent
  • generalized NoteDetailsComponent (and to some extend EntityDetailsComponent) to be usable in both dialogs and routed views
  • ChildrenList & NotesManager take actual inputs instead of the full config object
  • pass entity refs to routed details instead of loading it itself there (turns out to be difficult to pass custom data through router)
  • add an app-view-actions wrapper to align DialogButtons and Actions placed on top in routed views

problems to be fixed:

  • dialog size changes when changing tabs (e.g. Child details as popup)
  • action menu as buttons in dialog, if no other buttons shown (e.g. in EntityDetails as popup
  • popup takes query params (e.g. tab) of route

manually migrate appConfig:note-details to view:note/:id

  • "123-kimue": "matching",
  • "codo-awo-hh": "matching",
  • "codo-schlaufox": "matching",
  • "demo3": "matching",
  • "eid": "matching",
  • "hfc": "matching",
  • "our-sansar": "matching",
  • "our-sansar-child-marriage": "matching"

Copy link

Deployed to https://pr-2304.aam-digital.net/

@sleidig sleidig requested a review from tomwwinter March 27, 2024 19:30
@sleidig sleidig changed the base branch from master to refactor/config-entitytype April 12, 2024 07:41
# Conflicts:
#	src/app/core/config/config-fix.ts
#	src/app/core/entity-details/entity-details/entity-details.component.ts
#	src/app/core/entity-list/entity-list/entity-list.component.spec.ts
#	src/app/core/entity-list/entity-list/entity-list.component.ts
for clarity and future developments
@sleidig sleidig force-pushed the refactor/config-entitytype branch from 78473f7 to a326549 Compare April 12, 2024 07:49
… view-architecture

# Conflicts:
#	src/app/core/config/config-fix.ts
#	src/app/core/entity-details/entity-details/entity-details.component.ts
#	src/app/core/entity-list/entity-list/entity-list.component.spec.ts
#	src/app/core/entity-list/entity-list/entity-list.component.ts
Base automatically changed from refactor/config-entitytype to master April 12, 2024 08:06
# Conflicts:
#	src/app/core/config/config-fix.ts
#	src/app/core/entity-details/entity-details/entity-details.component.ts
#	src/app/core/entity-list/entity-list/entity-list.component.spec.ts
#	src/app/core/entity-list/entity-list/entity-list.component.ts
Copy link
Contributor

@tomwwinter tomwwinter 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

@sleidig sleidig merged commit d64f937 into master Apr 12, 2024
5 of 7 checks passed
@sleidig sleidig deleted the view-architecture branch April 12, 2024 12:52
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.35.0-master.4 🎉

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 Apr 12, 2024
@aam-digital-ci
Copy link
Collaborator

🎉 This PR is included in version 3.35.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@aam-digital-ci aam-digital-ci added the released managed by CI (semantic-release) label Apr 25, 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) released managed by CI (semantic-release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generalized DialogViewComponent wrapper to display forms in popup
3 participants