Skip to content

Commit 15b4301

Browse files
Copilotlesaltzm
andauthored
Add CONTROL-VERSION-SUFFIX QA check and bump canvas-apps to 1.0.7
Agent-Logs-Url: https://github.com/microsoft/power-platform-skills/sessions/70a02b42-9c0a-4fda-8591-3de5fb6ae177 Co-authored-by: lesaltzm <69215460+lesaltzm@users.noreply.github.com>
1 parent 7a268b8 commit 15b4301

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

plugins/canvas-apps/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "canvas-apps",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.",
55
"author": {
66
"name": "Microsoft",

plugins/canvas-apps/references/QAChecks.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,26 @@ another at runtime.
213213
**Fix:** Remove the `Width` property. PA computes it from `FillPortions`
214214
against the parent's available space.
215215

216-
---
216+
---
217+
218+
## Check 9 — CONTROL-VERSION-SUFFIX (`Control:` value contains `@version`)
219+
220+
**Problem:** Power Apps YAML sometimes emits control type names with a version
221+
suffix, e.g. `Control: Text@2.0.0` or `Control: Button@1.1`. The versioned form
222+
is not valid in hand-authored `.pa.yaml` files and causes compilation errors or
223+
unexpected behaviour when the targeted runtime differs.
224+
225+
**Detect:** For every `Control:` property in the YAML, check whether the value
226+
contains an `@` character (e.g. `Control: Text@2.0.0`).
227+
228+
**Fix:** Strip the `@…` suffix and keep only the bare control name:
229+
230+
```yaml
231+
# Before:
232+
Control: Text@2.0.0
233+
# After:
234+
Control: Text
235+
```
236+
237+
**Exception:** None. Control type names must never carry a version suffix in
238+
`.pa.yaml` source files.

0 commit comments

Comments
 (0)