Skip to content

style(eforms): align Mine eForms page with property-workers pattern#7902

Merged
renemadsen merged 2 commits into
stablefrom
style/align-eforms-page-with-property-workers
May 24, 2026
Merged

style(eforms): align Mine eForms page with property-workers pattern#7902
renemadsen merged 2 commits into
stablefrom
style/align-eforms-page-with-property-workers

Conversation

@renemadsen
Copy link
Copy Markdown
Member

Summary

  • Replaces the root-page <eform-new-subheader> plus the standalone <ng-template #toolbarTpl> Tags dropdown with a single mat-card.eform-sub-header containing the page title, Search, Tags dropdown, Import / Manage tags / New from XML / New eForm buttons in one right-aligned wrapping flex row.
  • Page title now resolves via appMenuStateService.leftAppMenus$ (mirroring the property-workers pattern).
  • The mtx-grid is no longer asked to render an empty toolbar ([showToolbar]="false", no [toolbarTemplate]).

Test plan

  • Load / — title "Mine eForms" left-aligned at top of card; Search + Tags + Import + Manage tags + New from XML + New eForm right-aligned in one row.
  • Open the Tags dropdown — selecting/deselecting a tag still filters the grid (saveTag/removeSavedTag fire as before).
  • Permission gates: as a non-admin without eformsCreate claim, Import / XML / New eForm buttons should hide.
  • Search input still debounces and refreshes the grid.

🤖 Generated with Claude Code

…rs pattern

Wraps the page title, search, Tags dropdown and action buttons in a
single mat-card.eform-sub-header. Tags dropdown is relocated from the
mtx-grid toolbar slot into the header card so all filters live alongside
the title and buttons, matching the property-workers reference.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 24, 2026 10:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Mine eForms page header layout to match the “property-workers” UI pattern by consolidating title + filters + actions into a single sub-header card and removing the now-unused mtx-grid toolbar template.

Changes:

  • Replaced <eform-new-subheader> + mtx-grid toolbar template with a mat-card sub-header containing title, Search, Tags, and action buttons.
  • Added menu-driven page title resolution via AppMenuStateService.leftAppMenus$ and Router.url.
  • Disabled the mtx-grid toolbar rendering ([showToolbar]="false") since the toolbar template was removed.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eform-client/src/app/modules/eforms/components/eforms-page/eforms-page.component.ts Adds menu-based page title resolution subscription; simplifies tag-loading code block.
eform-client/src/app/modules/eforms/components/eforms-page/eforms-page.component.html Reworks header markup into a mat-card and removes mtx-grid toolbar template usage.

Comment on lines +150 to +155
// Resolve the page title once menus hydrate; recompute when they emit.
// getTitleByUrl reads from the menu store internally — we drive it from
// the menu emission instead of calling it per template change-detection.
this.titleSub$ = this.appMenuStateService.leftAppMenus$.subscribe(() => {
this.pageTitle = this.appMenuStateService.getTitleByUrl(this.router.url);
});
The Mine eForms page header was migrated from <eform-new-subheader>
to <mat-card class="eform-sub-header"><h2>; update the playwright
subheader + language tests and the matching cypress language test to
target the new selector.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@renemadsen renemadsen merged commit f81d27e into stable May 24, 2026
15 of 19 checks passed
@renemadsen renemadsen deleted the style/align-eforms-page-with-property-workers branch May 24, 2026 12:47
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