Skip to content

Bug 634705: Add cue tiles to Subcontracting Role Centers#8124

Open
ChethanT wants to merge 11 commits into
mainfrom
bugs/Subcontracting/634705-AddCueTilesToRC
Open

Bug 634705: Add cue tiles to Subcontracting Role Centers#8124
ChethanT wants to merge 11 commits into
mainfrom
bugs/Subcontracting/634705-AddCueTilesToRC

Conversation

@ChethanT
Copy link
Copy Markdown
Contributor

@ChethanT ChethanT commented May 13, 2026

Automated Bug Fix

This PR was created by Bug Fixer to address an issue found for Bug 634705.

Bug Details

Work Item: AB#634705
Category: Subcontracting - Role Centers
File(s): src/Apps/W1/Subcontracting/App/src/RoleCenters/

What Changed

Added subcontracting cue tiles to manufacturing Role Centers. Previously, the Subcontracting module only added action links to Role Centers. Now, users see actual count-based cue tiles showing:

  1. Outstanding Subc. Purch. Lines - number of subcontracting purchase order lines that have not yet been fully received
  2. Total Subc. Purchase Lines - total number of subcontracting purchase order lines

These tiles appear in three Activities pages:

  • Production Planner Activities (enhanced existing extension)
  • Shop Supervisor Activities (new extension)
  • Shop Supervisor Mfg Foundation Activities (new extension)

Each cue group also includes a quick action link to the Subcontracting Worksheet.

New Objects

Object ID Name
Table Extension 99001527 Subc. Manufacturing Cue
Page Extension 99001545 Subc. Shop Super. Activities
Page Extension 99001546 Subc. ShopSuperbasicActivity

Modified Objects

Object ID Name
Page Extension 99001537 Subc. Prod. Planner Activities

⚠️ Review Notes

This is an AI-generated fix. Please review carefully before merging:

  • Verify the FlowField CalcFormula correctly counts subcontracting purchase lines
  • Check that the filter(<> None) syntax works correctly for the Subc. Purchase Line Type enum
  • Ensure cue tiles display correctly in the Role Center UI
  • Verify the DrillDownPageId navigation works as expected
image

Add subcontracting cue tiles showing outstanding and total
subcontracting purchase order lines to manufacturing Role Centers:

- SubcManufacturingCue.TableExt.al: Extend Manufacturing Cue table
  with FlowFields counting subcontracting purchase lines
- SubcProdPlannerActivities.PageExt.al: Add cue tile fields to the
  Production Planner Activities (previously only had action link)
- SubcShopSuperActivities.PageExt.al: New extension adding cue tiles
  to Shop Supervisor Activities
- SubcShopSuperbasicActivity.PageExt.al: New extension adding cue
  tiles to Shop Supervisor Mfg Foundation Activities

Each cue group shows:
- Outstanding subcontracting purchase lines (not yet received)
- Total subcontracting purchase lines
- Quick action link to Subcontracting Worksheet
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label May 13, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone May 13, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

AL Documentation Audit

Documentation gaps were detected in the following apps:

  • Subcontracting: 0% documentation coverage

To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.

