Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

Pull prompt changes over (#402)

McCall Saltzman59da1af407c1
diff --git a/plugins/canvas-apps/.claude-plugin/plugin.json b/plugins/canvas-apps/.claude-plugin/plugin.json
index e5b0786d4..bf0e75f60 100644
--- a/plugins/canvas-apps/.claude-plugin/plugin.json
+++ b/plugins/canvas-apps/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "canvas-apps",
- "version": "3.0.0",
+ "version": "3.0.1",
"description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.",
"author": {
"name": "Microsoft",
diff --git a/plugins/canvas-apps/.plugin/plugin.json b/plugins/canvas-apps/.plugin/plugin.json
index e5b0786d4..bf0e75f60 100644
--- a/plugins/canvas-apps/.plugin/plugin.json
+++ b/plugins/canvas-apps/.plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "canvas-apps",
- "version": "3.0.0",
+ "version": "3.0.1",
"description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.",
"author": {
"name": "Microsoft",
diff --git a/plugins/canvas-apps/AGENTS.md b/plugins/canvas-apps/AGENTS.md
index b9cf70138..db8309cf1 100644
--- a/plugins/canvas-apps/AGENTS.md
+++ b/plugins/canvas-apps/AGENTS.md
@@ -35,7 +35,7 @@ references/
GridLayoutGuide.md ← Conditional GridLayout formulas and invariants
PowerFxGuide.md ← State, events, named formulas, and mock data
DesignGuide.md ← Aesthetic guidelines, anti-patterns, design process
- QAChecks.md ← 32 runtime anti-pattern checks for per-screen self-QA
+ QAChecks.md ← Named runtime anti-pattern checks for per-screen self-QA
PlanTemplates.md ← Progressive index, shared plan, and screen-brief structures
CreateWorkflow.md ← Empty-app planning and planner handoff
EditWorkflow.md ← Simple vs complex edit routing and planning
@@ -67,7 +67,7 @@ Agents are invoked by skills via the `Task` tool — they are not user-invocable
| Agent | Invoked By | Description |
|-------|-----------|-------------|
| `canvas-app-planner` | `canvas-app` | Receives the approved plan, discovers resources, validates CREATE-mode `App.pa.yaml`, and writes a compact dispatch index, shared conventions, and one self-sufficient brief per screen. |
-| `canvas-screen-builder` | `canvas-app` | Creates or modifies exactly one screen from its shared plan and screen brief, then reports all 32 self-QA outcomes. Builders run in waves of at most three; `canvas-app` owns compilation. |
+| `canvas-screen-builder` | `canvas-app` | Creates or modifies exactly one screen from its shared plan and screen brief, then reports every named self-QA outcome. Builders run in waves of at most three; `canvas-app` owns compilation. |
## MCP Tools
diff --git a/plugins/canvas-apps/README.md b/plugins/canvas-apps/README.md
index c6c8fd8bd..9593c9029 100644
--- a/plugins/canvas-apps/README.md
+++ b/plugins/canvas-apps/README.md
@@ -31,8 +31,8 @@ Create or edit a Canvas App. Automatically detects whether to generate a new app
or edit an existing one based on the current app state.
Planned work uses progressive per-screen briefs and builder waves of at most three. Each
-screen runs 32 runtime QA checks before the app is compiled, and compile repairs follow a
-bounded diagnostic-convergence workflow instead of regenerating completed screens.
+screen runs the named runtime QA checks before the app is compiled, and compile repairs
+follow a bounded diagnostic-convergence workflow instead of regenerating completed screens.
**Usage:** Invoke directly with `/canvas-app`, or use natural language to trigger it:
diff --git a/plugins/canvas-apps/agents/canvas-app-planner.md b/plugins/canvas-apps/agents/canvas-app-planner.md
index e8661a2d6..5fe12bcaf 100644
--- a/plugins/canvas-apps/agents/canvas-app-planner.md
+++ b/plugins/canvas-apps/agents/canvas-app-planner.md
@@ -111,9 +111,10 @@ Before writing plans:
- Compute a toggle's next value once before `Patch` or `UpdateIf`, then reuse that value
for both the write and its confirmation text. Do not inspect the mutated `ThisItem`
afterward to decide what action occurred.
- - When failed-submit validation becomes visible, clear it from each relevant input's
- `OnChange`, or gate visibility on the fields still being invalid. Do not leave an
- error visible after all required inputs are valid.
+ - Derive validation visibility and submit availability from the current input values.
+ If validation must wait for a submit attempt, combine one attempt flag with the
+ current invalid expression; do not maintain or clear separate validity flags in each
+ input's `OnChange`.
7. Define data-field semantics once and reuse them. If a task has `ScheduledDate`,
`DueDate` and `CompletedDate`, state which field drives calendar placement, which date
the task list displays, and which field the monthly report groups by. Seed data,
@@ -163,7 +164,7 @@ For every screen brief, state explicitly:
breakpoint consistently; when none is specified, use 640 for phone and 1024 for tablet.
- That responsive layout properties derive directly from `App.Width`, `Parent.Width` or
`Self.Width`. Do not initialize layout variables such as `varIsMobile` or `varColumns`
- in `OnVisible`; they can be unset in Studio and stale after resize.
+ in `OnVisible`; they can be unset in Studio and become stale after resize.
- That the root container scrolls (`LayoutOverflowY: =LayoutOverflow.Scroll`).
- That the screen-level `Children:` list contains only that root, with every visible
section nested under the root's `Children:` list.
@@ -198,8 +199,9 @@ can prevent one.
1. Assign every dispatch row a short, distinct `Name Prefix` derived from its screen
(`Disc`, `Detail`, `Itin`, `Spk`, `Guide`). No two rows share a prefix.
2. Record the prefix in the dispatch table and in that screen's brief.
-3. Name every control in a brief with its prefix already applied — `DiscNavBar`,
- `DetailNavBar` — never a bare `NavBar`.
+3. Follow the standard control-type abbreviation, then apply the screen prefix as a
+ namespace — `conDiscNavBar`, `conDetailNavBar`, `btnDiscBack` — never a bare `NavBar`
+ or `btnBack`.
4. When a UI block repeats across screens (nav bars, headers, toolbars), describe it
once in the shared plan as a **pattern**, and state explicitly that each screen
instantiates it under its own prefix. Never hand builders a literal block of shared
@@ -293,8 +295,8 @@ Each brief contains only what that builder needs:
- For every control type used on that screen: the complete list of valid input
property names, plus the full `Enum name:` and the **compile-ready enum literal** for
each enum property the screen actually sets
-- Every literal seed value the screen needs: dropdown `Items` that are not bound to a
- collection, `Default` values, static option lists, seeded names
+- Every inline literal value the screen writes directly: screen-local `Items`, `Default`
+ values, and static option lists
Two things a builder cannot recover on its own, and both cost a full round trip:
@@ -302,9 +304,9 @@ Two things a builder cannot recover on its own, and both cost a full round trip:
not `values: 0, 1, 2, 3, 4, 5, Auto`. A member list is transcribed verbatim, and a member
starting with a digit then fails to compile with `Expected operator` — a diagnostic that
never mentions enums.
-- **Enumerate literal data instead of describing it.** A builder has no discovery tools and
- cannot read `App.pa.yaml`. "The six seeded speaker names" is unresolvable and returns
- `Status: Blocked`; the six names are not.
+- **Write inline literal data instead of describing an unstated set.** When a screen owns
+ a small local table, include its exact records in the brief. When App owns the records,
+ bind to the named collection instead of duplicating or paraphrasing its seed data.
Do not paste the whole `describe_control` response. The property-name list is what
prevents `Unknown property`, and the `Enum name:` lines are what prevent
diff --git a/plugins/canvas-apps/agents/canvas-screen-builder.md b/plugins/canvas-apps/agents/canvas-screen-builder.md
index 5eb5b80ff..3923dc01b 100644
--- a/plugins/canvas-apps/agents/canvas-screen-builder.md
+++ b/plugins/canvas-apps/agents/canvas-screen-builder.md
@@ -72,7 +72,7 @@ with the edit tool instead — the action is still `Create` in the sense that yo
whole screen.
Use meaningful child-control names derived from the logical screen, each carrying your
-assigned control name prefix.
+assigned control name prefix after the standard control-type abbreviation.
### Modify
@@ -90,10 +90,11 @@ Do not fix unrelated pre-existing issues.
- Every control you **add** carries your assigned control name prefix. Control names are
unique across the whole app, and you cannot see the other screens — the prefix is the
only thing preventing a collision. This applies to repeated UI blocks such as nav bars
- and headers: write `[Prefix]NavBar`, never a bare `NavBar`, even when the shared plan
- shows the pattern without a prefix. In `Modify`, preserve the existing names of controls
- you are not adding, even when they do not carry the prefix; renaming them breaks every
- formula that references them.
+ and headers: write `[TypePrefix][ScreenPrefix]NavBar` such as `conDiscNavBar`, never a
+ bare `NavBar` or `conNavBar`, even when the shared plan shows the pattern without a
+ screen prefix. In `Modify`, preserve the existing names of controls you are not adding,
+ even when they do not carry the prefix; renaming them breaks every formula that
+ references them.
- Use exact properties from the screen brief's control definitions.
- Write the bare control name: `Control: ModernText`, never `Control: [email protected]`.
A version suffix on one control makes every property of every other version report as
@@ -153,13 +154,13 @@ the first builder returns, so return promptly rather than polishing indefinitely
Screen: [logical name]
Action: [Create / Modify]
File: [absolute target file]
-QA: 1 [outcome] · 2 [outcome] · … · 32 [outcome]
+QA: 1 [outcome] · 2 [outcome] · …
- [fix summary, or "clean"]
Status: Done
```
-The `QA:` line must list all 32 checks. A return without it is incomplete, and the
-orchestrator will send the screen back.
+The `QA:` line must list every check in `${PLUGIN_ROOT}/references/QAChecks.md`. A return
+without it is incomplete, and the orchestrator will send the screen back.
## Constraints
@@ -177,5 +178,6 @@ orchestrator will send the screen back.
not make the rendered control fill the row.
- Never pair a light `Color`/`FontColor` with a surface supplied by an `Appearance` or
`ThemeColor` enum — set `Fill` or `BasePaletteColor` too.
-- Never write a **new** control name that does not start with your assigned prefix.
+- Never write a **new** control name that omits the assigned screen prefix after its
+ standard control-type abbreviation.
- Do not ask questions; resolve details from the assigned plans.
diff --git a/plugins/canvas-apps/references/ControlGuide.md b/plugins/canvas-apps/references/ControlGuide.md
index 9c8b18713..51ae8b9ff 100644
--- a/plugins/canvas-apps/references/ControlGuide.md
+++ b/plugins/canvas-apps/references/ControlGuide.md
@@ -16,6 +16,9 @@ Choosing a control type, and writing properties and enum values that the compile
- Option set values
- Colour and button-state patterns
- Timer lifecycle
+- Read-only ancestors
+- Cross-screen navigation
+- Semantic display values
- Common property reference
- Troubleshooting
@@ -328,17 +331,23 @@ initial value until the user clicks it. For timers that gate a workflow:
- Do not use the timer surface as an unlabeled pause button. Add a separate labelled
control when pause/resume is required.
+## Read-only ancestors
+
`DisplayMode` is inherited. Do not put row action buttons inside a Gallery or container
set to `DisplayMode.View`; the descendants become disabled even when they look enabled.
Use `Selectable: =false` to prevent Gallery selection while leaving the Gallery in
`DisplayMode.Edit`.
+## Cross-screen navigation
+
`ModernTabList` is for tabs that switch panels within one screen. Do not use its
`OnChange` to navigate between screens: the selected tab can update while `Navigate`
does not, leaving the highlight and visible screen out of sync. For cross-screen primary
navigation, use a row of ModernButtons whose `OnSelect` performs the navigation and whose
appearance is derived from the current screen.
+## Semantic display values
+
Semantic controls need their visible value property. `Badge.AccessibleLabel` does not
replace `Badge.Content`; omitting Content can render placeholder text such as `AB`.
diff --git a/plugins/canvas-apps/references/LayoutGuide.md b/plugins/canvas-apps/references/LayoutGuide.md
index f65805e22..2ca47df13 100644
--- a/plugins/canvas-apps/references/LayoutGuide.md
+++ b/plugins/canvas-apps/references/LayoutGuide.md
@@ -73,7 +73,8 @@ For flexible, responsive designs:
FillPortions: =1 # Proportional share of the remaining space
```
-1. **Dynamic gallery height:** `Height: =CountRows(Self.AllItems) * Self.TemplateHeight`
+1. **Dynamic gallery height:**
+ `Height: =Self.AllItemsCount * Self.TemplateHeight + ((Self.AllItemsCount + 1) * Self.TemplatePadding)`
2. **Container scrolling:** `LayoutOverflowY: =LayoutOverflow.Scroll`
3. **AutoLayout child properties:** `AlignInContainer`, `FillPortions`,
`LayoutMinWidth/Height`, `LayoutMaxWidth/Height`
@@ -205,8 +206,12 @@ those descendants also size from the parent; use collection counts and constants
directly.
Small bounded lists should not create a second hidden scroll region. For a local roster
-of roughly ten or fewer rows inside a scrollable root, set gallery height from
-`CountRows(Self.AllItems) * Self.TemplateSize` and let the root scroll.
+of roughly ten or fewer rows inside a scrollable root, include every row and its template
+padding in the gallery height, then let the root scroll:
+
+```yaml
+Height: =Self.AllItemsCount * Self.TemplateHeight + ((Self.AllItemsCount + 1) * Self.TemplatePadding)
+```
## Give labelled controls room for their longest value
diff --git a/plugins/canvas-apps/references/PlanTemplates.md b/plugins/canvas-apps/references/PlanTemplates.md
index b6743d235..2ad38f9ea 100644
--- a/plugins/canvas-apps/references/PlanTemplates.md
+++ b/plugins/canvas-apps/references/PlanTemplates.md
@@ -105,8 +105,9 @@ variables.]
[Variables, named formulas, collections, and ownership]
## Control Naming
-[Per-screen name prefixes and the rule that repeated UI blocks are instantiated under
-each screen's own prefix]
+[Standard control-type abbreviations followed by the per-screen namespace, such as
+`conDiscNavBar` and `btnDetailBack`, plus the rule that repeated UI blocks are
+instantiated under each screen's own namespace]
## Cross-Screen Contracts
[Navigation targets and shared state expectations. For repeated navigation blocks, list
@@ -170,15 +171,6 @@ Give each enum property the **compile-ready literal**, not a list of members. Wr
`Precision: =DecimalPrecision.'1'`, never `Enum name: DecimalPrecision; values: 0, 1, 2`.
A member list is transcribed literally by the builder and a member starting with a digit
then fails to compile.]
-
-## Literal Seed Data
-[Every fixed literal the builder must type out: `Items` for a dropdown that is not bound
-to a collection, `Default` values, static option lists, seeded names.
-
-Write the values themselves. The builder has no discovery tools, cannot read
-`App.pa.yaml`, and cannot resolve a description like "the six seeded speaker names" —
-it will return `Status: Blocked` and cost a full replan round-trip. Omit this section only
-when the screen binds entirely to named collections.]
```
## Screen Brief — MODIFY
@@ -222,9 +214,4 @@ Variants section; omit if none]
already present in the app: valid input property names, plus the full enum name and
compile-ready literal for each enum property this edit sets. Write
`Precision: =DecimalPrecision.'1'`, not a bare member list; omit if none]
-
-## Literal Seed Data
-[Every fixed literal this edit introduces or changes: dropdown `Items` not bound to a
-collection, `Default` values, static option lists, seeded names. Write the exact values,
-not a description of them; omit if none]
```
diff --git a/plugins/canvas-apps/references/PowerFxGuide.md b/plugins/canvas-apps/references/PowerFxGuide.md
index c46d3e8cb..770a34ffe 100644
--- a/plugins/canvas-apps/references/PowerFxGuide.md
+++ b/plugins/canvas-apps/references/PowerFxGuide.md
@@ -101,7 +101,7 @@ OnSelect: |-
Set(currentPlayer, If(currentPlayer = "X", "O", "X"))
```
-### Confirm the action and clear the state that caused it
+### Confirm data changes and derive validation from current values
An action that changes data must say so, and must leave the form in a clean state. Two
defects show up constantly in generated apps: a quantity silently changes with no
@@ -112,16 +112,25 @@ about was successfully saved.
OnSelect: |-
=Patch(colInventory, ThisItem, {Quantity: ThisItem.Quantity - varAdjustBy});
Notify("Issued " & varAdjustBy & " units", NotificationType.Success);
- Set(varAdjustBy, 0);
- Set(varShowValidation, false)
+ Set(varAdjustBy, 0)
```
- Use `Notify(...)` or a transient in-screen message after every create, update, or delete.
-- Reset the inputs and the flags that drove validation in the same handler.
-- Gate validation text on a variable you clear on success, not on the raw field value.
-- After a failed submit shows validation, clear that flag from every relevant input's
- `OnChange`, or keep the message visible only while the required fields remain invalid.
- An error must not remain visible once the user has corrected all fields.
+- Reset inputs after a successful action.
+- Derive validation text and submit availability directly from the current input values:
+
+ ```yaml
+ # Validation message
+ Visible: =IsBlank(Trim(NameInput.Value))
+
+ # Submit action
+ DisplayMode: =If(IsBlank(Trim(NameInput.Value)), DisplayMode.Disabled, DisplayMode.Edit)
+ ```
+
+- When validation must wait until the first submit attempt, combine one attempt flag with
+ the current invalid expression: `Visible: =varSubmitAttempted && IsBlank(...)`. Do not
+ maintain separate validity flags or clear them from every input's `OnChange`; correcting
+ the input must make the formula false declaratively.
### Toggle once, report the same next value
@@ -130,11 +139,16 @@ Compute the next value once and use it for both the write and the confirmation:
```yaml
OnSelect: |-
- =Set(varNextCheckedIn, !ThisItem.CheckedIn);
- Patch(colMembers, ThisItem, {CheckedIn: varNextCheckedIn});
- Notify(
- ThisItem.Name & If(varNextCheckedIn, " checked in", " marked not ready"),
- NotificationType.Success
+ =With(
+ {
+ member: ThisItem,
+ nextCheckedIn: !ThisItem.CheckedIn
+ },
+ Patch(colMembers, member, {CheckedIn: nextCheckedIn});
+ Notify(
+ member.Name & If(nextCheckedIn, " checked in", " marked not ready"),
+ NotificationType.Success
+ )
)
```
@@ -172,11 +186,11 @@ For a small, read-only table used by only one control, keep it local instead:
```yaml
Items: |-
- =Table(
+ =[
{Title: "Draft"},
{Title: "Review"},
{Title: "Publish"}
- )
+ ]
```
Use an `App.OnStart` collection when several screens share the records or interactions
diff --git a/plugins/canvas-apps/references/QAChecks.md b/plugins/canvas-apps/references/QAChecks.md
index fff80befe..86ca7f6df 100644
--- a/plugins/canvas-apps/references/QAChecks.md
+++ b/plugins/canvas-apps/references/QAChecks.md
@@ -10,43 +10,55 @@ width, or that a dropdown will render every option blank.
- How to run the checks
+Each check has a stable `QACHK-...` identifier. Use that identifier when referring to a
+check from another file. Check numbers define execution and reporting order only; they
+are not part of the identifier.
+
**Run first — these invalidate the whole file or the whole compile:**
-- Check 1 — `@version` suffix on a `Control:` value
-- Check 2 — property value without the `=` prefix
-- Check 3 — same property key twice in one `Properties:` block
-- Check 4 — enum qualifier or member written incorrectly
-- Check 5 — control that declares variants written without one
+- Check 1 — `QACHK-CONTROL-VERSION-SUFFIX` — `@version` suffix on a `Control:` value
+- Check 2 — `QACHK-MISSING-FORMULA-PREFIX` — property value without the `=` prefix
+- Check 3 — `QACHK-DUPLICATE-PROPERTY-KEY` — same property key twice in one
+ `Properties:` block
+- Check 4 — `QACHK-ENUM-LITERAL` — enum qualifier or member written incorrectly
+- Check 5 — `QACHK-MISSING-VARIANT` — control that declares variants written without one
**Then, in order:**
-- Check 6 — `LayoutMinWidth` / `LayoutMinHeight` on every `GroupContainer`
-- Check 7 — container `LayoutAlignItems` and child `AlignInContainer`
-- Check 8 — missing `FillPortions` on an AutoLayout child
-- Check 9 — `FillPortions: =1` inside a scroll container
-- Check 10 — single-line label without `Wrap: =false`
-- Check 11 — `FillPortions: =0` without an explicit `Height`
-- Check 12 — `ModernText` / `Label` padding defaults to 5
-- Check 13 — `FillPortions` and `Height` both set
-- Check 14 — `FillPortions` and `Width` both set
-- Check 15 — absolutely positioned gallery rows
-- Check 16 — hard-coded pixel width on a layout container
-- Check 17 — quoted column name instead of a per-item formula
-- Check 18 — control with no `AccessibleLabel`
-- Check 19 — horizontal row with no narrow-width strategy
-- Check 20 — screen content taller than the viewport cannot be reached
-- Check 21 — text colour not set against a coloured background
-- Check 22 — light foreground on a variant-supplied surface
-- Check 23 — `ModernCard` slot left unset
-- Check 24 — gallery `TemplateSize` smaller than its row template
-- Check 25 — GridLayout axes, row count or height disagree
-- Check 26 — duplicate search UI around `ModernDataGrid`
-- Check 27 — responsive screen content outside its root container
-- Check 28 — timer has no automatic start/reset edge
-- Check 29 — interactive control under a read-only ancestor
-- Check 30 — small bounded gallery hidden in nested scrolling
-- Check 31 — semantic display control missing its visible value binding
-- Check 32 — multiword action label does not fit its control
+- Check 6 — `QACHK-CONTAINER-MIN-SIZE` — `LayoutMinWidth` / `LayoutMinHeight` on every
+ `GroupContainer`
+- Check 7 — `QACHK-CROSS-AXIS-ALIGNMENT` — container `LayoutAlignItems` and child
+ `AlignInContainer`
+- Check 8 — `QACHK-FILLPORTIONS-DEFAULT` — missing `FillPortions` on an AutoLayout child
+- Check 9 — `QACHK-SCROLL-TRAP` — `FillPortions: =1` inside a scroll container
+- Check 10 — `QACHK-WRAP-MISSING` — single-line label without `Wrap: =false`
+- Check 11 — `QACHK-NO-HEIGHT-TRAP` — `FillPortions: =0` without an explicit `Height`
+- Check 12 — `QACHK-TEXT-PADDING` — `ModernText` / `Label` padding defaults to 5
+- Check 13 — `QACHK-FILLPORTIONS-HEIGHT-CONFLICT` — `FillPortions` and `Height` both set
+- Check 14 — `QACHK-FILLPORTIONS-WIDTH-CONFLICT` — `FillPortions` and `Width` both set
+- Check 15 — `QACHK-GALLERY-TEMPLATE-LAYOUT` — absolutely positioned gallery rows
+- Check 16 — `QACHK-FIXED-LAYOUT-WIDTH` — hard-coded pixel width on a layout container
+- Check 17 — `QACHK-ITEM-DISPLAY-TEXT` — quoted column name instead of a per-item formula
+- Check 18 — `QACHK-ACCESSIBLE-LABEL-MISSING` — control with no `AccessibleLabel`
+- Check 19 — `QACHK-NO-REFLOW` — horizontal row with no narrow-width strategy
+- Check 20 — `QACHK-ROOT-NOT-SCROLLABLE` — screen content taller than the viewport cannot
+ be reached
+- Check 21 — `QACHK-LOW-CONTRAST-TEXT` — text colour not set against a coloured background
+- Check 22 — `QACHK-VARIANT-SURFACE-CONTRAST` — light foreground on a variant-supplied
+ surface
+- Check 23 — `QACHK-CARD-PLACEHOLDER` — `ModernCard` slot left unset
+- Check 24 — `QACHK-GALLERY-ROW-FITS-CONTENT` — gallery `TemplateSize` smaller than its
+ row template
+- Check 25 — `QACHK-GRID-CONTRACT` — GridLayout axes, row count or height disagree
+- Check 26 — `QACHK-DUPLICATE-GRID-SEARCH` — duplicate search UI around `ModernDataGrid`
+- Check 27 — `QACHK-ROOT-CONTAINMENT` — responsive screen content outside its root
+ container
+- Check 28 — `QACHK-TIMER-LIFECYCLE` — timer has no automatic start/reset edge
+- Check 29 — `QACHK-READ-ONLY-ANCESTOR` — interactive control under a read-only ancestor
+- Check 30 — `QACHK-HIDDEN-BOUNDED-LIST` — small bounded gallery hidden in nested scrolling
+- Check 31 — `QACHK-SEMANTIC-VALUE-BINDING` — semantic display control missing its visible
+ value binding
+- Check 32 — `QACHK-ACTION-LABEL-FIT` — multiword action label does not fit its control
Agents that write `.pa.yaml` files MUST run these checks against their own
output before returning, and fix every issue inline. Report the outcome of
@@ -84,20 +96,24 @@ QA: 1 PASS · 2 PASS · 3 PASS · 4 FIXED(7) · 5 PASS · 6 FIXED(2) · 7 FIXED(
- `N/A` — the construct the check targets does not appear on this screen (no gallery, no
`ModernCard`). Use this honestly; it is not a synonym for "did not check".
-Checks 7, 18 and 21 apply frequently, but their outcomes still depend on the file:
+`QACHK-CROSS-AXIS-ALIGNMENT`, `QACHK-ACCESSIBLE-LABEL-MISSING` and
+`QACHK-LOW-CONTRAST-TEXT` apply frequently, but their outcomes still depend on the file:
-- Check 7 is `N/A` when the changed scope has no children of an AutoLayout container.
-- Check 18 is `N/A` when the changed scope contains only decorative controls.
-- Check 21 is `N/A` when the changed scope has no non-default coloured surface.
-- Check 27 is `N/A` only when the brief explicitly requires fixed ManualLayout with
- deliberate screen-level overlays.
+- `QACHK-CROSS-AXIS-ALIGNMENT` is `N/A` when the changed scope has no children of an
+ AutoLayout container.
+- `QACHK-ACCESSIBLE-LABEL-MISSING` is `N/A` when the changed scope contains only
+ decorative controls.
+- `QACHK-LOW-CONTRAST-TEXT` is `N/A` when the changed scope has no non-default coloured
+ surface.
+- `QACHK-ROOT-CONTAINMENT` is `N/A` only when the brief explicitly requires fixed
+ ManualLayout with deliberate screen-level overlays.
`PASS` is valid when every applicable control was inspected and no defect was found.
Never infer that a check was skipped solely from the number of controls on the screen.
---
-## Check 1 — CONTROL-VERSION-SUFFIX (`Control:` value contains `@version`)
+## Check 1 — `QACHK-CONTROL-VERSION-SUFFIX` (`Control:` value contains `@version`)
**Problem:** Every control type resolves to exactly one template version per app. A single
`Control: [email protected]` anywhere in the app pins every `ModernText` instance to one
@@ -124,7 +140,7 @@ check is cheap; run it first.
---
-## Check 2 — MISSING-FORMULA-PREFIX (property value without `=`)
+## Check 2 — `QACHK-MISSING-FORMULA-PREFIX` (property value without `=`)
**Problem:** Every `.pa.yaml` property value is a Power Fx expression. A value without the
`=` prefix fails the whole file at parse time, and a file that does not parse reports no
@@ -169,7 +185,7 @@ not Power Fx and take no `=`.
---
-## Check 3 — DUPLICATE-PROPERTY-KEY (same key twice in one `Properties:` block)
+## Check 3 — `QACHK-DUPLICATE-PROPERTY-KEY` (same key twice in one `Properties:` block)
**Problem:** YAML rejects the whole file, and because it is a parse failure no other
diagnostic in that screen is reported:
@@ -189,7 +205,7 @@ first use's line and column — go there directly.
---
-## Check 4 — ENUM-LITERAL (enum qualifier or member written incorrectly)
+## Check 4 — `QACHK-ENUM-LITERAL` (enum qualifier or member written incorrectly)
An enum literal has two parts and each fails differently. Check both.
@@ -263,7 +279,7 @@ Font: =Font.'Open Sans'
---
-## Check 5 — MISSING-VARIANT (control that declares variants written without one)
+## Check 5 — `QACHK-MISSING-VARIANT` (control that declares variants written without one)
**Problem:** A control whose template declares variants has no default. Omitting the key
fails the whole compile with a message that names neither file nor control:
@@ -292,7 +308,7 @@ whose definition in your brief includes a `Variants` section — check that a si
---
-## Check 6 — LayoutMinWidth / LayoutMinHeight on every GroupContainer
+## Check 6 — `QACHK-CONTAINER-MIN-SIZE` (LayoutMinWidth / LayoutMinHeight on every GroupContainer)
**Problem:** Power Apps defaults `LayoutMinWidth` to 250 and `LayoutMinHeight` to
100 on `GroupContainer`. In a sidebar, header, or narrow cell, these defaults
@@ -312,7 +328,7 @@ LayoutMinHeight: =0
---
-## Check 7 — CROSS-AXIS-ALIGNMENT (container `LayoutAlignItems` and child `AlignInContainer`)
+## Check 7 — `QACHK-CROSS-AXIS-ALIGNMENT` (container `LayoutAlignItems` and child `AlignInContainer`)
Cross-axis sizing is decided in two places. Check the container first — one container fix
replaces a fix on every one of its children.
@@ -369,7 +385,7 @@ in your report rather than claiming a clean pass.
---
-## Check 8 — FILLPORTIONS-DEFAULT (missing `FillPortions` on AutoLayout child)
+## Check 8 — `QACHK-FILLPORTIONS-DEFAULT` (missing `FillPortions` on AutoLayout child)
**Problem:** Children of an AutoLayout container inherit a PA-chosen default for
`FillPortions` that varies by control type, so the intent isn't clear.
@@ -398,7 +414,7 @@ layout intent is explicit.
---
-## Check 9 — SCROLL-TRAP (`FillPortions: =1` inside scroll container)
+## Check 9 — `QACHK-SCROLL-TRAP` (`FillPortions: =1` inside scroll container)
**Problem:** When a container has `LayoutOverflowY: =LayoutOverflow.Scroll` and
its direct child has `FillPortions: =1`, the child is pinned to the viewport
@@ -419,7 +435,7 @@ FillPortions: =0
---
-## Check 10 — WRAP-MISSING (single-line label without `Wrap: =false`)
+## Check 10 — `QACHK-WRAP-MISSING` (single-line label without `Wrap: =false`)
**Problem:** Power Apps defaults `Wrap` to `true` on `Label` controls. A narrow
nav item, breadcrumb, badge, or KPI value will wrap its text onto two lines and
@@ -449,7 +465,7 @@ comment text. These should keep the default wrapping behavior.
---
-## Check 11 — NO-HEIGHT-TRAP (`FillPortions: =0` without explicit `Height`)
+## Check 11 — `QACHK-NO-HEIGHT-TRAP` (`FillPortions: =0` without explicit `Height`)
**Problem:** When an AutoLayout child has `FillPortions: =0` (or `FillPortions`
is absent, which defaults to 0) and no explicit `Height`, Power Apps defaults
@@ -511,7 +527,7 @@ child that uses `AlignInContainer: =AlignInContainer.Stretch`; the parent alread
---
-## Check 12 — TEXT-PADDING (ModernText, Label padding defaults to 5)
+## Check 12 — `QACHK-TEXT-PADDING` (ModernText, Label padding defaults to 5)
**Problem:** `ModernText` and `Label` controls default `PaddingTop`, `PaddingBottom`,
`PaddingLeft`, and `PaddingRight` to `5`. In most UI contexts (labels in a
@@ -547,7 +563,7 @@ padding and gaps.
---
-## Check 13 — FILLPORTIONS-HEIGHT-CONFLICT (both set on the same control)
+## Check 13 — `QACHK-FILLPORTIONS-HEIGHT-CONFLICT` (both set on the same control)
**Problem:** Setting both `FillPortions: =N` (where `N > 0`) and an explicit
`Height: =value` on the same control within a vertical AutoLayout container confuses the layout engine.
@@ -563,7 +579,7 @@ against the parent's available space.
---
-## Check 14 — FILLPORTIONS-WIDTH-CONFLICT (both set on the same control)
+## Check 14 — `QACHK-FILLPORTIONS-WIDTH-CONFLICT` (both set on the same control)
**Problem:** Setting both `FillPortions: =N` (where `N > 0`) and an explicit
`Width: =value` on the same control within a horizontal AutoLayout container
@@ -580,7 +596,7 @@ against the parent's available space.
---
-## Check 15 — GALLERY-TEMPLATE-LAYOUT (absolutely positioned gallery rows)
+## Check 15 — `QACHK-GALLERY-TEMPLATE-LAYOUT` (absolutely positioned gallery rows)
**Problem:** `Gallery` is a Classic control with no AutoLayout variant. Controls placed
directly in its template are positioned with absolute `X`/`Y`/`Width`, so the row is
@@ -619,7 +635,7 @@ needs no shell.
---
-## Check 16 — FIXED-LAYOUT-WIDTH (hard-coded pixel width on a layout container)
+## Check 16 — `QACHK-FIXED-LAYOUT-WIDTH` (hard-coded pixel width on a layout container)
**Problem:** A container with `Width: =1120` renders 1120px wide inside a 1024px viewport
and clips its right edge. The screen looks correct only at the width it was authored at.
@@ -644,7 +660,7 @@ fixed-width sidebars. Keep interactive ones at 44px or larger so they remain tap
---
-## Check 17 — ITEM-DISPLAY-TEXT (quoted column name instead of a per-item formula)
+## Check 17 — `QACHK-ITEM-DISPLAY-TEXT` (quoted column name instead of a per-item formula)
**Problem:** `ItemDisplayText` and `ItemKey` are evaluated per row with `ThisItem` in
scope. `ItemDisplayText: ="Value"` is a constant string, not a field reference, and the
@@ -666,7 +682,7 @@ ItemDisplayText: =ThisItem.Value
---
-## Check 18 — ACCESSIBLE-LABEL-MISSING (control with no `AccessibleLabel`)
+## Check 18 — `QACHK-ACCESSIBLE-LABEL-MISSING` (control with no `AccessibleLabel`)
**Problem:** A control that renders content or accepts input without an `AccessibleLabel`
is unusable with a screen reader, and an interactive gallery without `TabIndex` cannot be
@@ -698,7 +714,7 @@ divider lines. Do not label those.
---
-## Check 19 — NO-REFLOW (horizontal row with no narrow-width strategy)
+## Check 19 — `QACHK-NO-REFLOW` (horizontal row with no narrow-width strategy)
**Problem:** A horizontal AutoLayout row authored at desktop width does not reflow. At
phone width its children squeeze to a few pixels, run off the right edge, or collapse to
@@ -738,7 +754,7 @@ carry `FillPortions` and remain legible when proportionally narrowed.
---
-## Check 20 — ROOT-NOT-SCROLLABLE (screen content taller than the viewport cannot be reached)
+## Check 20 — `QACHK-ROOT-NOT-SCROLLABLE` (screen content taller than the viewport cannot be reached)
**Problem:** A canvas screen does not scroll by itself. If the root container is not a
scroll container, everything below the viewport is unreachable — no scrollbar, no wheel
@@ -755,15 +771,16 @@ LayoutDirection: =LayoutDirection.Vertical
LayoutOverflowY: =LayoutOverflow.Scroll
```
-Then re-run Check 9: a **direct** child of a scroll container must use `FillPortions: =0`,
-or it is pinned to the viewport height and the content is clipped rather than scrolled.
+Then re-run `QACHK-SCROLL-TRAP`: a **direct** child of a scroll container must use
+`FillPortions: =0`, or it is pinned to the viewport height and the content is clipped
+rather than scrolled.
**Exception:** A screen whose content is genuinely fixed and fits the shortest supported
viewport.
---
-## Check 21 — LOW-CONTRAST-TEXT (text colour not set against a coloured background)
+## Check 21 — `QACHK-LOW-CONTRAST-TEXT` (text colour not set against a coloured background)
**Problem:** Text controls do not inherit a contrasting colour from their container. A
container with a dark `Fill` whose child text controls omit `Color` renders near-black on
@@ -784,13 +801,14 @@ Color: =RGBA(239, 246, 250, 1)
---
-## Check 22 — VARIANT-SURFACE-CONTRAST (light foreground on a variant-supplied surface)
+## Check 22 — `QACHK-VARIANT-SURFACE-CONTRAST` (light foreground on a variant-supplied surface)
-**Problem:** Check 21 catches text that *omits* a colour. This is the opposite failure: the
-colour is set, and it is set against a surface the control derives from a **Fluent enum**
-rather than from `Fill`. The agent picks a near-white foreground for a dark theme, the
-variant supplies a near-white surface, and the control renders white-on-white — a nav
-button whose label is invisible, or a status badge that reads as an empty pill.
+**Problem:** `QACHK-LOW-CONTRAST-TEXT` catches text that *omits* a colour. This is the
+opposite failure: the colour is set, and it is set against a surface the control derives
+from a **Fluent enum** rather than from `Fill`. The agent picks a near-white foreground
+for a dark theme, the variant supplies a near-white surface, and the control renders
+white-on-white — a nav button whose label is invisible, or a status badge that reads as
+an empty pill.
These are the enum values that produce a **light** surface:
@@ -836,7 +854,7 @@ never one from your palette and the other from an enum default.
---
-## Check 23 — CARD-PLACEHOLDER (`ModernCard` slot left unset)
+## Check 23 — `QACHK-CARD-PLACEHOLDER` (`ModernCard` slot left unset)
**Problem:** `ModernCard` does not render unset slots as empty. It substitutes placeholder
content: a large stock photograph for `Image`, and the literal strings `Title`, `Subtitle`
@@ -877,7 +895,7 @@ three text slots into a short fixed height.
---
-## Check 24 — GALLERY-ROW-FITS-CONTENT (`TemplateSize` smaller than the row template)
+## Check 24 — `QACHK-GALLERY-ROW-FITS-CONTENT` (`TemplateSize` smaller than the row template)
**Problem:** `TemplateSize` fixes the row height; the template's content does not
negotiate with it. A row sized for density — `TemplateSize: =If(Self.Width < 640, 320, 132)`
@@ -909,7 +927,7 @@ truncation is visible and the row still shows its identifying label.
---
-## Check 25 — GRID-CONTRACT (GridLayout axes, row count or height disagree)
+## Check 25 — `QACHK-GRID-CONTRACT` (GridLayout axes, row count or height disagree)
**Problem:** GridLayout accepts incomplete or inconsistent sizing formulas. The app can
compile while cards overlap, jump columns, leave a large blank tail, or clip shadows.
@@ -933,7 +951,7 @@ compile while cards overlap, jump columns, leave a large blank tail, or clip sha
---
-## Check 26 — DUPLICATE-GRID-SEARCH (`ModernDataGrid` plus separate search UI)
+## Check 26 — `QACHK-DUPLICATE-GRID-SEARCH` (`ModernDataGrid` plus separate search UI)
**Problem:** `ModernDataGrid.Searchable: =true` renders a built-in search box. If the
screen also provides a `ModernTextInput` or filter bar that filters the same rows, users
@@ -950,7 +968,7 @@ action is not duplicate UI.
---
-## Check 27 — ROOT-CONTAINMENT (responsive screen content outside its root container)
+## Check 27 — `QACHK-ROOT-CONTAINMENT` (responsive screen content outside its root container)
**Problem:** A responsive screen can compile with a correctly configured root AutoLayout
container while the actual header, sections and galleries are mis-indented as sibling
@@ -986,8 +1004,9 @@ Screens:
# ...
```
-After moving the controls, re-run Checks 8, 9, 13, 14 and 20 because their parent
-AutoLayout context has changed.
+After moving the controls, re-run `QACHK-FILLPORTIONS-DEFAULT`, `QACHK-SCROLL-TRAP`,
+`QACHK-FILLPORTIONS-HEIGHT-CONFLICT`, `QACHK-FILLPORTIONS-WIDTH-CONFLICT` and
+`QACHK-ROOT-NOT-SCROLLABLE` because their parent AutoLayout context has changed.
**Exception:** A brief that explicitly requires a fixed ManualLayout screen with
deliberate screen-level overlays may use multiple top-level controls. Do not infer this
@@ -995,7 +1014,7 @@ exception from the YAML; it must be stated in the brief.
---
-## Check 28 — TIMER-LIFECYCLE (timer has no automatic start/reset edge)
+## Check 28 — `QACHK-TIMER-LIFECYCLE` (timer has no automatic start/reset edge)
**Problem:** A Timer with `AutoStart: =false` does not reliably start when its `Start`
variable was already set to true before navigation. It needs a false-to-true transition
@@ -1043,7 +1062,7 @@ and a workflow that does not block while it is stopped.
---
-## Check 29 — READ-ONLY-ANCESTOR (interactive control under a read-only ancestor)
+## Check 29 — `QACHK-READ-ONLY-ANCESTOR` (interactive control under a read-only ancestor)
**Problem:** `DisplayMode` is inherited. A Gallery or container set to
`DisplayMode.View` makes every descendant button, input and toggle non-interactive even
@@ -1072,7 +1091,7 @@ Set `DisplayMode` only on the individual action when it genuinely needs to be di
---
-## Check 30 — HIDDEN-BOUNDED-LIST (small bounded gallery hidden in nested scrolling)
+## Check 30 — `QACHK-HIDDEN-BOUNDED-LIST` (small bounded gallery hidden in nested scrolling)
**Problem:** A short, known roster is placed in a fixed-height Gallery inside an already
scrollable screen. The Gallery creates a second scroll region and silently hides rows;
@@ -1082,7 +1101,8 @@ four of six people and have no cue that more exist.
**Detect:** For every Gallery inside a root scroll container:
1. If its Items source is a bounded local collection with roughly ten or fewer rows,
- compare `Height` with `CountRows(Items) * TemplateSize` plus template padding.
+ compare `Height` with
+ `AllItemsCount * TemplateHeight + ((AllItemsCount + 1) * TemplatePadding)`.
2. Flag it when the fixed height is smaller than the full list, regardless of
`ShowScrollbar`.
3. Flag a list that can open at a non-zero internal scroll position without an explicit
@@ -1091,7 +1111,7 @@ four of six people and have no cue that more exist.
**Fix:** Let small bounded lists grow and rely on the root scroll:
```yaml
-Height: =CountRows(Self.AllItems) * Self.TemplateSize
+Height: =Self.AllItemsCount * Self.TemplateHeight + ((Self.AllItemsCount + 1) * Self.TemplatePadding)
ShowScrollbar: =false
```
@@ -1103,7 +1123,7 @@ intentional and visibly discoverable.
---
-## Check 31 — SEMANTIC-VALUE-BINDING (semantic display control missing its visible value)
+## Check 31 — `QACHK-SEMANTIC-VALUE-BINDING` (semantic display control missing its visible value)
**Problem:** Semantic controls can render sample placeholder text when the property that
drives their visible value is absent. A `Badge` with a correct `AccessibleLabel`,
@@ -1114,7 +1134,8 @@ for every row while the accessibility tree announces the real status.
- `Badge`: `Content`
- `Avatar`: its name/text/image property from the exact control definition
-- `ModernCard`: Title, Subtitle, Description and image slots per Check 23
+- `ModernCard`: Title, Subtitle, Description and image slots per
+ `QACHK-CARD-PLACEHOLDER`
- Any other semantic control: the content/value property returned by `describe_control`
An `AccessibleLabel` is not the visible value binding.
@@ -1134,7 +1155,7 @@ visible value.
---
-## Check 32 — ACTION-LABEL-FIT (multiword action label does not fit its control)
+## Check 32 — `QACHK-ACTION-LABEL-FIT` (multiword action label does not fit its control)
**Problem:** A multiword button or link with no explicit width uses a small platform
default. Labels such as `Add to my itinerary`, `Back to speakers`, or `CSV import setup`
diff --git a/plugins/canvas-apps/skills/canvas-app/SKILL.md b/plugins/canvas-apps/skills/canvas-app/SKILL.md
index 35adedddc..3f38c7936 100644
--- a/plugins/canvas-apps/skills/canvas-app/SKILL.md
+++ b/plugins/canvas-apps/skills/canvas-app/SKILL.md
@@ -1,6 +1,6 @@
---
name: canvas-app
-version: 3.0.0
+version: 3.0.1
description: Creates or edits a Power Apps Canvas App through the Canvas Authoring MCP coauthoring session. Handles new app generation, direct targeted edits, complex multi-screen changes, responsive layout, per-screen self-QA, and compile-error convergence. Trigger on requests to create, build, generate, modify, update, change, fix, or edit a Canvas App or .pa.yaml files.
author: Microsoft Corporation
user-invocable: true
@@ -99,24 +99,26 @@ unrecognized. Confirm it matches a remaining dispatch row and leave it in place.
After all builders finish:
-- Check each builder's `QA:` line. It must list an outcome for all 32 checks in
+- Check each builder's `QA:` line. It must list an outcome for every check in
`${PLUGIN_ROOT}/references/QAChecks.md`. Treat these as unrun and return the existing
screen to the builder for self-QA only:
- - a missing or truncated line, a line omitting any check 1-32, or a bare fix count;
- - an outcome contradicted by the screen structure, such as check 7 `N/A` despite
- AutoLayout children, check 18 `N/A` despite content controls, check 21 `N/A` despite
- a coloured surface, check 24 `N/A` despite a Gallery, or check 32 `N/A` despite a
- newly created `ModernDataGrid`;
- - check 27 `PASS` while a responsive root has screen-level siblings;
- - check 32 `PASS` while a multiword action directly under vertical AutoLayout lacks
- `Width: =Parent.Width`.
+ - a missing or truncated line, a line omitting any check listed in
+ `${PLUGIN_ROOT}/references/QAChecks.md`, or a bare fix count;
+ - an outcome contradicted by the screen structure, such as
+ `QACHK-CROSS-AXIS-ALIGNMENT` `N/A` despite AutoLayout children,
+ `QACHK-ACCESSIBLE-LABEL-MISSING` `N/A` despite content controls,
+ `QACHK-LOW-CONTRAST-TEXT` `N/A` despite a coloured surface, or
+ `QACHK-ROOT-CONTAINMENT` `PASS` while a responsive root has screen-level siblings;
+ - `QACHK-GALLERY-ROW-FITS-CONTENT` `N/A` despite the screen containing a Gallery;
+ - `QACHK-ACTION-LABEL-FIT` `PASS` while a multiword action directly under vertical
+ AutoLayout lacks `Width: =Parent.Width`.
- A self-QA follow-up is not a rebuild. Ask the builder to inspect and repair the existing
target file, then return the corrected `QA:` line.
- Compare every repeated navigation block against `canvas-app-shared.md`: same items,
order, wordmark, colours, and narrow-width behavior. Builders cannot perform this
app-wide comparison because each sees only one screen.
-- Reject check 23 `PASS` when a `ModernCard` displays Title, Subtitle and Description with
- `Height < 180`; return that screen for self-QA.
+- Reject `QACHK-CARD-PLACEHOLDER` `PASS` when a `ModernCard` displays Title, Subtitle and
+ Description with `Height < 180`; return that screen for self-QA.
- If a builder returns `Status: Blocked`, re-invoke the planner to repair only that screen
brief, then rerun only that builder.
- `Status: Blocked` is the only reason to rerun screen generation. Repair compile
@@ -130,9 +132,10 @@ After all builders finish:
1. Never guess control properties. Use `describe_control`; only write properties returned
for that exact control type or already present on that exact existing control.
2. Use exact RGBA values and shared variable names from approved plans.
-3. Control names are unique across the entire app, not per screen. Every new control a
- builder writes carries that screen's assigned prefix, especially repeated nav bars,
- headers, toolbars, and badges.
+3. Control names are unique across the entire app, not per screen. Every new control uses
+ the standard control-type abbreviation followed by the screen prefix, such as
+ `conDiscNavBar` or `btnDetailBack`, especially for repeated nav bars, headers,
+ toolbars, and badges.
4. Never write a version suffix on `Control:`. Write `Control: ModernText`, never
`Control: [email protected]`. One suffixed instance can produce hundreds of false
`Unknown property` diagnostics throughout the app.