Skip to content

refactor(dialog): MatDialog to ZardDialogService across the app (Phase 4a)#156

Merged
gkbishnoi07 merged 1 commit into
angular-zard-migrationfrom
feat/phase4-zard-dialogs
Jul 9, 2026
Merged

refactor(dialog): MatDialog to ZardDialogService across the app (Phase 4a)#156
gkbishnoi07 merged 1 commit into
angular-zard-migrationfrom
feat/phase4-zard-dialogs

Conversation

@gkbishnoi07

Copy link
Copy Markdown

Stacked on #155 (core widgets). Phase 4a: migrates the entire dialog layer from MatDialog to ZardDialogService — the last functional Material usage in the app (54 files).

  • ConfirmationService rewritten on the MMU-UI pattern (shared createDialog helper, componentInstance! config, afterClosed() semantics identical)
  • All 24 open() call sites (17 components + 7 directives): data→zData, width→zWidth, disableClose→zMaskClosable + ref.disableClose for the session-timeout dialog (Escape blocked, as before)
  • 26 dialog content components: MatDialogRef→ZardDialogRef, MAT_DIALOG_DATA→Z_MODAL_DATA; template-facing property names unchanged
  • main.ts: MatDialogModule/MatDatepickerModule providers removed
  • The Zard dialog engine (Common-UI 306f09b) already contains the route-scoped-provider fix, and all app services are root-provided — no NG0201 class of issues

Flagged: height/panelClass options dropped (Zard auto-sizes — same as MMU); textarea-dialog's backdropClick() close-with-data subscription removed (ZardDialogRef has no backdropClick; the service has zero callers).

After this PR the only @angular/material left is MatTableDataSource/MatPaginator as data structures — removed with the dependency itself in the final Phase-4b PR.

build-dev ✅ · eslint/prettier ✅

…ogService

54 files - the last functional Material usage in the app:

- ConfirmationService rewritten on the MMU-UI pattern (shared createDialog
  helper; all 8 methods set componentInstance fields and return afterClosed())
- TextareaDialog + rx-batchview services and all 24 open() call sites
  (17 components + 7 directives): open -> create with data->zData,
  width->zWidth, disableClose->zMaskClosable(+ref.disableClose for the
  session-timeout dialog, blocking Escape as before)
- 26 dialog content components: MatDialogRef -> ZardDialogRef,
  MAT_DIALOG_DATA -> Z_MODAL_DATA; template-facing property names unchanged
- main.ts: MatDialogModule + MatDatepickerModule providers removed

height/panelClass options dropped (Zard dialogs auto-size, as in MMU-UI).
MatTableDataSource/MatPaginator remain as plain data structures only.
Dev build verified green.
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 47a2fcbb-5ed3-4fe0-9672-7db4b27fe72c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Jul 6, 2026

Copy link
Copy Markdown

@gkbishnoi07
gkbishnoi07 changed the base branch from feat/migrate-core-widgets to angular-zard-migration July 9, 2026 06:45
@gkbishnoi07
gkbishnoi07 merged commit 98852f7 into angular-zard-migration Jul 9, 2026
4 checks passed
@gkbishnoi07
gkbishnoi07 deleted the feat/phase4-zard-dialogs branch July 9, 2026 06:48
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.

2 participants