@ChethanT ChethanT added the Subcontracting Subcontracting related activities label May 13, 2026
@ChethanT ChethanT changed the title [Bug Fix] Add cue tiles to Subcontracting Role Centers (AB#634705) Bug 634705: Add cue tiles to Subcontracting Role Centers May 13, 2026
@ChethanT ChethanT marked this pull request as ready for review May 13, 2026 12:32
@ChethanT ChethanT requested a review from a team as a code owner May 13, 2026 12:32
@ChethanT ChethanT requested a review from ankosiorek May 13, 2026 12:32
@github-actions
Copy link
Copy Markdown

$\textbf{🟡\ Medium\ Severity\ —\ Style} \quad \color{gray}{\texttt{\small Iteration\ 1}}$

Cue DrillDown shows unfiltered purchase orders

Both Subc. Purch. Lines Outstd. and Subc. Purch. Lines Total cue fields use DrillDownPageId = "Purchase Order List" without any filter, so clicking either cue opens all purchase orders rather than only subcontracting orders matching the FlowField criteria. This gives misleading navigation to users expecting to see only the counted records.

Recommendation:

  • Use a filtered list page that scopes to subcontracting purchase lines (e.g., a dedicated subcontracting purchase order list page, or set a view filter via DrillDownPageId combined with a SubPageView or dedicated page). At minimum, document the limitation as a known gap.
DrillDownPageId = "Subc. Purchase Order List";

Line mapping was unavailable, so this was posted as an issue comment.

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why

@github-actions
Copy link
Copy Markdown

$\textbf{🟡\ Medium\ Severity\ —\ Style} \quad \color{gray}{\texttt{\small Iteration\ 1}}$

Two cuegroups share the same caption

SubcontractingCuegroup (data tiles) and SubcontractingActionsCuegroup (actions) both carry Caption = 'Subcontracting'. In Business Central, duplicate captions within a page can render as two identically titled sections, confusing users and making the UI appear broken or duplicated.

Recommendation:

  • Give the actions cuegroup a distinct caption such as 'Subcontracting Actions' to differentiate it visually from the metrics cuegroup.
cuegroup(SubcontractingActionsCuegroup)
{
    Caption = 'Subcontracting Actions';

Line mapping was unavailable, so this was posted as an issue comment.

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why

@github-actions
Copy link
Copy Markdown

$\textbf{🟡\ Medium\ Severity\ —\ Style} \quad \color{gray}{\texttt{\small Iteration\ 1}}$

Cue DrillDown shows unfiltered purchase orders

The Subc. Purch. Lines Outstd. and Subc. Purch. Lines Total cue fields use DrillDownPageId = "Purchase Order List" without filtering, so clicking a cue opens all purchase orders rather than the subcontracting orders counted by the FlowField. This makes the cue count and the drilled-down list inconsistent.

Recommendation:

  • Point DrillDownPageId to a page that pre-filters to subcontracting purchase orders, matching the CalcFormula filter criteria.
DrillDownPageId = "Subc. Purchase Order List";

Line mapping was unavailable, so this was posted as an issue comment.

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why

@github-actions
Copy link
Copy Markdown

$\textbf{🟡\ Medium\ Severity\ —\ Style} \quad \color{gray}{\texttt{\small Iteration\ 1}}$

Cue DrillDown shows unfiltered purchase orders

Same as the other new Shop Supervisor page extension: DrillDownPageId = "Purchase Order List" opens an unfiltered list of all purchase orders when a user clicks the subcontracting cue, inconsistent with the FlowField filter that counts only subcontracting lines.

Recommendation:

  • Use a dedicated subcontracting purchase order list page or apply an appropriate filter to align the drilldown with the metric being shown.
DrillDownPageId = "Subc. Purchase Order List";

Line mapping was unavailable, so this was posted as an issue comment.

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why

The two adjacent cuegroups on each Activities page were both captioned
'Subcontracting', which was visually confusing. Rename the actions
cuegroup to 'Subcontracting - Operations' to match the original caption
that existed on this group before the cue tiles were added.

The cuegroups must remain split because the AL Web client does not
support displaying both Actions and Fields in the same cue group.
@ChethanT ChethanT requested review from AleksandricMarko and removed request for ankosiorek May 13, 2026 13:09
Comment thread src/Apps/W1/Subcontracting/App/src/RoleCenters/SubcManufacturingCue.TableExt.al Outdated
Comment thread src/Apps/W1/Subcontracting/App/src/RoleCenters/SubcShopSuperActivities.PageExt.al Outdated
ChethanT and others added 2 commits May 15, 2026 09:25
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Comment thread src/Apps/W1/Subcontracting/App/src/RoleCenters/SubcManufacturingCue.TableExt.al Outdated
Comment thread src/Apps/W1/Subcontracting/App/src/RoleCenters/SubcManufacturingCue.TableExt.al Outdated
@github-actions
Copy link
Copy Markdown

$\textbf{🟡\ Medium\ Severity\ —\ Upgrade} \quad \color{gray}{\texttt{\small Iteration\ 1}}$

SubcontractingCuegroup repurposed, breaking personalizations

On origin/main cuegroup(SubcontractingCuegroup) contained the 'Subcontracting - Operations' actions. This PR repurposes that cuegroup ID for metric cue fields, and introduces a new SubcontractingActionsCuegroup for the actions block. Any user personalization or page customization that references the old SubcontractingCuegroup by name will point to the wrong section after upgrade.

Recommendation:

  • Avoid reusing an existing cuegroup ID with different semantics. Assign the new metric cuegroup a fresh unique identifier (e.g. SubcontractingMetricsCuegroup) and leave SubcontractingCuegroup for its original purpose, or document the breaking change and provide an upgrade codeunit.
cuegroup(SubcontractingMetricsCuegroup)
{
    Caption = 'Subcontracting';
    field("Subc. Purch. Lines Outstd."; Rec."Subc. Purch. Lines Outstd.")
    {
        ...
    }
    ...
}

Line mapping was unavailable, so this was posted as an issue comment.

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why

Co-authored-by: Copilot <copilot@github.com>
Comment thread src/Apps/W1/Subcontracting/App/src/RoleCenters/SubcShopSuperActivities.PageExt.al Outdated
ChethanT and others added 3 commits May 15, 2026 11:24
Comment thread src/Apps/W1/Subcontracting/App/src/RoleCenters/SubcShopSuperActivities.PageExt.al Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Subcontracting Subcontracting related activities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant