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.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
Refactor genpage into agent architecture (v2.0.0) and rebuild eval suite (#136)
Akshay Maloofc01b43e5d64
diff --git a/evals/model-apps/genpage/eval-runbook.md b/evals/model-apps/genpage/eval-runbook.mdnew file mode 100644index 000000000..ab746be49--- /dev/null+++ b/evals/model-apps/genpage/eval-runbook.md@@ -0,0 +1,140 @@+# Eval Runbook for `genpage`++How to evaluate the `genpage` skill. Three layers, run in order.++## Related files++- **Skill definition:** `plugins/model-apps/skills/genpage/SKILL.md`+- **Specialist agents:**+ - `plugins/model-apps/agents/genpage-planner.md`+ - `plugins/model-apps/agents/genpage-entity-builder.md`+ - `plugins/model-apps/agents/genpage-page-builder.md`+ - `plugins/model-apps/agents/genpage-edit-planner.md`+- **References:**+ - `plugins/model-apps/references/rules.md`+ - `plugins/model-apps/references/plan-schema.md`+ - `plugins/model-apps/references/troubleshooting.md`+- **Sample pages:** `plugins/model-apps/samples/1-account-grid.tsx` through `10-detail-with-pageinput.tsx`++## Eval data++All eval definitions live in `evals.json` alongside this file. The file contains:++- `common_workflow_assertions`: 15 workflow checks every run must pass (prereqs, auth, solution selection gating, check-auth pre-flight, plan creation, workflow log, --prompt scoping, prefix discipline at plan-format / resolved-names / solution-alignment)+- `common_code_assertions`: 18 code-quality checks the generated `.tsx` must pass (Fluent UI V9 only, no forbidden patterns, etc.)+- `evals`: 16 test cases — each with `id`, `tier`, `prompt`, `data`, and per-eval `expectations`++The `data` field specifies the user answers and environment state the eval assumes. During manual eval runs, the human grader role-plays this data. During automated runs, the eval harness provides these responses to `AskUserQuestion`.++### Tiers++Each eval has a `tier` for selective running:++| Tier | Count | Purpose |+|------|-------|---------|+| `smoke` | 4 | Diverse representatives (Dataverse page, mock page, edit, plan-schema compliance). Run on every PR. |+| `full` | 9 | All core scenarios (wizard, kanban, analytics, entity creation, app creation, multi-page, localization, choices). Run nightly or pre-release. |+| `stress` | 3 | Edge cases (az not logged in / not member of org, filename collision, plan revision loop). Run with full suite. |++## Quick start: running one eval++Example using eval id 1 (account gallery).++1. Open Claude Code with the `model-apps` plugin loaded.+2. Send:+ > /genpage Build a page showing Account records as a gallery of cards. Include name, website, email, phone number. Make the gallery scrollable and each card clickable to open the Account record.+3. As the planner asks questions, answer per the eval's `data.question_answers` field.+4. When the planner enters plan mode, approve it (or reject per the stress eval's `plan_revision_scenario`).+5. Save the generated `workflow-log.md` and the produced `.tsx` files.+6. **Layer 1 check:** Grade the workflow-log against the eval's `expectations` and the `common_workflow_assertions`.+7. **Layer 2 check:** Grep the generated `.tsx` against `common_code_assertions`.+8. **Layer 3 check:** Score the generated page against the UX rubric.++## How to run evals++### Step 1: Execute each eval's prompt++Invoke `/genpage` with the eval's `prompt` as the user message. For each user question the planner asks (`AskUserQuestion`), respond per the eval's `data.question_answers`. For edit evals, provide the stated app-id and page-id when asked.++For stress evals with specific scenarios (e.g., eval 12's plan-revision-scenario or eval 14's filename-collision), follow the scripted behavior in the `data` field.++Save for each run:+- `workflow-log.md` (required output, per `eval_instructions`)+- Every `.tsx` file produced in the working directory+- Any plan documents (`genpage-plan.md`, `genpage-edit-plan.md`)++To run only a subset, filter by `tier` (e.g., `smoke`-only for quick validation).++### Step 2: Layer 1 — Workflow assertions++For each eval, verify:+- All 15 `common_workflow_assertions` — generic workflow guarantees that every run must satisfy+- All of the eval's own `expectations` — the eval-specific workflow checks++These are checked against the `workflow-log.md` and the files in the working directory. No browser or deployment needed for this layer.++**Pass criteria:** Every assertion passes. Zero missed agent invocations, zero skipped phases, zero misordered operations.++### Step 3: Layer 2 — Code quality++For every generated `.tsx` file, check against the 18 `common_code_assertions`.++These can be verified with grep / regex against the source:++| Assertion | Grep pattern |+|-----------|--------------|+| Single file + default export | `^export default GeneratedComponent` |+| Destructures `pageInput` | `const.*\{.*pageInput.*\}.*=.*props` |+| Uses `makeStyles` | `makeStyles` |+| No `100vh`/`100vw` | `grep -E '100v[hw]'` should return nothing |+| No forbidden theme functions | `grep -E '(createTheme\|mergeThemes\|useTheme)'` should return nothing |+| No `<FluentProvider>` wrapper | `grep '<FluentProvider'` should return nothing (except in Dark Mode Toggle pattern) |+| No raw URL navigation | `grep -E '(window\.location\|href=.*pagetype=)'` should return nothing |+| `Xrm.Navigation.navigateTo` | If navigation is used, must appear |+| Unsized icons | `grep -E '\w+(16\|20\|24\|28\|32)(Regular\|Filled)\b'` should return nothing |+| try-catch on dataApi | Each `await dataApi\.` must be inside a try block |+| No placeholders | `grep -E '(TODO\|FIXME\|\.\.\..*$)'` should not match in function bodies |+| FormattedValue for lookups | Any `_xxx_value` in a select must be paired with a FormattedValue access |+| `createTableColumn` import | If `<DataGrid>` is used, must import `createTableColumn` |++**Pass criteria:** Every generated `.tsx` passes all 18 code assertions. Regressions here indicate the page-builder agent drifted from the rules.++### Step 4: Layer 3 — UX rubric++Review each deployed page visually (screenshot or live in the browser) against this rubric:++| Category | 2 (Full) | 1 (Partial) | 0 (Fail) |+|----------|----------|-------------|----------|+| **Workflow** | All phases ran correctly, all agents invoked as expected | Minor deviation (e.g., wrong Phase order) | Phase skipped or wrong agent invoked |+| **Code** | Clean code, all rules followed, no placeholders, good naming | Minor issues (1-2 rule violations) | Code has JS errors, broken logic, or major rule violations |+| **Visual** | Polished layout, good spacing, Fluent tokens, consistent hierarchy | Decent but cramped, misaligned, or inconsistent | Broken layout or no visible content |+| **Data** | All data fields populated correctly, real data shown, lookups resolved | Some fields missing or showing IDs instead of names | Blank page or wrong data |+| **Design** | Right visual for the data (grid vs cards vs dashboard), compact, no clutter, accessible | Reasonable but suboptimal choice | Wrong visual type for the data |++Max score: **10 per page** (5 categories × 2 points).++**Pass criteria:** Average score ≥ 8.5/10 across all pages, no individual page below 7/10.++## Pass / fail summary++An eval run passes when:+- **Layer 1:** 100% of workflow assertions pass+- **Layer 2:** 100% of code assertions pass on every `.tsx`+- **Layer 3:** Average UX score ≥ 8.5, no page below 7++An eval run fails if any layer's criteria is not met. Failures should be filed against the specific agent that owns the concern:++| Failure type | Likely owner |+|--------------|--------------|+| Missed agent invocation, wrong phase order | Orchestrator (`SKILL.md`) |+| Plan document missing sections or wrong structure | `genpage-planner.md` or `plan-schema.md` |+| Entity created in wrong order or missing columns | `genpage-entity-builder.md` |+| Generated code violates a common_code_assertion | `genpage-page-builder.md` or `rules.md` |+| Edit modified the wrong thing or broke existing behavior | `genpage-edit-planner.md` or orchestrator edit flow |++## When to run evals++- **Smoke tier:** on every PR that touches the skill, agents, or rules reference+- **Full + smoke:** nightly, or before merging a significant change+- **Stress tier:** with the full suite, or when changing the orchestrator probe logic, filename validation, or plan-mode handling+- **All tiers:** before bumping the plugin version (any 2.x.0 release)diff --git a/evals/model-apps/genpage/evals.json b/evals/model-apps/genpage/evals.jsonindex 76603d807..d81057bd2 100644--- a/evals/model-apps/genpage/evals.json+++ b/evals/model-apps/genpage/evals.json@@ -1,180 +1,441 @@{"skill_name": "genpage",- "eval_instructions": "When running these evals, the agent MUST save a workflow-log.md file alongside the generated code. The log must document every step attempted (Step 1 through Step 10), including: commands run (or attempted), questions asked, files read, decisions made, and infrastructure barriers encountered. This is required for grading workflow-level assertions.",+ "eval_instructions": "See eval-runbook.md in this folder for how to run these evals, how the 3-layer check works (workflow → code quality → UX rubric), and what pass/fail means. Every eval run MUST save a workflow-log.md file documenting all phases attempted — agents invoked, commands run, questions asked, files read, decisions made.",+ "common_workflow_assertions": [+ "A workflow-log.md file is saved to the working directory documenting all phases attempted",+ "Phase 0: A working directory is created with a kebab-case name derived from the user's description",+ "Phase 1 (Planner): node --version and pac help are run separately (not chained with &&) and PAC CLI version >= 2.7.0 is verified",+ "Phase 1 (Planner): pac auth list is run and the active environment is identified and reported to the user",+ "Phase 1 (Planner): Question 1 (new or edit) is asked via AskUserQuestion",+ "Phase 1 (Planner): genpage-plan.md ALWAYS contains 'Solution:' and 'Publisher Prefix:' lines in ## Environment; default fallback is 'Solution: Default' + 'Publisher Prefix: new' for code-only flows",+ "Phase 1 (Planner): The solution selection question is asked via AskUserQuestion ONLY when the build needs metadata work (new entities OR new app); for code-only flows the question is skipped but the Default values are still written",+ "Phase 1 (Planner): When the solution question runs, the planner queries /solutions via dataverse-request.js and presents options (existing custom solutions, 'Create new genpage-<app> solution', 'Use Default Solution')",+ "Phase 1 (Planner): The plan is presented via EnterPlanMode and user approval is requested",+ "Phase 1 (Planner): genpage-plan.md is written to the working directory, conforming to references/plan-schema.md",+ "Phase 2a: When entities need creating, scripts/check-auth.js runs and returns ok:true before entity-builder is invoked; on ok:false the orchestrator surfaces the message to the user and halts",+ "Phase 6 / 6.5 / 7.5 / Edit Phase 6 (--prompt scoping): The FIRST pac model genpage upload for each new page passes --prompt with the FULL page description (from plan's ## User Requirements). EVERY SUBSEQUENT upload of an existing page (--page-id, no --add-to-sitemap) passes --prompt scoped to ONLY the delta of changes in that upload — never the full original description",+ "Prefix discipline — plan format: Every name in `## Entity Creation Required` (table headings, column Suffix values, choice column suffixes, relationship Lookup Suffix values) is a bare suffix matching `^[a-z][a-z0-9]+$`. No value contains an underscore or a prefix. The prefix lives only in `## Environment` → `Publisher Prefix:`.",+ "Prefix discipline — resolved names: For every operation in `entity-creation-log.md`, the Resolved Full Name starts with the `Publisher Prefix:` value from the plan's `## Environment` followed by `_` and the bare suffix from the plan (e.g., Publisher Prefix `crb2b` + suffix `playername` → `crb2b_playername`).",+ "Prefix discipline — solution alignment: If the env has a dominant non-system custom prefix (>=50% of custom tables AND >=3 such tables), the planner surfaces this in the solution question and ordered the option whose publisher prefix matches the dominant prefix FIRST as the recommended choice. If the user picks a different-prefix solution, the planner logged a one-line warning before proceeding."+ ],+ "common_code_assertions": [+ "Generated .tsx is a single file with `export default GeneratedComponent`",+ "Generated .tsx destructures props including `pageInput` (e.g., `const { dataApi, pageInput } = props;`)",+ "Generated .tsx imports types from `./RuntimeTypes` (for Dataverse pages) or uses realistic inline mock data (for mock pages)",+ "Generated .tsx uses `makeStyles` with tokens for styling — no inline styles for static values",+ "Generated .tsx does NOT use `100vh` or `100vw`",+ "Generated .tsx does NOT import `createTheme`, `mergeThemes`, or `useTheme` (these do not exist in Fluent UI V9)",+ "Generated .tsx does NOT wrap content in a top-level `<FluentProvider>` (already provided at root)",+ "Generated .tsx does NOT use React Router or construct raw URLs / manipulate `window.location` for navigation",+ "Generated .tsx uses `Xrm.Navigation.navigateTo` for any in-app navigation",+ "Generated .tsx uses Fluent UI icons in unsized form (e.g., `AddRegular`, not `Add24Regular`)",+ "Every named import from `@fluentui/react-icons` in the generated .tsx appears in references/verified-icons.txt — no hallucinated icon names",+ "Generated .tsx wraps async `dataApi` calls in try-catch (Dataverse pages only)",+ "Generated .tsx does NOT include any `TODO`, `FIXME`, ellipsis placeholders, or incomplete function bodies",+ "Generated .tsx for lookup display names uses `@OData.Community.Display.V1.FormattedValue` annotations, not lookup-name fields in $select",+ "For DataGrids, generated .tsx imports `createTableColumn` from `@fluentui/react-components` and configures column sizing (columnSizingOptions or resizableColumns)",+ "For Dataverse pages with fetching, separate setState calls inside async callbacks are batched into a single setData(...) call (Rule 14)",+ "For Dataverse list/detail pages, the inline IIFE + window cache + cache-guard pattern from references/data-caching.md is used (Rule 15); no useCallback for data-fetching functions",+ "For multi-page builds, cross-page navigation uses quoted `\"PAGEREF_<filename>\"` placeholders that the orchestrator's Phase 6.5 resolves to real GUIDs"+ ],"evals": [{"id": 1,+ "tier": "smoke","prompt": "Build a page showing Account records as a gallery of cards. Include name, website, email, phone number. Make the gallery scrollable and each card clickable to open the Account record.",- "expected_output": "The skill validates prerequisites (node, pac), authenticates with PAC CLI, runs pac model list-languages, gathers requirements (acknowledges the description, confirms Dataverse entity usage with Account table), presents a plan, generates RuntimeTypes.ts via pac model genpage generate-types, reads genpage-rules-reference.md and a relevant sample (8-responsive-cards.tsx), generates a complete .tsx file using only verified column names from RuntimeTypes.ts, saves it, asks about deployment, runs pac model list, asks the user which app to publish to, deploys with pac model genpage upload, offers browser verification, and provides a final summary.",- "files": [],- "expectations": [- "A workflow-log.md file is saved documenting all steps attempted",- "Step 1: node --version is run to verify Node.js is installed",- "Step 1: pac help is run and PAC CLI version >= 2.3.1 is verified",- "Step 1: Commands are run separately — not chained with &&",- "Step 2: pac auth list is run to check authentication",- "Step 2: The active environment is identified and reported to the user",- "Step 2: pac model list-languages is run after confirming the active environment",- "Step 3: Question 1 (new or edit) is asked via AskUserQuestion",- "Step 3: Question 2 (describe the page) is skipped because the user provided a description with the command",- "Step 3: Question 3 (Dataverse or mock data) is skipped because the description specifies Account table",- "Step 3: Question 4 (specific requirements) is asked via AskUserQuestion",- "Step 4: A plan is presented listing data source (Account entity), features, Fluent UI components, and layout approach",- "Step 4: User confirmation is requested before proceeding",- "Step 5: pac model genpage generate-types --data-sources 'account' is run to generate RuntimeTypes.ts",- "Step 5: RuntimeTypes.ts is read to identify actual column names on the account entity",- "Step 5: Only column names found in RuntimeTypes.ts are used in the generated code — no guessed names",- "Step 6: genpage-rules-reference.md is read before generating code",- "Step 6: A relevant sample file is read (e.g., 8-responsive-cards.tsx for a card layout)",- "Step 7: Generated code uses React 17 + TypeScript with Fluent UI V9 components",- "Step 7: Generated code is a single .tsx file with export default GeneratedComponent",- "Step 7: Generated code uses makeStyles with tokens — not inline styles for static values",- "Step 7: Generated code wraps dataApi calls in try-catch",- "Step 7: Generated code uses @OData.Community.Display.V1.FormattedValue for lookup display names",- "Step 7: No placeholders, TODOs, or ellipses in the generated code",- "Step 7: Code is saved to a .tsx file",- "Step 8: User is asked 'Would you like to publish this page to Power Apps?'",- "Step 8: pac model list is run to show available apps",- "Step 8: User is asked which app to publish to — no default is assumed",- "Step 8: pac model genpage upload is run with --app-id, --code-file, --data-sources, --prompt, --model, --name, --agent-message, --add-to-sitemap flags",- "Step 9: User is asked about browser verification via AskUserQuestion",- "Step 10: Final summary includes confirmation, how to find the page, and offer to make updates"+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entities: account",+ "specific_requirements": "Responsive card layout, each card clickable to open the Account record"+ },+ "app_selection": "user selects an existing app from pac model list"+ },+ "expectations": [+ "Phase 1 (Planner): pac model list-tables --search 'account' is run and results are filtered by exact logical-name match",+ "Phase 1 (Planner): Account entity is detected as existing; plan records no entity creation required",+ "Phase 2: Entity-builder is SKIPPED (no entities to create)",+ "Phase 4: pac model genpage generate-types --data-sources 'account' --output-file <working-dir>/RuntimeTypes.ts is run",+ "Phase 5b (single-page fast path): Plan has 1 page so orchestrator inlines the build — NO Task subagent dispatched for the page-builder",+ "Phase 5b: Orchestrator reads ${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt before writing the .tsx",+ "Phase 5b: A relevant sample file is read (e.g., 7-responsive-cards.tsx for card layout)",+ "Phase 5b: Generated .tsx uses only column names verified from RuntimeTypes.ts — no guessed names",+ "Phase 5b: After writing, orchestrator greps the .tsx for `from \"@fluentui/react-icons\"` imports and verifies each named import against verified-icons.txt — rewrites if any are missing",+ "Phase 6: pac model genpage upload includes --app-id, --code-file, --data-sources 'account', --prompt, --model, --name, --agent-message, --add-to-sitemap",+ "Phase 6: --prompt value is the FULL page description (from plan's ## User Requirements) — this is the create-step prompt, NOT a delta"]},{"id": 2,+ "tier": "smoke","prompt": "Create a dashboard page with mock data showing sales metrics — monthly revenue chart, top 5 customers table, and a KPI summary bar. Use a modern dark theme look.",- "expected_output": "The skill validates prerequisites, authenticates, detects languages, gathers requirements (confirms mock data usage, notes dark theme preference), presents a plan, skips schema generation (mock data), reads genpage-rules-reference.md and a relevant sample, generates a complete .tsx with D3.js for the chart, realistic mock data, Fluent UI V9 DataGrid for the table, and styled KPI cards using makeStyles with tokens. Deploys without --data-sources flag.",- "files": [],- "expectations": [- "A workflow-log.md file is saved documenting all steps attempted",- "Step 1: node --version and pac help are run separately",- "Step 2: pac auth list is run and environment is confirmed",- "Step 2: pac model list-languages is run after confirming the environment",- "Step 3: Question 1 (new or edit) is asked",- "Step 3: Question 2 is skipped because user provided a description",- "Step 3: Question 3 (Dataverse or mock data) is skipped because user said 'mock data'",- "Step 3: Question 4 (specific requirements) is asked — dark theme is acknowledged",- "Step 4: Plan mentions mock data, D3.js for chart, DataGrid for customers, KPI cards",- "Step 5: Schema generation is SKIPPED because mock data was chosen",- "Step 6: genpage-rules-reference.md is read",- "Step 6: A relevant sample is read for reference",- "Step 7: Generated code includes realistic mock data (not empty arrays or placeholder values)",- "Step 7: Chart uses D3.js — no other charting libraries",- "Step 7: D3 code uses group() not nest()",- "Step 7: DataGrid uses createTableColumn from Fluent UI V9",- "Step 7: Code does NOT use 100vh or 100vw",- "Step 7: Code does NOT import from React Router or external libraries beyond React, Fluent UI V9, Fluent icons, D3",- "Step 7: Code does NOT use createTheme, mergeThemes, or useTheme",- "Step 7: Code does NOT wrap content in FluentProvider",- "Step 7: DatePicker (if used) is imported from @fluentui/react-datepicker-compat, not @fluentui/react-components",- "Step 7: Icons use unsized variants (e.g., AddRegular not Add24Regular)",- "Step 7: Generated code is a single .tsx file with export default GeneratedComponent",- "Step 8: Deployment command omits --data-sources flag (mock data page)",- "Step 8: User is asked which app to publish to — no default assumed"+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Mock data",+ "specific_requirements": "Modern dark theme look"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 1 (Planner): Data source question is skipped or answered 'mock data' — no entity detection needed",+ "Phase 1 (Planner): Plan mentions mock data, D3.js for chart, DataGrid for customers table, KPI cards",+ "Phase 2: Entity-builder is SKIPPED (mock data)",+ "Phase 4: RuntimeTypes generation is SKIPPED (mock data)",+ "Phase 5 (Page Builder): genpage-page-builder is invoked with Data mode: mock",+ "Phase 5 (Page Builder): Generated .tsx includes realistic mock data (not empty arrays or identical values)",+ "Phase 5 (Page Builder): Chart uses D3.js exclusively — no Chart.js, Recharts, or other libraries. D3 code uses group() not nest()",+ "Phase 5 (Page Builder): DatePicker (if used) is imported from @fluentui/react-datepicker-compat, not @fluentui/react-components",+ "Phase 6: Deployment omits --data-sources flag (mock data page)"]},{"id": 3,+ "tier": "smoke","prompt": "I need to edit an existing generative page in my Sales Hub app. The page shows contacts but I want to add a search bar and sorting by company name.",- "expected_output": "The skill validates prerequisites, authenticates, detects languages, identifies this as an edit request, asks for the app-id and page-id, downloads the existing page with pac model genpage download, shows the current code, asks what changes to make (user confirms search + sorting), generates the updated code preserving existing functionality while adding search and sort, re-deploys with --page-id (no --add-to-sitemap), and offers verification.",- "files": [],- "expectations": [- "A workflow-log.md file is saved documenting all steps attempted",- "Step 1: Prerequisites are validated",- "Step 2: Authentication is confirmed and environment reported",- "Step 2: pac model list-languages is NOT run (edit flow — existing page already has localization)",- "Step 3: Question 1 identifies this as an edit (not new)",- "Step 3: User is asked for the app and page to edit",- "Step 3: pac model genpage download --app-id <id> --page-id <id> --output-directory is run to download existing code",- "Step 3: The downloaded code is read to understand the current implementation",- "Step 3: User is asked what changes to make (search + sort confirmed)",- "Step 4: A plan is presented describing the changes before modifying code",- "Step 5: If Dataverse entities are used, RuntimeTypes.ts is generated and read to verify column names",- "Step 6: genpage-rules-reference.md is read before modifying code",- "Step 7: Updated code preserves existing functionality while adding search and sort",- "Step 7: Search implementation uses Fluent UI V9 SearchBox or Input component",- "Step 7: Sort implementation uses column header click handlers or Fluent UI sorting",- "Step 8: pac model genpage upload uses --page-id flag for updating",- "Step 8: Upload command omits --add-to-sitemap (existing page update)",- "Step 9: Browser verification is offered"+ "data": {+ "question_answers": {+ "new_or_edit": "Edit existing",+ "app_and_page": "user provides app-id and page-id of an existing contacts page",+ "changes": "Add a search bar and column sorting by company name"+ }+ },+ "expectations": [+ "Phase 1 (Planner): User indicates 'edit existing'; planner returns { action: 'edit' }, skipping Phases 2-8 of the create flow",+ "Edit Phase 1a: pac model list is run to discover available apps — orchestrator does NOT guess or invent app names",+ "Edit Phase 1a: Apps are presented to the user via AskUserQuestion using the actual Display Name and app-id GUID from pac model list output",+ "Edit Phase 1b: After app selection, pac model genpage list --app-id <selected> is run to discover pages — orchestrator does NOT guess or invent page names",+ "Edit Phase 1b: Pages are presented to the user via AskUserQuestion using the actual page names and page-id GUIDs from pac model genpage list output",+ "Edit Phase 1b: If the app has zero genpages, the user is told there are no pages to edit and the flow stops",+ "Edit Phase 1c: Selection is restated to the user before proceeding to download",+ "Edit Phase 2: pac model genpage download produces <working-dir>/<page-id>/ with page.tsx, page.js, config.json, prompt.txt",+ "Edit Phase 3: config.json is read; since dataSources contains 'contact', RuntimeTypes.ts is generated",+ "Edit Phase 4: genpage-edit-planner agent is invoked via Task tool",+ "Edit Phase 4: edit-planner reads page.tsx, config.json, and prompt.txt from the <page-id>/ folder",+ "Edit Phase 4: genpage-edit-plan.md is written to the working directory root (not inside <page-id>/)",+ "Edit Phase 5: Orchestrator reads genpage-edit-plan.md, rules.md, RuntimeTypes.ts, and page.tsx",+ "Edit Phase 5: Orchestrator applies edits inline using Edit tool on <working-dir>/<page-id>/page.tsx",+ "Edit Phase 5: Search implementation uses Fluent UI V9 SearchBox or Input; sort uses column header handlers",+ "Edit Phase 5: Existing functionality is preserved per the edit plan's Preservation Constraints",+ "Edit Phase 6: pac model genpage upload uses --page-id flag; omits --add-to-sitemap",+ "Edit Phase 6: --prompt value is the user's edit request (the DELTA of changes — 'Add a search bar and column sorting by company name'), NOT a re-statement of the original page description"]},{"id": 4,+ "tier": "full","prompt": "Build a multi-step wizard form for creating new Case records. Step 1: customer info. Step 2: case details (title, priority, category). Step 3: review and submit. Use the incident and contact tables.",- "expected_output": "The skill validates prerequisites, authenticates, detects languages, gathers remaining requirements, presents a plan for a 3-step wizard, generates RuntimeTypes.ts for incident and contact entities, reads genpage-rules-reference.md and the wizard sample (2-wizard-multi-step.tsx), generates a complete .tsx with step navigation (Next/Back), form validation, Fluent UI V9 form components, and dataApi.createRow for submission. Deploys with --data-sources 'incident,contact'.",- "files": [],- "expectations": [- "A workflow-log.md file is saved documenting all steps attempted",- "Step 1: Prerequisites validated with separate commands",- "Step 2: Authentication confirmed, pac model list-languages run",- "Step 3: Question 2 is skipped (user provided description)",- "Step 3: Question 3 is skipped (user specified incident and contact tables)",- "Step 4: Plan includes 3-step wizard structure, form fields per step, Fluent UI form components",- "Step 5: pac model genpage generate-types --data-sources 'incident,contact' is run",- "Step 5: RuntimeTypes.ts is read and column names are verified for both incident and contact entities",- "Step 6: genpage-rules-reference.md is read",- "Step 6: Wizard sample (2-wizard-multi-step.tsx or 3-poa-revocation-wizard.tsx) is read",- "Step 7: Generated code includes step state management (current step tracking)",- "Step 7: Next and Back buttons navigate between steps",- "Step 7: Step 3 (review) shows a summary of entered data before submission",- "Step 7: Submit uses dataApi.createRow with verified column names from RuntimeTypes.ts",- "Step 7: Form uses Fluent UI V9 components (Input, Dropdown, etc.) — not HTML form elements",- "Step 7: All form fields have aria-labels or aria-labelledby for accessibility",- "Step 7: Semantic HTML is used (button, section, etc.)",- "Step 7: async dataApi calls are wrapped in try-catch with error handling",- "Step 7: Generated code is a single .tsx file with export default GeneratedComponent",- "Step 8: Upload includes --data-sources 'incident,contact'"+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entities: incident, contact (skipped because prompt specifies them)",+ "specific_requirements": "3-step wizard with Next/Back navigation, form validation, review before submit"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 1 (Planner): pac model list-tables --search 'incident,contact' is run; both entities confirmed as existing",+ "Phase 2: Entity-builder is SKIPPED",+ "Phase 4: pac model genpage generate-types --data-sources 'incident,contact' is run",+ "Phase 5 (Page Builder): Wizard sample (2-wizard-multi-step.tsx) is read",+ "Phase 5 (Page Builder): Generated code includes step state management (current step tracking) and Next/Back navigation",+ "Phase 5 (Page Builder): Step 3 (review) shows a summary of entered data before submission",+ "Phase 5 (Page Builder): Submit uses dataApi.createRow with verified column names from RuntimeTypes.ts",+ "Phase 5 (Page Builder): Form uses Fluent UI V9 components (Input, Dropdown, etc.) — not HTML form elements",+ "Phase 5 (Page Builder): All form fields have aria-labels or aria-labelledby for accessibility",+ "Phase 6: Upload includes --data-sources 'incident,contact'"]},{"id": 5,+ "tier": "full","prompt": "/genpage Build a task management board with columns for To Do, In Progress, and Done. Use the task entity. Allow dragging tasks between columns.",- "expected_output": "The skill validates prerequisites, authenticates, detects languages, gathers remaining requirements, presents a plan for a kanban-style board, generates RuntimeTypes.ts for the task entity, reads genpage-rules-reference.md and a relevant sample, generates a complete .tsx with column-based layout, task cards, drag-and-drop using native HTML5 drag events (no external DnD libraries), and dataApi.updateRow to persist status changes.",- "files": [],- "expectations": [- "A workflow-log.md file is saved documenting all steps attempted",- "Step 1: Prerequisites validated",- "Step 2: Authentication confirmed, pac model list-languages run",- "Step 3: Description is acknowledged from the command — question 2 is skipped",- "Step 3: Question 3 is skipped (user specified task entity)",- "Step 4: Plan describes kanban board with 3 columns mapped to task status values",- "Step 5: pac model genpage generate-types --data-sources 'task' is run",- "Step 5: RuntimeTypes.ts is read — status field enum values are identified for column mapping",- "Step 7: Drag-and-drop uses native HTML5 events (onDragStart, onDragOver, onDrop) — no external DnD library",- "Step 7: Task cards show relevant fields verified from RuntimeTypes.ts",- "Step 7: Status update on drop uses dataApi.updateRow with the correct status enum value",- "Step 7: Code uses entity logical name 'task' (singular lowercase) not 'tasks'",- "Step 7: Responsive layout uses flexbox with relative units",- "Step 7: No 100vh or 100vw used",- "Step 7: All components and utilities are separate top-level functions (no nested functions)",- "Step 7: Generated code is a single .tsx file with export default GeneratedComponent"+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: task (skipped because prompt specifies it)",+ "specific_requirements": "Kanban layout with drag-and-drop between columns mapped to status values"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 1 (Planner): task entity confirmed as existing; plan describes kanban with 3 columns mapped to task statecode/statuscode values",+ "Phase 4: RuntimeTypes.ts is read — status field enum values are identified for column mapping",+ "Phase 5 (Page Builder): Drag-and-drop uses native HTML5 events (onDragStart, onDragOver, onDrop) — no external DnD library",+ "Phase 5 (Page Builder): Status update on drop uses dataApi.updateRow with the correct status enum value",+ "Phase 5 (Page Builder): Code uses entity logical name 'task' (singular lowercase) not 'tasks'",+ "Phase 5 (Page Builder): All components and utilities are separate top-level functions (no nested function definitions)"]},{"id": 6,+ "tier": "full","prompt": "Create a simple analytics dashboard with mock data. I just want some charts showing website traffic trends and visitor demographics. Keep it clean and minimal.",- "expected_output": "The skill validates prerequisites, authenticates, detects languages, confirms mock data usage, presents a minimal plan, skips schema generation, reads rules and samples, generates a clean .tsx with D3.js charts for traffic trends (line/area chart) and demographics (pie/bar chart), realistic mock data, and minimal Fluent UI styling. Deploys without --data-sources.",- "files": [],- "expectations": [- "A workflow-log.md file is saved documenting all steps attempted",- "Step 1: node --version and pac help are run separately",- "Step 2: pac auth list is run and environment is confirmed",- "Step 2: pac model list-languages is run after confirming the environment",- "Step 3: Question 1 (new or edit) is asked",- "Step 3: Question 2 is skipped because user provided a description",- "Step 3: Mock data usage is confirmed (no Dataverse entities)",- "Step 4: Plan reflects minimal/clean design preference",- "Step 5: Schema generation is skipped (mock data)",- "Step 6: genpage-rules-reference.md is read",- "Step 7: Charts use D3.js exclusively — no Chart.js, Recharts, or other chart libraries",- "Step 7: Mock data is realistic (not empty arrays or identical values)",- "Step 7: Generated code has no unnecessary complexity matching the 'clean and minimal' request",- "Step 7: Code uses makeStyles with Fluent UI tokens for styling",- "Step 7: Generated code is a single .tsx file with export default GeneratedComponent",- "Step 7: No placeholders, TODOs, or ellipses in the generated code",- "Step 8: Upload omits --data-sources flag"+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Mock data",+ "specific_requirements": "Clean and minimal design"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 2: Entity-builder is SKIPPED (mock data)",+ "Phase 4: RuntimeTypes generation is SKIPPED (mock data)",+ "Phase 5 (Page Builder): Charts use D3.js exclusively — no Chart.js, Recharts, or other chart libraries",+ "Phase 5 (Page Builder): Mock data is realistic (not empty arrays, not identical values)",+ "Phase 5 (Page Builder): Generated code has no unnecessary complexity matching the 'clean and minimal' request",+ "Phase 6: Upload omits --data-sources flag"+ ]+ },+ {+ "id": 7,+ "tier": "full",+ "prompt": "Build a page showing all job candidates with their application status, interview scores, and assigned recruiter. I need new tables for this — cr_candidate and cr_jobrequisition entities don't exist yet in my environment.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entities: cr_candidate, cr_jobrequisition (new entities to create)",+ "specific_requirements": "Candidate list with status, interview scores, assigned recruiter",+ "sample_data": "Yes, add sample data"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 1 (Planner): pac model list-tables --search confirms cr_candidate and cr_jobrequisition do NOT exist (exact logical-name match, not fuzzy)",+ "Phase 1 (Planner): Plan includes entity definitions with columns, types, and a lookup relationship (cr_candidate → cr_jobrequisition)",+ "Phase 1 (Planner): Because entities will be created, the planner asks the solution selection question via AskUserQuestion and records the choice in ## Environment as 'Solution: <uniqueName>' and 'Publisher Prefix: <prefix>'",+ "Phase 2a: Orchestrator runs scripts/check-auth.js; ok:true gate before invoking entity-builder",+ "Phase 2b (Entity Builder): Reads Solution + Publisher Prefix from the plan's ## Environment",+ "Phase 2b (Entity Builder): cr_jobrequisition (independent) is created via scripts/create-table.js BEFORE cr_candidate (has lookup)",+ "Phase 2b (Entity Builder): Every create-table.js / add-column.js / create-relationship.js call passes --solution <name> (always — 'Default' is a valid value, never omitted)",+ "Phase 2b (Entity Builder): Propagation delay (4s) is observed after table creation before adding columns",+ "Phase 2b (Entity Builder): Lookup is created via scripts/create-relationship.js 1n (POST /RelationshipDefinitions); 8s delay before using @odata.bind navigation properties",+ "Phase 2b (Entity Builder): User is asked about sample data via AskUserQuestion",+ "Phase 2b (Entity Builder): Sample inserts use scripts/create-record.js; arrays of records go through OData $batch automatically",+ "Phase 2b (Entity Builder): Actual logical names are reported back (may be normalized by Dataverse); a transaction log at <working-dir>/entity-creation-log.md captures each successful operation",+ "Phase 4: pac model genpage generate-types is run with the created entity names",+ "Phase 5 (Page Builder): Generated code uses ONLY verified column names from RuntimeTypes.ts",+ "Phase 6: Upload includes --data-sources with both created entity names"+ ]+ },+ {+ "id": 8,+ "tier": "full",+ "prompt": "Create a dashboard page with account metrics. I don't have any model-driven apps yet.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: account",+ "specific_requirements": "Account metrics dashboard"+ },+ "app_selection": "pac model list returns zero apps; user chooses to create a new app named 'Account Metrics'"+ },+ "expectations": [+ "Phase 1 (Planner): pac model list returns zero apps",+ "Phase 1 (Planner): User is asked via AskUserQuestion whether to create a new app or cancel",+ "Phase 1 (Planner): Plan records 'create new app' decision",+ "Phase 1 (Planner): Because a new app will be created, the planner asks the solution selection question and records the choice in ## Environment",+ "Phase 3: pac model create --name 'Account Metrics' --solution '<Solution from plan>' is run; --solution is ALWAYS passed (pac model create errors out without it)",+ "Phase 3: The new app-id returned from pac model create is stored for Phase 6",+ "Phase 6: Upload uses the newly created app-id"+ ]+ },+ {+ "id": 9,+ "tier": "full",+ "prompt": "Build a project tracker page. I need new cr_project and cr_milestone entities with sample data to test the page.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entities: cr_project, cr_milestone (new)",+ "specific_requirements": "Project tracker with milestones; include sample data"+ },+ "app_selection": "user selects an existing app",+ "sample_data_response": "Yes, add sample data"+ },+ "expectations": [+ "Phase 1 (Planner): cr_project and cr_milestone confirmed as NOT existing",+ "Phase 1 (Planner): Plan includes a lookup relationship (cr_milestone → cr_project)",+ "Phase 1 (Planner): Solution selection question is asked because new entities will be created",+ "Phase 2a: Orchestrator runs scripts/check-auth.js; ok:true gate before invoking entity-builder",+ "Phase 2b (Entity Builder): cr_project (independent) is created via scripts/create-table.js first; cr_milestone (dependent) is created second; 1:N lookup via scripts/create-relationship.js 1n",+ "Phase 2b (Entity Builder): Sample data is created because the user explicitly requested it in the prompt",+ "Phase 2b (Entity Builder): Sample inserts go through scripts/create-record.js; arrays trigger OData $batch (one round-trip per 100 records)",+ "Phase 2b (Entity Builder): Sample records are realistic (not lorem ipsum or empty values)",+ "Phase 2b (Entity Builder): Sample records respect relationships (milestones reference valid project IDs via @odata.bind)",+ "Phase 6: Deployment includes --data-sources with both entity names"+ ]+ },+ {+ "id": 10,+ "tier": "stress",+ "prompt": "Build a page for my new cr_widget entity that doesn't exist yet.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: cr_widget (new, does not exist)"+ },+ "environment_state": "az CLI is not logged in, OR logged in as a user without access to the target Dataverse env"+ },+ "expectations": [+ "Phase 1 (Planner): cr_widget is identified as NOT existing (exact logical-name match, not fuzzy)",+ "Phase 1 (Planner): Plan records cr_widget under Entity Creation Required",+ "Phase 2a: Orchestrator runs scripts/check-auth.js BEFORE invoking entity-builder; parses the returned JSON",+ "Phase 2a: If the script returns blocker:'az_not_logged_in', orchestrator surfaces the message ('Run `az login`...') to the user and halts (entity-builder is NOT invoked)",+ "Phase 2a: If blocker:'whoami_403', orchestrator surfaces the message including the specific `az login --username <pacUser>` command and halts",+ "Phase 2a: If ok:true but identitiesMatch:false, orchestrator proceeds but surfaces a one-line warning",+ "Phase 2b: genpage-entity-builder is only invoked AFTER check-auth returns ok:true"+ ]+ },+ {+ "id": 11,+ "tier": "full",+ "prompt": "Build me three pages for a recruitment app: a candidate list page, an interview schedule page, and a hiring metrics dashboard. Use the contact and appointment entities.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entities: contact, appointment (skipped because prompt specifies them)",+ "specific_requirements": "Three distinct pages sharing the contact and appointment entities"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 1 (Planner): Plan includes 3 pages in the Pages table with distinct file names and purposes",+ "Phase 1 (Planner): Per-Page Specifications section has an entry for each of the 3 pages",+ "Phase 5a: Orchestrator validates the plan — at least one page, unique filenames, each page has a matching Per-Page Specifications subsection",+ "Phase 4: pac model genpage generate-types is run ONCE with --data-sources 'contact,appointment'; a single RuntimeTypes.ts is generated",+ "Phase 5c (multi-page): Three genpage-page-builder agents are invoked via Task tool in a SINGLE message (parallel execution, not sequential). The single-page fast path (5b) is NOT taken because N>1.",+ "Phase 5c: Each builder receives a distinct target filename — no two builders target the same file",+ "Phase 5c: Each builder reads the same genpage-plan.md but extracts only its own page specification",+ "Phase 5c: Each builder reads the same RuntimeTypes.ts for column verification",+ "Phase 5c: Cross-page navigation (e.g., candidate list → candidate detail) uses quoted `\"PAGEREF_<filename>\"` placeholders, never invented GUIDs",+ "Phase 6: All 3 pages are deployed via separate pac model genpage upload commands, each with the correct --code-file",+ "Phase 6.5: If any .tsx contains PAGEREF_ tokens, orchestrator builds a filename→page-id map sorted by length desc, replaces quoted `\"PAGEREF_<name>\"` tokens with the matching GUID (word-boundary safe), and re-uploads only affected files with the full update flag set",+ "Phase 6.5: Re-upload uses a DELTA --prompt (e.g. 'Resolve cross-page navigation placeholders to real page GUIDs') — NOT a copy of the original page description from Phase 6",+ "Phase 6.5: Unresolved PAGEREF tokens (typos, missing siblings) cause an explicit error to the user — never silently shipped",+ "Phase 8: Summary table lists all 3 pages with their files, entities, and deployment status"+ ]+ },+ {+ "id": 12,+ "tier": "stress",+ "prompt": "Build a page showing Account records with a filter toolbar and sortable columns.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: account",+ "specific_requirements": "Filter toolbar and sortable columns"+ },+ "plan_revision_scenario": "On first plan presentation the user rejects via ExitPlanMode with 'add a search box in addition to the filter toolbar'; the planner revises the plan and re-enters plan mode; the user approves the revised plan"+ },+ "expectations": [+ "Phase 1 (Planner): Initial plan is presented via EnterPlanMode",+ "Phase 1 (Planner): User requests a revision (ExitPlanMode with changes-requested response)",+ "Phase 1 (Planner): Planner revises the plan based on user feedback and re-enters plan mode",+ "Phase 1 (Planner): Revised plan reflects the user's requested changes (search box added)",+ "Phase 1 (Planner): User approves the revised plan on the second presentation",+ "Phase 1 (Planner): genpage-plan.md reflects the approved (revised) version, not the initial version",+ "Phase 5 (Page Builder): Generated code implements the revised plan (includes BOTH filter toolbar AND search box)"+ ]+ },+ {+ "id": 13,+ "tier": "full",+ "prompt": "Build a page showing Contact records with name, email, and phone.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: contact",+ "specific_requirements": "Contact list display"+ },+ "app_selection": "user selects an existing app",+ "environment_state": "pac model list-languages returns multiple languages: English (1033), Arabic (1025), French (1036). This eval exercises the localization code path."+ },+ "expectations": [+ "Phase 1 (Planner): pac model list-languages output includes Arabic (1025) and French (1036) in addition to English",+ "Phase 1 (Planner): Plan includes a Localization section listing detected languages",+ "Phase 5 (Page Builder): Generated .tsx includes language detection boilerplate using Xrm.Utility.getGlobalContext().userSettings.languageId",+ "Phase 5 (Page Builder): Generated .tsx has a translations dictionary with entries for en-US, ar-SA, and fr-FR",+ "Phase 5 (Page Builder): All user-visible text goes through a translate() helper — no hardcoded display strings in JSX",+ "Phase 5 (Page Builder): RTL support is included (dir attribute set based on language.isRtl) because Arabic is a detected RTL language",+ "Phase 5 (Page Builder): Generated .tsx uses logical CSS properties (marginInlineStart/End, paddingInlineStart/End) instead of physical (marginLeft/Right)",+ "Phase 5 (Page Builder): Generated .tsx fetches usersettings via dataApi.retrieveRow and uses formatDate/formatNumber/formatCurrency helpers",+ "Phase 5 (Page Builder): Generated .tsx does NOT hardcode currency symbols or date formats"+ ]+ },+ {+ "id": 14,+ "tier": "stress",+ "prompt": "Build two pages for tracking Account records — one for listing all accounts and one for editing a single account.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: account",+ "specific_requirements": "Two pages — list and edit"+ },+ "app_selection": "user selects an existing app",+ "planner_scenario": "The planner initially assigns the filename account.tsx to both pages in the Pages table. The orchestrator detects the collision in Phase 5a and must rewrite the plan to give the pages unique filenames before dispatching builders."+ },+ "expectations": [+ "Phase 1 (Planner): Plan initially contains a Pages table with 2 pages",+ "Phase 5a: Orchestrator reads the Pages table and detects duplicate filenames",+ "Phase 5a: Orchestrator rewrites genpage-plan.md with unique filenames (e.g., account-list.tsx, account-edit.tsx) before dispatching builders",+ "Phase 5b: Two page-builders are invoked in parallel with distinct target filenames",+ "Phase 5b: No builder overwrites another builder's output (both .tsx files exist after Phase 5)",+ "Phase 6: Both pages are deployed with their distinct filenames"+ ]+ },+ {+ "id": 15,+ "tier": "full",+ "prompt": "Build a page tracking support tickets. I need a new cr_ticket entity with a priority choice column (Low, Medium, High, Critical), a status choice column (Open, In Progress, Resolved, Closed), and a due date column.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: cr_ticket (new entity to create)",+ "specific_requirements": "Ticket tracker with priority (4 choices), status (4 choices), and due date"+ },+ "app_selection": "user selects an existing app",+ "sample_data_response": "No, skip sample data"+ },+ "expectations": [+ "Phase 1 (Planner): cr_ticket is identified as NOT existing",+ "Phase 1 (Planner): Plan includes choice column definitions for priority and status under Choice Columns, with numeric option values starting at 100000000",+ "Phase 1 (Planner): Plan includes a datetime column for due date",+ "Phase 1 (Planner): Solution selection question is asked (because new entity will be created) and recorded in ## Environment",+ "Phase 2a: scripts/check-auth.js returns ok:true before entity-builder is invoked",+ "Phase 2b (Entity Builder): cr_ticket is created via scripts/create-table.js (POST /EntityDefinitions)",+ "Phase 2b (Entity Builder): Choice columns are added using scripts/add-column.js with type 'picklist' and --options JSON listing {value,label} pairs",+ "Phase 2b (Entity Builder): Priority picklist has 4 options starting at 100000000 (Low=100000000, Medium=100000001, High=100000002, Critical=100000003)",+ "Phase 2b (Entity Builder): Status picklist has 4 options starting at 100000000",+ "Phase 2b (Entity Builder): Every script invocation includes --solution <Solution> (always — 'Default' is a valid value, never omitted)",+ "Phase 2b (Entity Builder): Transaction log (entity-creation-log.md) records each create with its returned metadataId",+ "Phase 4: pac model genpage generate-types picks up the enum registrations",+ "Phase 5 (Page Builder): Generated .tsx uses the choice enum names from RuntimeTypes.ts (not magic numbers)",+ "Phase 5 (Page Builder): Generated .tsx uses dataApi.getChoices() or reads FormattedValue annotations for choice display names"+ ]+ },+ {+ "id": 16,+ "tier": "smoke",+ "prompt": "Build a page showing Account records.",+ "data": {+ "question_answers": {+ "new_or_edit": "Create new page(s)",+ "data_source": "Dataverse entity: account",+ "specific_requirements": "Simple account list"+ },+ "app_selection": "user selects an existing app"+ },+ "expectations": [+ "Phase 1 (Planner): genpage-plan.md is written and conforms to references/plan-schema.md",+ "Phase 1 (Planner): genpage-plan.md contains ALL required sections with exact headings: # Genpage Plan, ## User Requirements, ## Working Directory, ## Plugin Root, ## Environment, ## Pages, ## Entity Creation Required, ## Existing Entities, ## Design Preferences, ## Relevant Samples, ## Per-Page Specifications",+ "Phase 1 (Planner): ## Pages table has at least one row with columns Page, File, Purpose, Entities",+ "Phase 1 (Planner): ## Per-Page Specifications has one ### <Page Name> subsection for each row in ## Pages",+ "Phase 1 (Planner): File names in ## Pages are unique",+ "Phase 1 (Planner): Because the account entity exists, ## Entity Creation Required contains the literal string 'No entity creation required — all entities already exist.'",+ "Phase 1 (Planner): ## Existing Entities contains the entity logical name used for RuntimeTypes generation (account)"]}]diff --git a/plugins/model-apps/.claude-plugin/plugin.json b/plugins/model-apps/.claude-plugin/plugin.jsonindex 27e441872..c4b29aeb9 100644--- a/plugins/model-apps/.claude-plugin/plugin.json+++ b/plugins/model-apps/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "model-apps",- "version": "1.0.6",- "description": "Build and deploy Power Apps generative pages for model-driven apps.",+ "version": "2.1.0",+ "description": "Build and deploy Power Apps generative pages for model-driven apps with specialist agents for planning, entity creation, and parallel code generation. Requires PAC CLI >= 2.7.0 and Azure CLI (`az`). See CHANGELOG.md for v1.x → v2.x migration.","author": {"name": "Microsoft","url": "https://www.microsoft.com"diff --git a/plugins/model-apps/AGENTS.md b/plugins/model-apps/AGENTS.mdindex aa03385ea..cad3735b0 100644--- a/plugins/model-apps/AGENTS.md+++ b/plugins/model-apps/AGENTS.md@@ -6,7 +6,13 @@ This file provides guidance to AI Agents when working with the **model-apps** plA plugin for building and deploying Power Apps generative pages (genux) for model-driven apps. Uses React 17 + TypeScript + Fluent UI V9 single-file components, deployed via PAC CLI.-Single-session workflow — each `/genpage` invocation completes the full cycle: validate prerequisites, gather requirements, generate schema, produce code, and deploy.+The `/genpage` skill orchestrates specialist agents: a planner (requirements + plan approval), an optional entity builder (Dataverse entity creation via the plugin's own Node.js Web API scripts), and parallel page builders (code generation).++**Requirements:**+- **PAC CLI ≥ 2.7.0** — for app and page deploy operations+- **Azure CLI (`az`)** — used by entity-builder for Dataverse Web API auth; must be logged in with the same identity as the active `pac` profile++No Dataverse Skills plugin or Python dependency.## Local Development@@ -23,22 +29,56 @@ claude --plugin-dir /path/to/plugins/model-apps.mcp.json ← MCP server config (Playwright for browser verification)AGENTS.md ← Plugin guidance for AI agents (this file)CLAUDE.md ← Symlink → AGENTS.md+agents/ ← Agent definitions (invoked by skills via Task tool)+ genpage-planner.md ← Requirements, discovery, plan doc, user approval (create flow)+ genpage-entity-builder.md ← DV entity creation via plugin's Web API scripts (create flow)+ genpage-page-builder.md ← Writes one .tsx file; runs in parallel for multi-page (create flow)+ genpage-edit-planner.md ← Reads download artifacts, plans edits, writes edit plan (edit flow)references/ ← Shared reference docs- genpage-rules-reference.md ← Full code-gen rules, DataAPI types, layout patterns, common errors- troubleshooting.md ← Common issues and fixes-samples/ ← Example .tsx files (8 samples)+ rules.md ← Full code-gen rules, DataAPI types, layout patterns, common errors+ plan-schema.md ← Schema contract for genpage-plan.md+ data-caching.md ← Rule 15 list/detail caching pattern (loaded conditionally)+ localization.md ← Multi-language + RTL pattern (loaded conditionally)+ troubleshooting.md ← Deployment/runtime/env issues+ verified-icons.txt ← ~5000 Fluent UI icon names; Grep-validated by page-builder+samples/ ← Example .tsx files (10 samples)scripts/launch-playwright-mcp.js ← Playwright MCP server launcher (detects system browser)+ regenerate-verified-icons.js ← Regenerates references/verified-icons.txt from npm+ check-auth.js ← Pre-flight: az present + logged in, pac identity, WhoAmI, identity match+ dataverse-request.js ← General Dataverse Web API wrapper (escape hatch)+ create-table.js ← Creates a Dataverse custom table+ add-column.js ← Adds a column to an existing table+ create-relationship.js ← Creates 1:N (lookup) or N:N relationships+ create-record.js ← Creates one or many records (auto-batches via $batch)+ create-solution.js ← Creates a Dataverse solution with env's Default Publisher+ add-to-solution.js ← Adds an existing component to a solution+ lib/+ dataverse-auth.js ← Shared auth + HTTP helpers (uses `az account get-access-token`)+ tests/ ← node --test coverage for the scripts aboveskills/genpage/- SKILL.md ← Skill definition with frontmatter (model, allowed-tools)+ SKILL.md ← Orchestrator skill (delegates to agents)+ edit-flow.md ← Edit flow steps (loaded only on edit path)+ verify-flow.md ← Playwright browser verification (loaded only when user opts in)```## Skills| Skill | Description ||-------|-------------|-| `/genpage` | Build and deploy a generative page for a model-driven Power App |+| `/genpage` | Build and deploy generative pages for a model-driven Power App |++## Agents++Agents are invoked by skills via the `Task` tool — they are not user-invocable.++| Agent | Invoked By | Description |+|-------|-----------|-------------|+| `genpage-planner` | `genpage` (create flow) | Validates prereqs, gathers requirements, detects entity/app existence, presents plan for approval, writes `genpage-plan.md` |+| `genpage-entity-builder` | `genpage` (create flow) | Creates Dataverse tables, columns, relationships, choices, and sample data via the plugin's Node.js Web API scripts (`scripts/`). Bulk inserts use OData `$batch`. Writes a transactional log for recovery |+| `genpage-page-builder` | `genpage` (create flow) | Generates one complete `.tsx` page from the plan and schema; runs in parallel with other builders for multi-page requests |+| `genpage-edit-planner` | `genpage` (edit flow) | Reads the downloaded page artifacts (page.tsx, config.json, prompt.txt), gathers change requirements, presents edit plan, writes `genpage-edit-plan.md`. The orchestrator applies the edit inline. |## Key Concepts@@ -78,7 +118,7 @@ TypeScript type definitions generated from Dataverse metadata. Contains entity tAfter modifying this plugin:1. Run `claude --debug` to see plugin loading details-2. Test skill invocation with `/genpage`-3. Verify tool restrictions work (should only allow pac, powershell, node commands)-4. Test with both Dataverse entity pages and mock data pages+2. Run `node --test plugins/model-apps/scripts/tests/*.test.js` (must pass)+3. Test skill invocation with `/genpage`+4. Test with both Dataverse entity pages and mock data pages (smoke + edit)5. Verify Playwright browser verification works (navigate, snapshot, click, screenshot)diff --git a/plugins/model-apps/CHANGELOG.md b/plugins/model-apps/CHANGELOG.mdnew file mode 100644index 000000000..155c863d0--- /dev/null+++ b/plugins/model-apps/CHANGELOG.md@@ -0,0 +1,117 @@+# Changelog++All notable changes to the **model-apps** plugin.++## 2.1.0 — 2026-05-13++Replaces the Dataverse MCP server + Python SDK fallback with Node.js Web API+scripts. Adds solution selection, prefix discipline, and a consolidated auth+pre-flight. Trim of ~27K tokens on hot-path page-builder runs.++### Breaking+- **Azure CLI (`az`) is now required** for entity creation. The `az` identity+ must have access to the target Dataverse env (same as the active `pac` profile).+- **Dataverse Skills plugin is no longer required.** Soft dep removed.+- `.env`, `scripts/auth.py`, and device-code prompts from the Dataverse Skills+ plugin no longer used.++### Added+- Node.js Web API scripts under `plugins/model-apps/scripts/`:+ `check-auth.js`, `dataverse-request.js`, `create-table.js`, `add-column.js`,+ `create-relationship.js`, `create-record.js` (with `$batch` bulk),+ `create-solution.js`, `add-to-solution.js`, `lib/dataverse-auth.js`.+- Solution selection in planner with prefix-conflict warnings.+- Transactional log at `<working-dir>/entity-creation-log.md`.+- `node --test` coverage under `scripts/tests/` (47 tests).++### Fixed+- **Prefix drift made structurally impossible.** Plan stores logical-name+ suffixes only; entity-builder constructs `${prefix}_${suffix}` from the+ single `Publisher Prefix:` source of truth.+- **`pac model create` always passes `--solution`.** Default value is `Default`.+ The CLI's "active solution" fallback errors in practice.+- **`--prompt` is now scoped per upload role**: full description on create,+ delta only on every subsequent upload (PAGEREF, fix re-deploy, edit flow).+- **Bulk-insert partial failure** emits structured JSON to stdout (not+ `[object Object]`).+- entity-builder bash snippets no longer mix JS template literals.+- planner no longer shells `grep`/`awk`/`sed` (Windows-incompatible).++### Performance+- Page-builder no longer loads `verified-icons.txt` upfront (~26K tokens+ saved per run). Validation switched to post-write `Grep` only.+- `rules.md` trimmed −98 lines: dropped duplicated DataAPI+ type definitions (canonical source is `RuntimeTypes.ts`); tightened usage+ examples.+- `rules.md` Page Input section trimmed −25 lines: pure prose tighten.+- Phase 7 (browser verification) extracted to `skills/genpage/verify-flow.md`,+ loaded only when the user opts in. SKILL.md trimmed an additional −95 lines.+- Reference docs renamed for consistency:+ `genpage-rules-reference.md` → `rules.md`,+ `genpage-plan-schema.md` → `plan-schema.md`,+ `genpage-localization-reference.md` → `localization.md`,+ `data-caching-pattern.md` → `data-caching.md`.+- Removed stale `samples/3-poa-revocation-wizard.tsx` (327 lines, redundant+ with `2-wizard-multi-step.tsx` for the wizard pattern; the DataGrid /+ file-upload / multiselect patterns it composed are covered by other+ samples). Renumbered 4–8 → 3–7 to close the gap.++### Added (samples)+- `samples/8-dashboard-with-charts.tsx` — KPI cards + two D3 charts (area ++ donut) with the animation guard from rules.md. Covers the dashboard page+ type and the D3 chart pattern that evals 2 and 6 expect.+- `samples/9-list-with-caching.tsx` — list page using Rule 15's window cache+ + inline async IIFE pattern. Cross-page navigation to the detail sample via+ `PAGEREF_` placeholder.+- `samples/10-detail-with-pageinput.tsx` — detail page paired with the list.+ Receives `pageInput.recordId` synchronously, initial `loading: true` on+ frame 0, `Map<recordId, row>` cache on `window`. Demonstrates the+ formatted-value lookup for `_parentcustomerid_value`.+- Added scope headers to `rules.md` "Common Errors" (generation-time+ anti-patterns) and `troubleshooting.md` (deployment/runtime/env) so readers+ can pick the right one without scanning.++### Migration from 2.0+1. `az login` (use the same identity as `pac auth who`).+2. Uninstall the Dataverse Skills plugin if it was only for `/genpage`.+3. No code/page changes needed; existing pages keep working.++---++## 2.0.0 — 2026-05-12++Major refactor of `/genpage` into an agent-orchestrated architecture.++### Breaking+- **PAC CLI ≥ 2.7.0** required (for `pac model create`, `pac model list-tables --search`).+- Skill output now lives in a per-invocation working directory+ (`genpage-plan.md`, `RuntimeTypes.ts`, one `.tsx` per page, `workflow-log.md`).+- Plan-mode approval is mandatory; no skip/auto-accept.++### Added+- Four specialist agents: `genpage-planner`, `genpage-entity-builder`,+ `genpage-page-builder`, `genpage-edit-planner`.+- Multi-page parallel generation; cross-page navigation via `PAGEREF_<filename>`+ placeholders resolved in Phase 6.5.+- `pac model create` inline app provisioning.+- Plan schema contract at `references/plan-schema.md`.+- Verified Fluent icon list at `references/verified-icons.txt` (~5000 names).+- Eval suite: 16 evals across smoke/full/stress tiers + runbook.++### Changed+- Entity detection uses native `pac model list-tables --search` with exact+ logical-name match.+- Component template destructures `pageInput` in addition to `dataApi`.+- Rules reference adds Rule 14 (batched async state) and Rule 15 (data-fetching+ IIFE + cache guard).++### Migration from 1.x+1. `dotnet tool update --global Microsoft.PowerApps.CLI.Tool` (to ≥ 2.7.0).+2. Existing deployed pages keep working — only local workflow/layout changed.++---++## 1.0.6 — earlier in 2026++PageInput support, FluentProvider flicker fix, lookup `$select` rule, data+caching pattern. See git history for details.diff --git a/plugins/model-apps/README.md b/plugins/model-apps/README.mdindex a0b3f5dd2..930976bcb 100644--- a/plugins/model-apps/README.md+++ b/plugins/model-apps/README.md@@ -22,7 +22,10 @@ claude --plugin-dir /path/to/power-platform-skills/plugins/model-apps| Prerequisite | Required for | Install ||---|---|---|| [Node.js](https://nodejs.org/) (LTS) | All skills | `winget install OpenJS.NodeJS.LTS` |-| [PAC CLI](https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction) >= 2.3.1 | Schema generation, deployment | `dotnet tool install -g Microsoft.PowerApps.CLI.Tool` |+| [PAC CLI](https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction) >= 2.7.0 | Schema generation, app creation, table listing, deployment | `dotnet tool install -g Microsoft.PowerApps.CLI.Tool` |+| [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) (`az`) | Dataverse Web API auth for entity creation | `winget install Microsoft.AzureCLI` |++After installing `az`, run `az login` with the same identity as your active `pac auth list` profile. Without `az`, the `/genpage` skill still works for pages over existing entities or mock data — it only fails when entity creation is needed.## Skills@@ -33,12 +36,14 @@ The plugin provides a single skill that covers the full lifecycle of a generativCreates, updates, and deploys generative pages for model-driven Power Apps. Handles the complete workflow in a single session:1. **Validate prerequisites** — checks Node.js and PAC CLI version-2. **Authenticate** — verifies PAC CLI auth and environment selection+2. **Authenticate** — verifies PAC CLI auth (and `az` if entity creation is needed)3. **Gather requirements** — asks about page type, data source, and specific features-4. **Generate schema** — runs `pac model genpage generate-types` for Dataverse entity pages-5. **Generate code** — produces a complete single-file `.tsx` component-6. **Deploy** — uploads via `pac model genpage upload` to the selected app-7. **Verify** — optionally opens the page in Playwright for interactive testing+4. **Create entities** (optional) — uses the plugin's Node.js Web API scripts to create Dataverse tables, columns, relationships, and choice columns when the requested entities don't exist. Asks which solution to land them in+5. **Create app** (optional) — runs `pac model create` if no model-driven app is targeted+6. **Generate schema** — runs `pac model genpage generate-types` for Dataverse entity pages+7. **Generate code** — produces a complete single-file `.tsx` component (parallel page-builders for multi-page requests)+8. **Deploy** — uploads via `pac model genpage upload` to the selected app+9. **Verify** — optionally opens the page in Playwright for interactive testing**Usage:** Invoke directly with `/genpage`, or use any of the keywords below to trigger the skill automatically:@@ -62,7 +67,8 @@ The plugin invokes multiple tools during a session. To reduce approval prompts:"allow": ["Bash(pac *)","Bash(node *)",- "Bash(powershell *)"+ "Bash(powershell *)",+ "Bash(az *)"]}}diff --git a/plugins/model-apps/agents/genpage-edit-planner.md b/plugins/model-apps/agents/genpage-edit-planner.mdnew file mode 100644index 000000000..00459bc07--- /dev/null+++ b/plugins/model-apps/agents/genpage-edit-planner.md@@ -0,0 +1,234 @@+---+name: genpage-edit-planner+description: >-+ Plans edits to an existing generative page. Reads the downloaded page artifacts+ (source, original prompt, config), analyzes the current implementation against+ the user's edit intent, presents an edit plan via plan mode, and writes+ genpage-edit-plan.md for the orchestrator to execute. Called by the genpage+ skill — not invoked directly by users.+color: cyan+tools:+ - Read+ - Write+ - Glob+ - EnterPlanMode+ - ExitPlanMode+ - TaskCreate+ - TaskUpdate+ - TaskList+ - AskUserQuestion+---++# Genpage Edit Planner++You are the planning agent for edits to an existing generative page. Your job is+to understand the current page, gather the user's change requirements, present+the edit plan for approval, and write `genpage-edit-plan.md` for the+orchestrator to apply.++You will be invoked by the `/genpage` skill with a prompt that includes:++- The user's edit intent: `$ARGUMENTS`+- The working directory (absolute path)+- The plugin root directory (`${CLAUDE_PLUGIN_ROOT}`)+- The app-id and page-id of the page being edited+- The download directory: `<working-dir>/<page-id>/`++---++## Step 1 — Read the Download Artifacts++`pac model genpage download --app-id <...> --page-id <...> --output-directory <working-dir>`+produces the following structure:++```+<working-dir>/<page-id>/+├── page.tsx ← Source code (READ THIS)+├── page.js ← Transpiled JS (IGNORE — not useful for editing)+├── config.json ← { "dataSources": [...], "model": "..." } (READ THIS)+└── prompt.txt ← The original --prompt used when the page was created (READ THIS)+```++Read these three files in order:++### 1a. `prompt.txt` — original intent++This is the verbatim prompt the page was built from. It tells you **why** the+page was designed the way it was — critical context for preservation decisions.+If the user's new edit intent contradicts the original prompt, flag the tension+in your plan rather than silently overriding.++### 1b. `config.json` — data sources and model++```json+{ "dataSources": ["entity1", "entity2"], "model": "claude-sonnet-4-6" }+```++- `dataSources` — list of entity logical names the page currently uses. Empty+ array means mock data. The orchestrator uses this to decide whether to+ generate RuntimeTypes.ts in Edit Phase 3.+- `model` — the model used to generate the page. Informational only.++Record the data source list in your edit plan under "Entities Used".++### 1c. `page.tsx` — existing implementation++Read the full source. Identify:+- **Purpose:** what the page currently does (1-sentence summary)+- **Structure:** sub-components, utility functions, state hooks+- **Data access:** is `dataApi` used? Which entities? Which columns?+- **Components in use:** Fluent UI V9 components, any D3.js charts, etc.+- **Styling approach:** `makeStyles` + tokens, layout (flex/grid)+- **Accessibility:** existing ARIA labels, keyboard handling++### 1d. `RuntimeTypes.ts` (optional)++If the orchestrator generated RuntimeTypes for the existing entities, it lives at+`<working-dir>/RuntimeTypes.ts` (NOT inside the `<page-id>/` folder). Read it if+present — it tells you the verified column names available for edits that add+new column references.++Use `Glob` on `<working-dir>/<page-id>/*` and `<working-dir>/RuntimeTypes.ts` if+you want to confirm the file layout before reading.++## Step 2 — Gather Change Requirements++Create tasks via `TaskCreate`:+1. "Analyze existing page and gather edit requirements"+2. "Design edit plan"+3. "Write edit plan document (genpage-edit-plan.md)"++Ask questions via `AskUserQuestion`, one at a time:++1. **"What changes would you like to make?"**+ - Skip this question if `$ARGUMENTS` already describes the edit clearly.+ - Otherwise, parse the user's answer into a concrete change list.++2. **"Should the existing functionality be preserved?"**+ - If the user's changes may remove features, confirm what should remain.+ - If the changes are purely additive, this question can be skipped.++3. **"Do any of these changes require new Dataverse entities or columns?"**+ - If yes: stop here. Inform the user:+ > "Adding new entities to an existing page requires the full create flow+ > (invoke `/genpage` for a new page and migrate). The edit flow supports+ > code-only changes. Would you like to continue with code-only edits?"+ - If code-only: continue.++4. **"Any specific requirements for the changes?"** — styling, accessibility,+ behavior, or preservation constraints not yet covered.++Mark "Analyze existing page" task complete.++## Step 3 — Present Edit Plan for Approval++Enter plan mode (`EnterPlanMode`) with:++```markdown+## Genpage Edit Plan++### Current State+- **File:** <page-id>/page.tsx+- **Data:** Dataverse (entities: [list from config.json]) OR Mock data (no dataSources)+- **Current purpose:** [1-sentence summary]+- **Original prompt:** [first ~100 chars of prompt.txt, truncated]+- **Key components in use:** [2-4 bullets]++### Proposed Changes+1. [Change 1 — what to add / modify / remove]+2. [Change 2 — ...]++### Preservation Constraints+- [What must remain unchanged — feature preservation, specific behaviors]++### Risks+- [Any tension with the original prompt, or any risky aspects — or "None"]+```++Call `ExitPlanMode` to request approval.++- If approved: proceed to Step 4.+- If changes requested: revise and re-enter plan mode.++Mark "Design edit plan" task complete.++## Step 4 — Write genpage-edit-plan.md++Write `genpage-edit-plan.md` to the working directory root (NOT inside the+`<page-id>/` folder):++```markdown+# Genpage Edit Plan++## File Being Edited+- **Absolute path:** <working-dir>/<page-id>/page.tsx+- **App ID:** <app-id>+- **Page ID:** <page-id>++## Working Directory+<absolute path>++## Plugin Root+<plugin root path>++## Original Page Context+- **Original prompt (from prompt.txt):** <full contents of prompt.txt>+- **Original data sources (from config.json):** <comma-separated entity list, or "none (mock data)">+- **Current purpose:** <1-2 sentences>++## Entities Used+<comma-separated entity logical names, OR "None (mock data)">++## Requested Changes+<Ordered, numbered list of specific changes. Each change must be concrete enough+ that the orchestrator can apply it via targeted Edit operations.>++1. <Change 1 — what to add / modify / remove, with enough detail to execute>+2. <Change 2 — ...>++## Preservation Constraints+<Bullet list of what must remain unchanged. Example: "The existing sort logic+ on the name column must still work." Be specific — each bullet should be+ independently verifiable.>++## Design Notes+<Styling, accessibility, or behavior guidance the orchestrator should follow+ when applying the changes.>++## Relevant Samples+<Optional. If a sample from ${CLAUDE_PLUGIN_ROOT}/samples/ would help the+ orchestrator understand a new pattern being added, list it here.>++| Purpose | Sample |+|---------|--------|+| <why relevant> | <N-sample-name.tsx> |+```++Mark "Write edit plan" task complete.++## Step 5 — Return Summary++Return a concise summary to the orchestrating skill:++```+Edit plan complete.++File: <page-id>/page.tsx+Changes: <N> proposed changes+Entities: <list or "none (mock data)">+Plan document: <working-dir>/genpage-edit-plan.md+```++## Critical Constraints++- **Do NOT modify page.tsx.** The orchestrator applies the edit inline using the+ Edit tool after reading your plan document.+- **Do NOT create or modify entities.** Entity creation is handled by the+ create flow's `genpage-entity-builder` agent (which uses this plugin's own+ Web API scripts under `scripts/`). Stop and inform the user that adding+ entities requires running the create flow with a new `/genpage` invocation.+- **Do NOT deploy.** Deployment is handled by the orchestrating skill.+- **Do NOT regenerate the entire file.** The orchestrator makes targeted edits.+ Your plan should describe changes, not rewrite the code.+- **One user interaction point:** The plan mode approval in Step 3 (plus+ requirements questions in Step 2).diff --git a/plugins/model-apps/agents/genpage-entity-builder.md b/plugins/model-apps/agents/genpage-entity-builder.mdnew file mode 100644index 000000000..fd71d1494--- /dev/null+++ b/plugins/model-apps/agents/genpage-entity-builder.md@@ -0,0 +1,423 @@+---+name: genpage-entity-builder+description: >-+ Creates Dataverse entities (tables, columns, relationships, choices) specified+ in genpage-plan.md using the plugin's Node.js Web API scripts. Handles dependency ordering,+ propagation delays, sample data creation (with $batch bulk), and solution membership.+ Called by the genpage skill when new entities need creating — not invoked directly by users.+color: yellow+tools:+ - Read+ - Write+ - Bash+ - TaskCreate+ - TaskUpdate+ - TaskList+ - AskUserQuestion+---++# Genpage Entity Builder++You are the entity creation agent for generative pages. Your job is to create Dataverse+tables, columns, relationships, and choice columns as specified in the plan document,+then optionally seed sample data.++You will be invoked by the `/genpage` skill with a prompt that includes:++- Path to `genpage-plan.md`+- The working directory (where to write logs and intermediate JSON)+- The plugin root (`${CLAUDE_PLUGIN_ROOT}`) — where the JS scripts live+- The Dataverse environment URL (e.g. `https://aurorabapenv4ab3f.crmtest.dynamics.com`)++The **Solution unique name** and **Publisher Prefix** are read directly from the+plan document's `## Environment` section (the planner always writes them — the+default fallback is `Solution: Default` + `Publisher Prefix: new`).++**Always pass `--solution <name>`** to every `create-table.js`, `add-column.js`,+and `create-relationship.js` call. `Default` is a valid value — it lands new+components in the env's built-in Default Solution. There is no "omit" branch.++You operate entirely through the Web API via the plugin's scripts under+`${CLAUDE_PLUGIN_ROOT}/scripts/`. **There is no MCP server. There is no Python. There+is no Dataverse Skills plugin dependency.**++---++## Step 1 — Read the Plan Document++Read `genpage-plan.md` at the path provided in your invocation prompt.++The plan document follows a strict schema. See+`${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md` for the full contract,+especially the `## Entity Creation Required` section.++Extract from the **`## Environment`** section:+- **Solution** — `Solution: <uniqueName>`. Always present in a valid plan.+ Pass to every script as `--solution <uniqueName>` (yes, even when the value+ is literally `Default`).+- **Publisher Prefix** — `Publisher Prefix: <prefix>`. Always present. This is+ the **single source of truth** for the prefix. Construct every full logical+ name as `${prefix}_${suffix}` (lowercase) when calling scripts.++Extract from the **`## Entity Creation Required`** section. Names in this+section are **suffixes only** — they MUST NOT contain a prefix or underscore:+- Tables to create (suffix, display name, primary name suffix)+- Column definitions (suffix, type, required level)+- Choice column options (with numeric values starting at 100000000)+- Relationships (1:N lookup or N:N, related table suffix, lookup field suffix,+ cascade config)++### Suffix validation (defense in depth)++Before any write, validate each suffix you parsed against `^[a-z][a-z0-9]+$`.+If any value contains an underscore or doesn't match (e.g., the planner slipped+and wrote `crb2b_playername`), **abort with a clear error**:++> "Plan contains a prefixed name in `## Entity Creation Required`:+> `<offending value>`. This section must store suffixes only — the prefix is+> recorded once in `## Environment`. Regenerate the plan with the suffix-only+> format and retry."++This prevents a silent override where the script would use the wrong name.++### Constructing full names++For every script call, build:+- Table logical name: `${prefix}_${tableSuffix}` (lowercase) — e.g.+ `crb2b_playerresult`+- Table schema name: `${prefix}_${TableSuffixPascal}` — e.g.+ `crb2b_PlayerResult` (PascalCase for the suffix in the schema-name argument)+- Column logical name: `${prefix}_${columnSuffix}` — e.g. `crb2b_playername`+- Relationship schema name (1:N): `${prefix}_${parentSuffix}_${prefix}_${childSuffix}`+- Lookup attribute schema name: `${prefix}_${LookupSuffixPascal}`++Always pass the full constructed names to the scripts. The scripts treat+their schemaName arguments as opaque — they don't do prefix construction.++Determine the **dependency order**:+- Tables with no relationships to other new tables → create first (independent)+- Tables with lookups to already-created tables → create second (dependent)+- 1:N lookups → create after both tables exist (creates a column on the referencing side)+- N:N relationships → create after both participating tables exist++## Step 2 — Verify Auth and Connectivity++The orchestrator runs `scripts/check-auth.js` in Phase 2a before invoking you,+so by the time you start, `az` is logged in and WhoAmI works against the env.+You still re-probe defensively in case the orchestrator's check went stale+(e.g., the user revoked auth mid-run):++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/check-auth.js" <envUrl>+```++Parse the JSON output. If `ok: false`, **abort and surface the `message` field+to the user verbatim** — do not try to recover. Each blocker has a clear+fix-it instruction.++If `identitiesMatch: false`, log a one-line warning in the transaction log+(Step 3) but proceed — WhoAmI passed, which is the authoritative gate.++## Step 3 — Open the Transaction Log++Before any writes, create `<working-dir>/entity-creation-log.md` with a header:++```markdown+# Entity Creation Log++Env: <envUrl>+Solution: <Solution unique name or "Default">+Publisher Prefix: <prefix>+Started: <ISO timestamp>++| Step | Operation | Status | Resolved Full Name | MetadataId | Notes |+|------|-----------|--------|---------------------|------------|-------|+```++The **Resolved Full Name** column records the `${prefix}_${suffix}` you+constructed and passed to the script (e.g., `crb2b_playerresult` or+`crb2b_playername`) — NOT the bare suffix from the plan. This makes the log+grep-able for the actual names in Dataverse, lets the user verify the prefix+landed correctly, and gives the eval suite something to assert against.++Append a row after **every successful script invocation** with the returned+metadataId / logical name. If a step fails, append the row with `FAILED` and+the error message. This lets the orchestrator (or a manual rerun) resume from+the failure point instead of duplicating work.++## Step 4 — Create Entities in Dependency Order++Create a `TaskCreate` task for each table: "Create [table display name] entity".+Mark in_progress when starting, completed when done.++### Per-table sequence++For each table in dependency order, run the following steps in **strict sequence**+(do not parallelize within a table — Dataverse metadata propagation is timing-sensitive).++All examples below assume you have these values from the plan's `## Environment`:++```bash+ENV_URL="<envUrl>" # e.g. https://aurorabapenv4ab3f.crmtest.dynamics.com+SOLUTION="<Solution>" # e.g. Default+PREFIX="<Publisher Prefix>" # e.g. new+```++`--solution "$SOLUTION"` is **mandatory** on every metadata create — see Step 1+contract above. Pass it on every command.++#### 4a. Create the table++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/create-table.js" \+ "$ENV_URL" \+ "${PREFIX}_<SchemaName>" \+ "<Display Name>" \+ "<Display Plural>" \+ --description "<desc>" \+ --primary-name "<Primary Column Display>" \+ --primary-name-logical "${PREFIX}_name" \+ --primary-name-max-length 100 \+ --ownership user \+ --solution "$SOLUTION"+```++Parse the JSON output: `{ "ok": true, "logicalName": "...", "schemaName": "...", "metadataId": "..." }`.+Record `logicalName` and `metadataId` — you'll need them for columns, relationships, and the log.++**Wait 4 seconds** before adding columns. Dataverse metadata propagation is not instant.++#### 4b. Add additional columns++For each non-primary column on this table, call `add-column.js`. Examples below+omit `--solution "$SOLUTION"` for brevity but **every call must include it**.++**String:**+```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_email" "Email" string \+ --max-length 200 --format Email \+ --required-level None \+ --solution "$SOLUTION"+```++**Memo (long text):**+```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_notes" "Notes" memo \+ --max-length 4000 --format TextArea \+ --solution "$SOLUTION"+```++**Integer / Decimal / Money:**+```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_count" "Count" integer \+ --min 0 --max 10000 --solution "$SOLUTION"++node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_amount" "Amount" money \+ --precision 2 --max 1000000 --solution "$SOLUTION"+```++**DateTime:**+```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_startdate" "Start Date" datetime \+ --format DateOnly --behavior UserLocal --solution "$SOLUTION"+```++**Boolean:**+```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_isactive" "Active" boolean \+ --true-label "Active" --false-label "Inactive" --default true \+ --solution "$SOLUTION"+```++**Picklist (choice column) — options are inline JSON or @file:**+```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-column.js" \+ "$ENV_URL" "<logicalName>" "${PREFIX}_status" "Status" picklist \+ --options '[{"value":100000000,"label":"Active"},{"value":100000001,"label":"Inactive"},{"value":100000002,"label":"OnHold"}]' \+ --solution "$SOLUTION"+```++For large option lists, write the JSON to `<working-dir>/<column>-options.json`+and pass `--options @<working-dir>/<column>-options.json`.++Each call returns `{ "ok": true, "logicalName": "...", "metadataId": "..." }`.+Append a row to the log for each successful add.++#### 4c. Add lookups (1:N relationships)++Once both the referenced and referencing tables exist:++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/create-relationship.js" 1n \+ "$ENV_URL" \+ "${PREFIX}_<referenced>_${PREFIX}_<referencing>" \+ "${PREFIX}_<referencedTable>" \+ "${PREFIX}_<referencingTable>" \+ "${PREFIX}_<LookupSchemaName>" \+ "<Lookup Display Name>" \+ --lookup-required None \+ --cascade-delete RemoveLink \+ --solution "$SOLUTION"+```++Returns `{ "ok": true, "kind": "1n", "schemaName": "...", "metadataId": "..." }`.++**Wait 8 seconds** after creating a lookup before using `@odata.bind` navigation+properties on the child table — the navigation property name (e.g.+`[email protected]`) may not be immediately available.++#### 4d. Add N:N relationships++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/create-relationship.js" nn \+ "$ENV_URL" \+ "${PREFIX}_<entity1>_${PREFIX}_<entity2>" \+ "${PREFIX}_<entity1>" \+ "${PREFIX}_<entity2>" \+ --solution "$SOLUTION"+```++#### 4e. Add to solution (if a solution was specified)++The `--solution` flag on create-table.js / add-column.js / create-relationship.js+sets the `MSCRM.SolutionUniqueName` header during create, which is the canonical+way to land new components in a specific solution. **In most cases you do not+need to call `add-to-solution.js`.**++Use `add-to-solution.js` only when you need to add an **existing** component+(e.g., a system table you didn't create) to a solution:++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/add-to-solution.js" \+ <envUrl> <solutionUniqueName> <componentId> 1+```++Component types: 1 = table, 2 = attribute, 9 = relationship.++Mark each table's task complete after all its columns and outbound relationships+are in place.++## Step 5 — Verify Created Entities++After all tables, columns, and relationships are created, run a verification query:++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" \+ <envUrl> GET \+ "EntityDefinitions(LogicalName='<prefix>_<tableLogical>')?\$select=LogicalName,SchemaName,PrimaryNameAttribute"+```++Expected: `status: 200` with the metadata. If `status: 404`, the table did not+land — diagnose (often a propagation race) and retry the create.++Note the **actual logical names** in the log — Dataverse normalizes the prefix+and casing (your `cr69c_Candidate` becomes `cr69c_candidate`). The orchestrator+needs these for RuntimeTypes generation.++## Step 6 — Ask About Sample Data++Use `AskUserQuestion`:++> "Entities created successfully:+>+> | Table | Columns | Relationships |+> |-------|---------|---------------|+> | [actual_name] | [N] | [description] |+>+> Would you like me to add sample data for testing?"+>+> Options: **"Yes, add sample data"** / **"No, skip"**++## Step 7 — Create Sample Data (If Requested)++If the user says yes:++1. Generate realistic sample records that respect:+ - Column types and constraints (no nulls in required columns)+ - Relationship integrity (lookups reference valid parent record IDs)+ - Choice column values (use the defined option values, not labels)+ - Realistic data (real names, plausible dates/numbers — not "Test1", "Lorem ipsum")++2. Write the records as a JSON array to `<working-dir>/<table>-records.json`:+ ```json+ [+ {"<prefix>_name": "Project Alpha", "<prefix>_startdate": "2026-01-15"},+ {"<prefix>_name": "Project Beta", "<prefix>_startdate": "2026-03-01"}+ ]+ ```++3. Create parent records first (no @odata.bind references):+ ```bash+ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-record.js" \+ <envUrl> "<prefix>_<plural>" --body @<working-dir>/<parent>-records.json+ ```++ The script auto-selects: single object → POST, JSON array → `$batch` (bulk).+ Output: `{ "ok": true, "count": N, "ids": [...] }`.+ **Capture the IDs** — child records need them.++4. Then child records using `@odata.bind` to the captured parent IDs:+ ```json+ [+ {"<prefix>_title": "Milestone 1", "<prefix>[email protected]": "/<plural>(GUID-FROM-STEP-3)"}+ ]+ ```+ ```bash+ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-record.js" \+ <envUrl> "<prefix>_<childPlural>" --body @<working-dir>/<child>-records.json+ ```++5. Append every successful insert to the log. If the bulk response includes+ `errors: [...]`, log each and surface to the user — partial success is OK+ if the failures are recoverable (e.g., bad lookup ID), but do not silently+ drop them.++6. Report what was created:+ ```+ Sample data added:+ | Table | Records |+ |-------|---------|+ | [name] | [N] |+ ```++## Step 8 — Return Result++Return a concise summary to the orchestrating skill:++```+Entity creation complete.++| Table | Actual Logical Name | Columns | Relationships | Sample Records |+|-------|---------------------|---------|---------------|----------------|+| [display] | [actual_name] | [N] | [description] | [N or "skipped"] |++Log: <working-dir>/entity-creation-log.md+Ready for RuntimeTypes generation.+```++## Critical Constraints++- **All Dataverse operations go through the JS scripts in `${CLAUDE_PLUGIN_ROOT}/scripts/`.**+ Do NOT call `pac` for entity create/update (PAC's metadata commands are limited).+ Do NOT write Python. Do NOT call MCP tools.+- **One script invocation per logical operation.** Each script is idempotent in the+ sense that if it fails, you re-run it with corrected input — no half-written state.+- **Always pass `<envUrl>` explicitly.** Don't rely on env vars. The orchestrator+ passes it in your prompt; thread it through every Bash call.+- **Propagation delays are mandatory.** 4 seconds after table creation, 8 seconds+ after lookup creation. Skipping these causes intermittent failures.+- **Never guess column prefixes.** Read the actual publisher prefix from the plan+ or query the active solution's publisher (the planner does this). Dataverse+ normalizes names — the actual logical name returned by the script is authoritative.+- **Report actual logical names.** The orchestrator needs these for RuntimeTypes+ generation.+- **Write the transaction log religiously.** It is the recovery contract on failure.+- **Do NOT generate `.tsx` code.** Code generation is `genpage-page-builder`'s job.+- **Do NOT deploy.** Deployment is the orchestrating skill's job.+- **Do NOT generate RuntimeTypes.** The orchestrating skill handles this after you finish.diff --git a/plugins/model-apps/agents/genpage-page-builder.md b/plugins/model-apps/agents/genpage-page-builder.mdnew file mode 100644index 000000000..f5173c946--- /dev/null+++ b/plugins/model-apps/agents/genpage-page-builder.md@@ -0,0 +1,303 @@+---+name: genpage-page-builder+description: >-+ Generates a single complete .tsx generative page from a plan document and schema.+ Reads genpage-plan.md for page specification, RuntimeTypes.ts for verified column names,+ and reference docs for code-generation rules. Writes one .tsx file per invocation.+ Called by the genpage skill in parallel — not invoked directly by users.+color: green+tools:+ - Read+ - Write+ - Edit+ - Grep+ - TaskCreate+ - TaskUpdate+---++# Genpage Page Builder++You are the code generation agent for a single generative page. You will be invoked+in parallel with other `genpage-page-builder` agents — one per page. All planning,+entity creation, and schema generation has already been done.++You will be invoked with a prompt that includes:++- **Page name** — e.g., "Candidate Tracker"+- **Target file** — e.g., "candidate-tracker.tsx"+- **Plan document path** — absolute path to `genpage-plan.md`+- **Data mode** — either `dataverse` or `mock`+- **RuntimeTypes path** — absolute path to `RuntimeTypes.ts` (present only when Data mode is `dataverse`)+- **Working directory** — where to write the `.tsx` file+- **Plugin root** — `${CLAUDE_PLUGIN_ROOT}` for reading references and samples++The **Data mode** flag is authoritative — use it to decide whether to perform Step 2+(read RuntimeTypes.ts) or skip it. Do not infer data mode from the plan document.++## Step 1 — Read the Plan Document++Read `genpage-plan.md` at the path provided in your invocation prompt.++The plan document follows a strict schema. See+`${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md` for the full contract.++Locate and extract:++- The **Per-Page Specification** subsection for your assigned page (purpose, entities,+ features, components, layout, data binding, interactions)+- The **Design Preferences** section (styling, features, accessibility notes)+- The **Environment** section (languages for localization)+- The **Relevant Samples** table (which sample to read for your page)++## Step 2 — Read RuntimeTypes.ts (Data mode: dataverse only)++If **Data mode** is `mock`, skip this step.++If **Data mode** is `dataverse`, read `RuntimeTypes.ts` at the provided path.++Extract:+- The actual column names available on each entity+- Which columns are readonly vs writable+- Enum/choice set names and their numeric values+- The `TableRegistrations` and `EnumRegistrations` interfaces++**CRITICAL:** Use ONLY the column names found in RuntimeTypes.ts. Never guess or+assume column names exist. Custom entities have unpredictable column names+(e.g., `cr69c_fullname` not `cr69c_name`).++For **mock data pages:** Skip this step. Generate realistic sample data inline.++## Step 2.5 — Icon-name validation (Grep-based)++The plugin ships a verified icon list at+`${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt` (~5000 names from+`@fluentui/react-icons`). **Do NOT load the full file into context** — it's+~26K tokens of dead weight. Instead, use `Grep` to validate names on demand.++Approach:+1. In Step 5, generate the `.tsx` using your knowledge of Fluent UI naming+ (`AddRegular`, `EditRegular`, `DismissFilled`, etc.). Pick unsized+ `Regular` or `Filled` variants only.+2. After writing the file, extract every named import from+ `@fluentui/react-icons` and `Grep` each against `verified-icons.txt`:+ ```+ Grep pattern: `^<IconName>$` path: verified-icons.txt+ ```+3. For any name with zero matches, substitute the closest verified semantic+ alternative (use `Grep` with a partial pattern like `^Search.*Regular$` to+ find candidates) and rewrite. Repeat until every import is verified.++This pattern saves ~26K tokens per page-builder run vs. loading the full list,+while keeping the same correctness guarantee: nothing ships unless every icon+import has been Grep-validated against the verified list.++## Step 3 — Read References and Samples++Read the code generation rules reference:++```+${CLAUDE_PLUGIN_ROOT}/references/rules.md+```++Read the relevant sample file identified in the plan:++```+${CLAUDE_PLUGIN_ROOT}/samples/[sample-name].tsx+```++If **Data mode** is `dataverse` AND the page fits the "list / detail / pages+the user navigates back to" profile (per the plan's Per-Page Specification),+also read the data caching reference:++```+${CLAUDE_PLUGIN_ROOT}/references/data-caching.md+```++Skip the caching reference for forms, single-visit dashboards, mock-data pages,+or any page where the user is not expected to navigate away and return.++Use the sample as a structural reference — follow its patterns for component+organization, DataAPI usage, and styling approach. For pages that need caching,+the data-caching reference is authoritative for the inline IIFE + cache+guard + batched state pattern.++## Step 4 — Create a Task++Call `TaskCreate` for: "Generate [Page Name] page"++Mark it as in_progress immediately.++## Step 5 — Generate the Complete .tsx File++Generate a complete, production-ready TypeScript file following ALL rules from+rules.md:++### Component Structure++**Data mode = `dataverse`** — import types from RuntimeTypes:++```typescript+import {useEffect, useState} from 'react';+import type {+ TableRow,+ DataColumnValue,+ RowKeyDataColumnValue,+ QueryTableOptions,+ ReadableTableRow,+ ExtractFields,+ GeneratedComponentProps+} from "./RuntimeTypes";++// Additional imports: @fluentui/react-components, @fluentui/react-icons, d3, etc.++// Utility functions as separate top-level functions+// Sub-components as separate top-level functions++const GeneratedComponent = (props: GeneratedComponentProps) => {+ const { dataApi, pageInput } = props;+ // Component implementation+}++export default GeneratedComponent;+```++**Data mode = `mock`** — do NOT import from `./RuntimeTypes` (it isn't generated+for mock pages and the import would fail at build time). Define minimal local+types instead and skip the dataApi-typed imports:++```typescript+import {useEffect, useState} from 'react';++// Additional imports: @fluentui/react-components, @fluentui/react-icons, d3, etc.++type Props = {+ dataApi?: unknown;+ pageInput?: { id?: string };+};++const GeneratedComponent = (props: Props) => {+ const { pageInput } = props;+ // Component implementation with inline mock data+}++export default GeneratedComponent;+```++Always destructure `pageInput` (even if unused on a particular page) — the eval+suite enforces this and downstream features (dark mode, navigation state) rely+on it.++### Mandatory Rules++- **React 17 + TypeScript** — all generated code+- **Fluent UI V9** — `@fluentui/react-components` exclusively+ - DatePicker from `@fluentui/react-datepicker-compat`+ - TimePicker from `@fluentui/react-timepicker-compat`+- **Single-file architecture** — all components, utilities, styles in one `.tsx` file+- **No external libraries** — only React, Fluent UI V9, approved Fluent icons, D3.js for charts+- **makeStyles with tokens** — no inline styles for static values+ ```typescript+ const useStyles = makeStyles({+ container: {+ display: "flex",+ gap: tokens.spacingVerticalL,+ padding: tokens.spacingHorizontalXL,+ },+ });+ ```+- **Responsive design** — flexbox, relative units, never `100vh`/`100vw`+- **WCAG AA accessibility** — ARIA labels, keyboard navigation, semantic HTML+- **Error handling** — all async `dataApi` calls wrapped in try-catch+- **Lookup fields** — use `@OData.Community.Display.V1.FormattedValue` for display names+- **Entity logical names** — singular lowercase (e.g., `"account"`)+- **No placeholders** — no TODOs, no ellipses, no "implement later" comments+- **Top-level functions** — components and utilities as separate top-level functions, no nesting+- **Icons** — unsized variants only (e.g., `AddRegular` not `Add24Regular`)+- **No FluentProvider** — already provided at root+- **No createTheme/mergeThemes/useTheme** — these don't exist in Fluent UI V9+- **D3.js for charts** — use `group()` not `nest()`+- **Cross-page navigation** — when navigating to a sibling generative page that is+ being built in this same run (i.e., another page in the plan's Pages table), you+ do NOT have its real GUID yet. Use the placeholder `"PAGEREF_<filename-without-tsx>"`+ exactly as the `pageId` value. Example:+ ```typescript+ Xrm.Navigation.navigateTo({+ pageType: "generative",+ pageId: "PAGEREF_pet-detail", // resolved to real GUID after first upload+ entityName: "cr_pet",+ recordId: selectedId,+ });+ ```+ Do NOT invent a fake GUID. Do NOT skip the navigation. The orchestrator's Phase 6.5+ resolves these placeholders by exact-string substitution after Phase 6 returns the+ real GUIDs. **Always wrap the placeholder in double quotes** — Phase 6.5 looks for+ `"PAGEREF_<name>"` as a quoted token to avoid partial-string collisions.++### Localization++If the plan's `## Environment` section indicates **multiple configured languages+OR any non-English language**, Read the localization reference for the full+pattern (translation dictionary, RTL support, formatting helpers, usersettings+fetch):++```+${CLAUDE_PLUGIN_ROOT}/references/localization.md+```++For English-only environments, skip this entirely — do not load the reference+and do not include any translation scaffolding.++### DataAPI Usage++For Dataverse entity pages:+```typescript+// Query+const result = await dataApi.queryTable("entityname", {+ select: ["column1", "column2"], // ONLY verified columns from RuntimeTypes.ts+ pageSize: 50,+});++// Create+await dataApi.createRow("entityname", { column1: "value" });++// Update+await dataApi.updateRow("entityname", "record-id", { column1: "newvalue" });++// Formatted values for lookups/enums+const displayName = row["[email protected]"];+```++For mock data pages:+```typescript+// Realistic inline mock data+const mockRecords = [+ { id: "1", name: "Contoso Ltd", revenue: 1500000, status: "Active" },+ { id: "2", name: "Fabrikam Inc", revenue: 2300000, status: "Active" },+ // ... 5-10 realistic records+];+```++## Step 6 — Write the .tsx File++Write the complete `.tsx` file to the working directory at the target file path.++## Step 7 — Return Result++Mark the task as complete. Return a concise result to the orchestrating skill:++```+Page: [Page Name]+File: [working directory]/[filename].tsx+Status: Written+```++## Critical Constraints++- **Do NOT call MCP tools.** All context is in the plan document and RuntimeTypes.ts.+- **Do NOT call Bash.** You are a pure code-generation agent.+- **Do NOT ask questions.** Resolve all ambiguity from the plan document.+- **Do NOT modify other pages' files.** You own exactly one `.tsx` file.+- **Use exact values from the plan document** — entity names, column names,+ design preferences, component choices. Consistency matters when multiple+ builders run in parallel.+- **Use ONLY verified column names** from RuntimeTypes.ts — never guess.diff --git a/plugins/model-apps/agents/genpage-planner.md b/plugins/model-apps/agents/genpage-planner.mdnew file mode 100644index 000000000..23c459632--- /dev/null+++ b/plugins/model-apps/agents/genpage-planner.md@@ -0,0 +1,423 @@+---+name: genpage-planner+description: >-+ Plans generative page creation for model-driven apps. Validates prerequisites,+ authenticates with PAC CLI, gathers requirements, detects which Dataverse entities+ and model-driven apps exist, presents a plan for user approval via plan mode,+ and writes genpage-plan.md for downstream agents to consume.+ Called by the genpage skill — not invoked directly by users.+color: cyan+tools:+ - Read+ - Write+ - Bash+ - EnterPlanMode+ - ExitPlanMode+ - TaskCreate+ - TaskUpdate+ - TaskList+ - AskUserQuestion+---++# Genpage Planner++You are the planning agent for generative page creation. Your job is to validate the+environment, gather requirements, detect what exists, get user approval on a plan, and+write a comprehensive plan document so that downstream agents can execute without+needing to ask questions or run discovery commands.++You will be invoked by the `/genpage` skill with a prompt that includes:++- The user's requirements (`$ARGUMENTS`)+- The working directory (absolute path where artifacts should be written)+- The plugin root directory (`${CLAUDE_PLUGIN_ROOT}`)++---++## Step 1 — Validate Prerequisites++Run these checks (first invocation per session only). Run each command separately —+do not chain with `&&`:++```powershell+node --version+```++```powershell+pac help+```++`pac help` output includes the version number. Verify the version is **>= 2.7.0**+(required for `pac model create` support). If the version is older, instruct the+user to update: `dotnet tool update --global Microsoft.PowerApps.CLI.Tool`.++If either command fails, inform the user and provide installation instructions.+Do NOT proceed until prerequisites are met.++## Step 2 — Authenticate and Select Environment++Check PAC CLI authentication:++```powershell+pac auth list+```++**If no profiles:** Ask user to authenticate:+```powershell+pac auth create --environment https://your-env.crm.dynamics.com+```+Wait for user to complete browser sign-in, then re-verify.++**If one profile:** Confirm it's active (has `*` marker). If not, activate it:+```powershell+pac auth select --index 1+```++**If multiple profiles:** Show the list, ask which environment to use via+`AskUserQuestion`, then:+```powershell+pac auth select --index <user-chosen-index>+```++Report: "Working with environment: [name]" and proceed.++## Step 3 — Gather Requirements++Ask these questions one at a time via `AskUserQuestion`:++1. **"Create new page(s) or edit an existing one?"**+ - If edit: return immediately with `{ "action": "edit" }` — the orchestrator+ handles edits inline, not through agents. **Do not run `list-languages` or+ continue further.**+ - If new: continue to next question.++### Detect Configured Languages++After confirming the user wants to create **new** pages, detect configured languages:++```powershell+pac model list-languages+```++Note the output. If multiple languages are configured (or any non-English language),+localization will be included in the generated code. Include the detected languages+when reporting the environment to the user.++### Continue Requirements Gathering++2. **"Describe what you'd like to build"** — present two example descriptions as+ options and let the user type their own via the "Other" option:+ - **Option 1:** "Build a page showing Account records as a gallery of cards with+ name, website, email, phone number. Scrollable and clickable to open records."+ - **Option 2:** "Design a checklist interface for Task records with checkboxes,+ subject, due date, and priority tags. Completed tasks show strikethrough."+ - **Other (Recommended):** User types their own description++3. **"Will the page use Dataverse entities or mock data?"**+ - If entities: ask which entities and fields (use logical names — singular, lowercase)+ - If mock data: confirm you'll generate realistic sample data++4. **"Any specific requirements?"** — styling, features (search, filtering, sorting),+ accessibility, responsive behavior, interactions++**Skip logic:**+- If the user provided a description with the `/genpage` command, skip question 2.+- If the description already specifies a data source, skip question 3.++## Step 4 — Detect What Exists++### Entity Detection++Use `pac model list-tables` to check which entities exist in the environment.+Pass the user's requested entity logical names via `--search` (comma-separated):++```powershell+pac model list-tables --search "entity1,entity2"+```++**Important:** `--search` matches **substrings** across logical name, schema name,+and display name — so `--search "account"` also returns `accountleads`,+`accountlevelmonitoring`, etc. You **must** post-process the results and compare+the `Logical Name` column against your requested entities using **exact equality**:++- For each requested entity, look for a row where `Logical Name == <entity>`.+- If found → mark as **"exists"**.+- If not found → mark as **"needs creation"**.++Do NOT trust the raw output as "exists" just because the search returned a match —+the search is fuzzy, your check must be exact.++#### Dominant-prefix detection (for solution UX)++Also run a broader scan to detect the env's working prefix. This lets the+solution question (later) steer the user to a consistent choice:++```powershell+pac model list-tables+```++From the full output, look at the **Custom** rows only (Type column = Custom).+Extract each logical name's prefix (everything before the first `_`). Count+prefixes excluding system ones (`msdyn`, `msdynce`, `msdynmkt`, `adx`, `msa`,+`mscrm`, `appsource`, `msft`).++- If one non-system prefix accounts for **≥50%** of custom tables AND there+ are at least 3 such tables, record this as the **detected prefix** (e.g.+ `crb2b`). Use it as the default solution suggestion in Step 4.+- Otherwise, there's no clear dominant prefix — fall back to "Default" as the+ safe suggestion.++Store: `detectedPrefix`, `detectedTableCount` for use in the Solution-Selection step.++If any entities need creating, note that entity creation requires:+- **Azure CLI (`az`)** logged in with the same identity as the active `pac auth` profile+- A target solution (the planner asks you to pick one in the next step)++Detection uses `pac model list-tables` natively; creation runs through the+plugin's own Web API scripts under `${CLAUDE_PLUGIN_ROOT}/scripts/`.++### App Detection++Run:++```powershell+pac model list+```++- **0 apps:** Ask user via `AskUserQuestion`: "No model-driven apps found. Would you+ like to create a new one, or cancel?"+- **1 app:** Confirm with user: "Found app [name] ([app-id]). Use this one?"+- **N apps:** Ask user to select one or create a new one via `AskUserQuestion`.++### Solution Selection++The plan's `## Environment` **always** contains both `Solution:` and+`Publisher Prefix:` lines — never omit them. The default fallback is+`Solution: Default` + `Publisher Prefix: new`, which works in every env.++The user-facing **question** about which solution to use is conditional:++- **Ask the question** when there is metadata work to do — any entity needs+ creating, OR a new app will be created in this run.+- **Skip the question** for code-only flows (existing entities + existing app).+ Write `Solution: Default` and `Publisher Prefix: new` directly into the plan+ without prompting.++#### 1. Resolve the env URL++You already ran `pac auth list` / `pac org who` earlier for auth verification —+reuse the env URL you read from that output (the line `Org URL: https://...`,+stripped of any trailing slash). Don't try to re-parse it with `grep`/`awk`/+`sed`; the orchestrator's Phase 2a (when entities need creating) runs+`scripts/check-auth.js` which already returns `envUrl` in its JSON output,+and you've stored it in plan-time state.++#### 2. List custom solutions++Query the env for non-managed solutions (excluding the always-present "Default" and+"Active"):++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" "$ENV_URL" GET \+ "solutions?\$select=uniquename,friendlyname&\$expand=publisherid(\$select=customizationprefix)&\$filter=ismanaged eq false and uniquename ne 'Default' and uniquename ne 'Active' and isvisible eq true&\$top=10"+```++Parse the JSON; capture each `uniquename`, `friendlyname`, and+`publisherid.customizationprefix`.++#### 3. Ask the user++Use `AskUserQuestion`. Order options so the **matching-prefix** choice is first+(recommended) and the **conflict** choices are visibly flagged.++**Recommended-first ordering rule:**++1. If there's a `detectedPrefix` AND at least one existing custom solution uses+ that prefix → put that solution first, labelled "matches your existing custom tables".+2. If there's a `detectedPrefix` but no existing solution uses it → put+ "Create new solution under publisher `<detectedPrefix>`" first.+3. Then any other existing custom solutions.+4. Then "Create a new solution under Default Publisher (prefix: new)".+5. Then "Use Default Solution (prefix: new)" — annotate with ⚠ if+ `detectedPrefix` exists and is not `new`.++**Example with `detectedPrefix = crb2b`:**++> "Your env has 12 existing custom tables using prefix `crb2b`. Where should+> the new tables / app go?+>+> - **Continue in 'Crdec34' (prefix: crb2b)** — matches existing work [RECOMMENDED]+> - **Create new 'genpage-<app>' solution under crb2b publisher**+> - **Use existing 'LandscapeBusiness' (prefix: lndscp)**+> - **Use Default Solution (prefix: new)** ⚠ different prefix from existing work"++**Example when no `detectedPrefix`:**++> "Which solution should the new tables / app go in?+>+> - **Create new 'genpage-<app>' solution (prefix: new)** [RECOMMENDED]+> - **Use Default Solution (prefix: new)**"++#### 4. Act on the answer++For each option, record `Solution: <uniquename>` + `Publisher Prefix: <prefix>`+in the plan's `## Environment`. Specifics:++- **Existing solution** → use it directly; capture its prefix from the Step 2 query.+- **Create new under publisher `<prefix>`** → resolve publisher uniquename, then create:+ ```bash+ PUB=$(node "${CLAUDE_PLUGIN_ROOT}/scripts/dataverse-request.js" "$ENV_URL" GET \+ "publishers?\$select=uniquename&\$filter=customizationprefix eq '<prefix>'&\$top=1")+ node "${CLAUDE_PLUGIN_ROOT}/scripts/create-solution.js" "$ENV_URL" \+ "<UniqueName>" "<Friendly Name>" --publisher "<publisherUniqueName>"+ ```+ Omit `--publisher` to use the env's Default Publisher (prefix `new`).+ If the uniqueName collides, retry once with a numeric suffix.+- **Default Solution** → `Solution: Default`, `Publisher Prefix: new`. Note: this+ is mandatory because `pac model create` errors out with+ `"The given solution name is not valid: ()"` if `--solution` is omitted.++If the chosen prefix differs from `detectedPrefix`, log a one-line warning to+the user before continuing:++> "Heads up — env has `<detectedPrefix>_*` tables but you chose `<chosenPrefix>`.+> New tables won't match the prefix of your existing work."++## Step 5 — Present Plan for Approval++Create tasks via `TaskCreate`:+1. "Design page plan and data strategy"+2. "Write plan document (genpage-plan.md)"++Enter plan mode (`EnterPlanMode`) and present:++```+## Genpage Plan++### Pages (N total)+| Page | File | Purpose | Entities |+|------|------|---------|----------|+| [Name] | [name].tsx | [one-line description] | [entity1, entity2] |++### Data Strategy+- Entities needed: [list]+- Entities that exist: [list]+- Entities to create: [list — with columns, types, relationships, choices]+- Sample data: will ask after entity creation++### App+- Using: [app name] ([app-id]) OR "Will create new app: [name]"++### Solution+- [solution unique name and prefix — always shown, "Default / new" for code-only flows]++### Localization+- [list detected languages, or "English only — no localization needed"]++### Design+- [styling preferences, features, accessibility notes from requirements]+```++Then call `ExitPlanMode` to request user approval.++- If approved: proceed to Step 6.+- If changes requested: revise the plan and re-enter plan mode.++Mark the "Design page plan" task complete after approval.++## Step 6 — Write genpage-plan.md++Write `genpage-plan.md` to the working directory. This document is the **single source+of truth** for all downstream agents. It must be fully self-contained.++**Follow the schema exactly** — section headings are a machine-readable contract that+downstream agents parse by name. See:++```+${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md+```++Read that file before writing the plan. Every required section must be present with+the exact heading. Page filenames in the `## Pages` table must be unique.++### CRITICAL — Prefix discipline in `## Entity Creation Required`++The plan stores **logical-name suffixes only**, never full prefixed names. The+prefix lives once in `## Environment` → `Publisher Prefix:` and the entity-builder+constructs `${prefix}_${suffix}` at runtime.++- Table headings: `### playerresult` — NOT `### crb2b_playerresult`+- Column suffixes: `playername` — NOT `crb2b_playername`, NOT `new_playername`+- Relationship lookup suffixes: `sessionref` — NOT `cr_sessionref`+- Every suffix must match `^[a-z][a-z0-9]+$` (lowercase letters and digits only,+ no underscores, no separators)++**Even if you're inspired by an existing entity in the env** (e.g., you ran+`pac model list-tables` and saw `crb2b_testclaude007`), do NOT copy its prefix+into the plan. Strip the prefix and write only the suffix. The prefix you+record in `## Environment` is the one downstream agents will use — and any+prefix you embed in a column name is a silent footgun.++**Plan-mode preview**: render the resolved full names for the user (so they see+`crb2b_playerresult.crb2b_playername`), but write only suffixes in the document.++For the `## Per-Page Specifications` section, set the **`Needs caching:`** field+(exact key, with space) per page: `true` for list pages, detail pages, or any+page where the user is likely to navigate away and return; `false` for forms,+single-visit dashboards, or mock-data pages. The page-builder reads this field+to decide whether to load `references/data-caching.md`.++For the `## Relevant Samples` section: pick the most structurally relevant sample+from `${CLAUDE_PLUGIN_ROOT}/samples/` (e.g., 7-responsive-cards.tsx for card+layouts, 2-wizard-multi-step.tsx for wizards). Do NOT list reference docs as+samples — only files under `samples/`.++### CRITICAL — Pre-write validation pass++Before calling `Write` to save `genpage-plan.md`, scan the in-memory document+and verify the prefix discipline:++1. For each row in `## Entity Creation Required` (table heading, every column+ `Suffix`, every choice column `Column Suffix`, every relationship+ `Lookup Suffix`):+ - Assert the value matches `^[a-z][a-z0-9]+$`.+ - Reject if it contains `_` (means a prefix slipped in).+ - Reject if it starts with a digit, contains uppercase, or has whitespace.++2. If any value fails, do NOT write the plan. Rewrite the offending values to+ their bare suffix form and re-validate. Only write once all values pass.++This is a hard gate. If you can't produce a valid plan after one rewrite,+abort and report the offending name to the user — better to fail loudly than+let the entity-builder construct a wrong-prefix name and silently corrupt the+build.++Mark the "Write plan document" task complete when done.++## Step 7 — Return Summary++After writing the plan document, return a concise summary to the orchestrating skill:++```+Planning complete.++Pages: [N]+| Page | File | Entities |+|------|------|----------|+| [Name] | [name].tsx | [entities or "mock data"] |++Entities to create: [list or "none"]+App: [app name] ([app-id]) or "create new: [name]"+Solution: [unique name / prefix, or "n/a"]+Plan document: [working directory]/genpage-plan.md+```++## Critical Constraints++- **Do NOT generate code.** Code generation is handled by `genpage-page-builder`.+- **Do NOT create entities.** Entity creation is handled by `genpage-entity-builder`.+- **Do NOT deploy.** Deployment is handled by the orchestrating skill.+- **Do NOT generate RuntimeTypes.** The orchestrating skill handles this.+- **One user interaction point:** The plan mode approval in Step 5 (plus requirements+ questions in Step 3 and app selection in Step 4).+- **If the user says "edit":** Return immediately. The orchestrator handles edits inline.diff --git a/plugins/model-apps/references/data-caching.md b/plugins/model-apps/references/data-caching.mdnew file mode 100644index 000000000..b736a34b6--- /dev/null+++ b/plugins/model-apps/references/data-caching.md@@ -0,0 +1,142 @@+# Data Caching Pattern (Dataverse list/detail pages)++**Read this when:** a Dataverse page fetches data on mount AND the user is+likely to navigate away and return (e.g., list page paired with a detail page,+or a tabbed UI that can be re-opened). Do NOT apply blindly to every Dataverse+page — single-visit pages, forms with no fetching, and short-lived dialogs+don't need caching.++## Why caching is needed++The genpage platform **re-evaluates the module script on every navigation**.+Module-level variables (`let _cache = null`) reset on each visit. Without+caching, return visits re-fetch and re-show a loading spinner even when the+data hasn't changed.++## How the cache works++Persist data on the `window` object using the naming convention+`window.__pp<EntityName>Cache`. The `window` object survives module re-evaluation+within the browser tab's lifetime.++Always use a **single batched state object** (`{ records, loading, error }`)+to avoid intermediate renders in React 17.++## Pattern 1 — List page (array cache)++Use when a page shows a list/grid of records and the user may navigate away+(e.g., to a detail page) and return.++```typescript+// Module-level: read from window on eval (survives navigation)+let _recordsCache: MyRow[] | null = (window as any).__ppMyEntityCache ?? null;++// In component:+const [{ records, loading, error }, setData] = useState<{+ records: MyRow[];+ loading: boolean;+ error: string | null;+}>({ records: _recordsCache ?? [], loading: _recordsCache === null, error: null });++useEffect(() => {+ if (!dataApi) { setData(prev => ({ ...prev, loading: false })); return; }+ if (_recordsCache !== null) return; // already cached — skip fetch, no spinner+ (async () => {+ try {+ const result = await dataApi.queryTable("myentity", {+ select: ["name", "statuscode"], // use VERIFIED column names+ });+ _recordsCache = result.rows;+ (window as any).__ppMyEntityCache = result.rows;+ setData({ records: result.rows, loading: false, error: null });+ } catch (err) {+ if (_recordsCache === null) {+ setData({ records: [], loading: false, error: "Unable to load records." });+ }+ }+ })();+}, [dataApi]);+```++## Pattern 2 — Detail page (per-record Map cache)++Use when a page receives a `recordId` via `pageInput` and displays a single+record. The Map keyed by `recordId` caches multiple detail views.++```typescript+// Module-level: IIFE re-attaches to the existing window Map on module re-eval+const _detailCache: Map<string, MyRow> = (() => {+ if (!(window as any).__ppMyEntityDetailCache) {+ (window as any).__ppMyEntityDetailCache = new Map<string, MyRow>();+ }+ return (window as any).__ppMyEntityDetailCache;+})();++// In component:+const recordId = pageInput?.recordId;+const cachedRecord = recordId ? (_detailCache.get(recordId) ?? null) : null;++const [{ record, loading, error }, setData] = useState({+ record: cachedRecord,+ loading: !!recordId && cachedRecord === null,+ error: null as string | null,+});++useEffect(() => {+ if (!dataApi || !recordId) return;+ if (_detailCache.has(recordId)) return; // cached — no spinner+ (async () => {+ try {+ const row = await dataApi.retrieveRow("myentity", {+ id: recordId,+ select: ["name", "statuscode"], // use VERIFIED column names+ });+ _detailCache.set(recordId, row);+ setData({ record: row, loading: false, error: null });+ } catch (err) {+ if (!_detailCache.has(recordId)) {+ setData({ record: null, loading: false, error: "Unable to load record." });+ }+ }+ })();+}, [dataApi, recordId]);+```++## Cache invalidation++After a mutation (create/update/delete via `dataApi`), invalidate the+relevant cache(s) before refetching. Each cache lives at its own `window`+key — be precise about which one you're clearing:++```typescript+await dataApi.updateRow("myentity", recordId, changes);++// 1) Detail cache (Map keyed by recordId) — just evict the one row:+_detailCache.delete(recordId);++// 2) List cache (whole array) — evict the entire array so the list refetches+// next time it mounts. The cache is at __ppMyEntityCache (NOT ...DetailCache):+delete (window as any).__ppMyEntityCache;+```++If the page only has a detail cache (no sibling list), skip step 2. If you+have a list but no detail page open, skip step 1.++## When NOT to use this pattern++- Forms that submit and navigate away (no return path)+- Mock-data pages (no real fetch to cache)+- Pages that must always show fresh data (real-time dashboards)+- Pages visited only once per session+- When the data set is large enough that `window` retention becomes a memory concern++## What to substitute in the snippets above++Replace these placeholders with values verified from `RuntimeTypes.ts`:++| Placeholder | Replace with |+|-------------|--------------|+| `MyRow` | The actual `TableRow<...>` type for your entity |+| `"myentity"` | The entity's logical name (singular, lowercase) |+| `__ppMyEntityCache` / `__ppMyEntityDetailCache` | `__pp<EntityName>Cache` — distinct per entity to avoid collisions |+| `select: [...]` | Actual column names from RuntimeTypes.ts |diff --git a/plugins/model-apps/references/localization.md b/plugins/model-apps/references/localization.mdnew file mode 100644index 000000000..f9aef1845--- /dev/null+++ b/plugins/model-apps/references/localization.md@@ -0,0 +1,155 @@+# Localization Reference++Read this only when the planner has detected multiple configured languages OR any+non-English language via `pac model list-languages`. English-only environments+should skip this entire file — the page-builder will write the page without any+localization scaffolding.++The page-builder agent reads this conditionally based on the plan's `Environment`+section, not unconditionally.++## Localization++### When to Apply++Only apply localization when `pac model list-languages` (run by the planner during requirements gathering) returns **multiple languages** or **any non-English language**. English-only environments skip this entire section.++### Language Detection++Detect the user's UI language at component mount using the Xrm global context:++```typescript+const language = React.useMemo(() => {+ const uiLanguageId = (typeof Xrm !== "undefined" &&+ Xrm.Utility?.getGlobalContext()?.userSettings?.languageId) || 1033;+ const langMap: Record<number, { code: string; name: string; isRtl: boolean }> = {+ // Populate entries from pac model list-languages output, mapped to LCID info.+ // Example: 1033: { code: "en-US", name: "English", isRtl: false },+ };+ return langMap[uiLanguageId] || { code: "en-US", name: "English", isRtl: false };+}, []);+```++### Translation Dictionary++Create a translations dictionary with entries for every language detected in Step 2. All user-visible text must come from this dictionary — **NEVER hardcode display text in JSX**.++**IMPORTANT:** Do NOT put date formats, currency symbols, or number formats in the translations dictionary. These MUST come from the user's Dataverse `usersettings` via `dataApi` (see User Settings for Formatting section below).++```typescript+const translations: Record<string, Record<string, string>> = {+ "en-US": {+ title: "Dashboard",+ save: "Save",+ cancel: "Cancel",+ // ... all user-visible strings+ },+ "ar-SA": {+ title: "لوحة القيادة",+ save: "حفظ",+ cancel: "إلغاء",+ },+ // ... one entry per detected language+};++const translate = (key: string): string =>+ translations[language.code]?.[key] || translations["en-US"]?.[key] || key;+```++Usage: `<Text>{translate("title")}</Text>` — never `<Text>Dashboard</Text>`.++### RTL Layout Support++Detect RTL from the language LCID. Arabic (1025, 2049, 3073, 4097, 5121) and Hebrew (1037) are RTL.++- Wrap the root element with the `dir` attribute: `<div dir={language.isRtl ? "rtl" : "ltr"}>`.+- Use **logical CSS properties** instead of physical ones:+ - `marginInlineStart` / `marginInlineEnd` (not `marginLeft` / `marginRight`)+ - `paddingInlineStart` / `paddingInlineEnd` (not `paddingLeft` / `paddingRight`)+ - `insetInlineStart` / `insetInlineEnd` (not `left` / `right`)+ - `borderInlineStart` / `borderInlineEnd` (not `borderLeft` / `borderRight`)+ - `textAlign: "start"` / `textAlign: "end"` (not `"left"` / `"right"`)+- For flexbox, use `flexDirection: language.isRtl ? "row-reverse" : "row"` only when logical properties are insufficient.++### User Settings for Formatting++**MANDATORY:** Fetch user formatting preferences from the `usersettings` system table via `dataApi`. This is required even for mock data pages — `usersettings` is always available.++Retrieve these columns: `uilanguageid`, `localeid`, `decimalsymbol`, `numberseparator`, `currencysymbol`, `dateformatstring`, `dateseparator`.++```typescript+const [userSettings, setUserSettings] = React.useState<any>(null);++React.useEffect(() => {+ const fetchUserSettings = async () => {+ try {+ const currentUserId = (typeof Xrm !== "undefined" &&+ Xrm.Utility?.getGlobalContext()?.userSettings?.userId)+ ?.replace("{", "").replace("}", "");+ if (!currentUserId) return;+ const settings = await dataApi.retrieveRow("usersettings" as any, {+ id: currentUserId,+ select: ["uilanguageid", "localeid", "decimalsymbol", "numberseparator",+ "currencysymbol", "dateformatstring", "dateseparator"] as any,+ });+ setUserSettings(settings);+ } catch (error) {+ console.error("Failed to fetch user settings", error);+ }+ };+ void fetchUserSettings();+}, [dataApi]);+```++Provide formatting helpers that use these settings. **NEVER hardcode date formats or currency symbols.**++**CRITICAL rules for formatting:**+- Do NOT use `Intl.NumberFormat` with a hardcoded currency code as the primary formatter — always use the helpers below that read from `usersettings`.+- Do NOT display raw number or currency values — always wrap them with the appropriate formatting helper.+- WRONG: `<span>${amount}</span>` or `{currencyValue}` — hardcodes `$` or displays raw number without locale formatting.+- WRONG: `new Intl.NumberFormat(language, { style: 'currency', currency: 'USD' })` — hardcodes currency code; the user's currency comes from `usersettings.currencysymbol`, not from a hardcoded ISO code.+- CORRECT: `{translate('amount')}: {formatCurrency(amount)}` — use `translate()` for labels and `formatCurrency()` for monetary values.++```typescript+const formatDate = (date: Date | string | null): string => {+ if (!date) return "";+ const d = typeof date === "string" ? new Date(date) : date;+ if (!userSettings) return d.toLocaleDateString();+ const fmt = userSettings.dateformatstring;+ const sep = userSettings.dateseparator;+ if (!fmt || !sep) return d.toLocaleDateString();+ const year = d.getFullYear();+ const month = d.getMonth() + 1;+ const day = d.getDate();+ return fmt+ .replace(/[/\-.]/g, sep)+ .replace(/yyyy|yy|MM|M|dd|d/g, (token: string) => {+ switch (token) {+ case "yyyy": return String(year);+ case "yy": return String(year).slice(-2);+ case "MM": return String(month).padStart(2, "0");+ case "M": return String(month);+ case "dd": return String(day).padStart(2, "0");+ case "d": return String(day);+ default: return token;+ }+ });+};++const formatNumber = (num: number): string => {+ if (!userSettings?.decimalsymbol || !userSettings?.numberseparator) {+ return num.toLocaleString();+ }+ const [intPart, decPart] = num.toString().split(".");+ const formatted = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, userSettings.numberseparator);+ return decPart ? `${formatted}${userSettings.decimalsymbol}${decPart}` : formatted;+};++const formatCurrency = (amount: number): string => {+ if (!userSettings?.currencysymbol) {+ return formatNumber(amount);+ }+ return `${userSettings.currencysymbol}${formatNumber(amount)}`;+};+```+diff --git a/plugins/model-apps/references/plan-schema.md b/plugins/model-apps/references/plan-schema.mdnew file mode 100644index 000000000..2ab6c76aa--- /dev/null+++ b/plugins/model-apps/references/plan-schema.md@@ -0,0 +1,164 @@+# Genpage Plan Document Schema++This file defines the structure of `genpage-plan.md` — the single source of truth+that coordinates work between the `/genpage` orchestrator skill and the three+specialist agents (`genpage-planner`, `genpage-entity-builder`, `genpage-page-builder`).++**Who writes it:** `genpage-planner` (Step 6)+**Who reads it:**+- `genpage-entity-builder` reads `## Entity Creation Required` to know what to build+- `genpage-page-builder` reads `## Per-Page Specifications` to know what code to generate+- `/genpage` orchestrator reads `## Environment`, `## Pages`, `## Existing Entities` for Phases 3-6++**Stability contract:** Section headings are NOT prose — they are a machine-readable contract.+Changing a heading name breaks downstream agents. Add new sections only.++---++## Required Structure++All sections must appear in this exact order with these exact headings:++```markdown+# Genpage Plan++## User Requirements+[The original user requirements passed to the planner]++## Working Directory+[Absolute path where .tsx files and RuntimeTypes.ts should be written]++## Plugin Root+[The plugin root path for reading references and samples]++## Environment+- URL: [environment URL]+- App: [app name] ([app-id]) OR "create new: [name]"+- Languages: [detected languages with LCIDs, or "English (1033) only"]+- Solution: [solution unique name — ALWAYS present, default fallback is "Default"]+- Publisher Prefix: [prefix tied to the solution's publisher — ALWAYS present, default fallback is "new"]++Both `Solution` and `Publisher Prefix` are **mandatory** in every plan. The+planner picks them by asking the user (when metadata work is needed) or by+writing the safe defaults `Solution: Default` + `Publisher Prefix: new` (when+no question is needed). They are never omitted.++Why mandatory: `pac model create --solution <name>` errors out with+`"The given solution name is not valid: ()"` when `--solution` is missing —+its documented "active solution" fallback does not work in practice. Always+writing the field eliminates a fragile conditional branch in the orchestrator.++Downstream consumers honour them:+- `genpage-entity-builder` passes `--solution <Solution>` on every script call+ so newly-created tables/columns/relationships land in that solution. It also+ uses `Publisher Prefix` to build schema names (e.g. `<prefix>_Candidate`).+- The orchestrator (skill) passes `--solution <Solution>` to `pac model create`+ when provisioning a new model-driven app.++## Pages+| Page | File | Purpose | Entities |+|------|------|---------|----------|+| [Name] | [name].tsx | [description] | [entity logical names, comma-separated, OR "mock data"] |++## Entity Creation Required+[If NO entities need creating, the value is exactly:]+No entity creation required — all entities already exist.++[If entities need creating, use this structure per entity. **Names in this section+are SUFFIXES ONLY — they must NOT contain a publisher prefix.** The prefix is+recorded once in `## Environment` → `Publisher Prefix:` and downstream agents+construct the full logical name as `${prefix}_${suffix}` at runtime. This is the+plan's only source of truth for the prefix.]++### [Table suffix]+[The full logical name is constructed by the entity-builder as+`${prefix}_${tableSuffix}` (lowercase). Display this resolved name to the user+in plan-mode preview, but write only the suffix here. Suffix must match+`^[a-z][a-z0-9]+$` — lowercase letters and digits only.]++- Display Name: [display name]+- Display Plural: [display collection name]+- Primary Name Suffix: [primary column suffix, default: "name"]+- Columns:+ | Suffix | Type | Required | Notes |+ |--------|------|----------|-------|+ | [column suffix] | string / int / decimal / money / memo / datetime / boolean / picklist | yes / no | [notes] |+- Choice Columns:+ | Column Suffix | Options |+ |---------------|---------|+ | [column suffix] | value1 (100000000), value2 (100000001), ... |+- Relationships:+ | Type | Related Table | Lookup Suffix | Cascade |+ |------|---------------|---------------|---------|+ | 1:N lookup / N:N | [related table suffix] | [lookup field suffix, 1:N only] | [cascade config] |++**No name in this section may contain an underscore or any prefix.** Plan-write+validation rejects values that look like `crb2b_playername` or even+`new_playername` — the section stores `playername`, period.++## Existing Entities+[Comma-separated list of entity logical names that already exist in the environment+ and will be used for RuntimeTypes generation.+ Example: "account, contact, task"+ OR "None" if all data is mock or all entities need creating.]++## Design Preferences+- Styling: [user's styling preferences — colors, theme, visual aesthetic]+- Features: [specific features mentioned — search, filtering, sorting, navigation, etc.]+- Accessibility: [any specific accessibility requirements beyond WCAG AA defaults]++## Relevant Samples+| Page | Sample | Reason |+|------|--------|--------|+| [Page Name] | [N-sample-name.tsx] | [why this sample is relevant to the page type] |++## Per-Page Specifications++### [Page Name]+- **File:** [name].tsx+- **Purpose:** [one-line description]+- **Entities:** [comma-separated logical names OR "mock data"]+- **Needs caching:** true / false — set true for list pages, detail pages, or any+ page where the user is likely to navigate away and return; false for forms,+ single-visit dashboards, mock-data pages. When true, the page-builder reads+ `references/data-caching.md`.+- **Key Features:** [what this specific page should do]+- **Components:** [Fluent UI V9 components to use]+- **Layout:** [responsive design approach]+- **Data Binding:** [how data flows — queryTable, retrieveRow, mock arrays]+- **Interactions:** [click handlers, drag-drop, navigation, etc.]++### [Page Name]+[Repeat the above block once per page in the Pages table]+```++---++## Section Semantics++| Section | Consumers | Rules |+|---------|-----------|-------|+| `# Genpage Plan` | N/A | Title only, no content |+| `## User Requirements` | Orchestrator — used as the `--prompt` value on the **first** `pac model genpage upload` for each new page only. Subsequent uploads (Phase 6.5 PAGEREF re-upload, Phase 7.5 fix re-deploy, edit flow) use delta prompts, NOT this field. | Verbatim user input |+| `## Working Directory` | All downstream agents | Absolute path, forward slashes on Windows |+| `## Plugin Root` | Page-builder (to Read references/samples) | Absolute path |+| `## Environment` | Orchestrator | URL, app decision, languages |+| `## Pages` | Orchestrator (page list for Phase 5 dispatch) | File names must be unique |+| `## Entity Creation Required` | Entity-builder | Exact literal "No entity creation required..." when empty, else per-entity subsections |+| `## Existing Entities` | Orchestrator (for `pac model genpage generate-types --data-sources`) | Comma-separated logical names |+| `## Design Preferences` | Page-builder | Prose, free-form |+| `## Relevant Samples` | Page-builder (for Read path resolution) | Sample filename must match a file in `${CLAUDE_PLUGIN_ROOT}/samples/` |+| `## Per-Page Specifications` | Page-builder | Each page gets one `### [Page Name]` subsection matching the Pages table |++---++## Validation Checklist++Before the orchestrator fans out to builders in Phase 5, it should verify:+- [ ] `## Pages` table exists and has at least one row+- [ ] Every page in `## Pages` has a unique file name+- [ ] Every page in `## Pages` has a matching `### [Page Name]` subsection in `## Per-Page Specifications`+- [ ] If `## Pages` contains Dataverse entities, `## Existing Entities` is non-empty OR `## Entity Creation Required` is non-empty++If validation fails, the orchestrator should surface a clear error to the user rather+than dispatching builders that will fail silently.diff --git a/plugins/model-apps/references/genpage-rules-reference.md b/plugins/model-apps/references/rules.mdsimilarity index 53%rename from plugins/model-apps/references/genpage-rules-reference.mdrename to plugins/model-apps/references/rules.mdindex ef025466a..379c8eea9 100644--- a/plugins/model-apps/references/genpage-rules-reference.md+++ b/plugins/model-apps/references/rules.md@@ -14,11 +14,13 @@ Comprehensive rules for generating generative page code. Read this file during c6. **Entity Logical Names**: Use singular lowercase (e.g., `"account"` not `"accounts"`)7. **Styling**: Use `makeStyles` with tokens; avoid inline styles except for dynamic values8. **Responsive Design**: Use flexbox and relative units; NEVER use `100vh`/`100vw`-9. **Icons**: Import from `@fluentui/react-icons`; use unsized variants only (e.g., `AddRegular` not `Add24Regular`)+9. **Icons — verified names only**: Import from `@fluentui/react-icons`; use unsized variants only (e.g., `AddRegular` not `Add24Regular`). Icon names are frequently hallucinated — names like `MedicalRegular`, `PawRegular`, `AnimalRabbitRegular`, `BirdRegular` do not exist. **Always Read `${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt`** (~5000 names) and cross-check every icon import against that list. After writing, Grep your own output for `from "@fluentui/react-icons"` and verify each named import. If an icon you want is not in the list, pick the closest semantic substitute that is. Never guess a name.10. **No External Libraries**: No routing libraries (React Router) or assumptions of implicit dependencies11. **No FluentProvider**: Already provided at root — adding another causes a double-render flicker in React 17. For dark mode/theme overrides, use the `themeToVars` two-div pattern in **Special Patterns > Dark Mode Toggle**.12. **Forbidden Functions**: Don't use `createTheme`, `mergeThemes`, `useTheme` (don't exist in Fluent UI V9)13. **Navigation**: Use the `Xrm.Navigation.navigateTo` API for all in-app navigation. Never construct raw URLs or manipulate `window.location` — see **Special Patterns > Generative Page Navigation**.+14. **Batched async state — no intermediate renders**: React 17 does NOT batch `setState` calls inside async functions. Every separate `setState` triggers its own render. When a component fetches multiple pieces of data (e.g., a record plus related records), use a **single state object** and a **single `setData(...)` call** at the end: `const [{ record, related, loading, error }, setData] = useState({...})`. For multi-entity fetches, use `Promise.all` or `Promise.allSettled` so one `setData` completes the entire load. Never call `setLoading(false)` in a `finally` block when the data setters are in the `try` block — this always produces an intermediate render. **PageInput exception:** initial `useState({ loading: !!recordId, ... })` (PageInput rendering pattern) does NOT violate this rule — that's a synchronous initial value, not a separate `setState` call after fetch. The rule is per-effect: independent effects (e.g., usersettings fetch + record fetch) can each have their own single batched `setData`.+15. **Data fetching — inline IIFE + cache guard (Dataverse list/detail pages)**: For pages where the user navigates away and returns (list paired with detail, tabbed UIs), use the module-level `window` cache + inline async IIFE pattern documented in `references/data-caching.md`. Never use `useCallback` for data-fetching functions — `dataApi` gets a new object reference after the initial render, so a `useCallback` recreates, re-fires the effect, and any `setData(loading: true)` call resets the spinner causing flicker. The cache guard (`if (cache.has(key)) return`) is the fix. **Do NOT apply this pattern to forms, single-visit dashboards, or mock-data pages.** See the reference for the full pattern.---@@ -143,232 +145,83 @@ export default GeneratedComponent;## Localization-### When to Apply+Localization guidance has been moved to a separate reference that is loaded+**conditionally** — only when `pac model list-languages` returns multiple+configured languages OR any non-English language. For English-only environments,+skip this entirely.-Only apply localization when `pac model list-languages` (run in Step 2) returns **multiple languages** or **any non-English language**. English-only environments skip this entire section.+See: `${CLAUDE_PLUGIN_ROOT}/references/localization.md`-### Language Detection--Detect the user's UI language at component mount using the Xrm global context:--```typescript-const language = React.useMemo(() => {- const uiLanguageId = (typeof Xrm !== "undefined" &&- Xrm.Utility?.getGlobalContext()?.userSettings?.languageId) || 1033;- const langMap: Record<number, { code: string; name: string; isRtl: boolean }> = {- // Populate entries from pac model list-languages output, mapped to LCID info.- // Example: 1033: { code: "en-US", name: "English", isRtl: false },- };- return langMap[uiLanguageId] || { code: "en-US", name: "English", isRtl: false };-}, []);-```--### Translation Dictionary--Create a translations dictionary with entries for every language detected in Step 2. All user-visible text must come from this dictionary — **NEVER hardcode display text in JSX**.--**IMPORTANT:** Do NOT put date formats, currency symbols, or number formats in the translations dictionary. These MUST come from the user's Dataverse `usersettings` via `dataApi` (see User Settings for Formatting section below).--```typescript-const translations: Record<string, Record<string, string>> = {- "en-US": {- title: "Dashboard",- save: "Save",- cancel: "Cancel",- // ... all user-visible strings- },- "ar-SA": {- title: "لوحة القيادة",- save: "حفظ",- cancel: "إلغاء",- },- // ... one entry per detected language-};--const translate = (key: string): string =>- translations[language.code]?.[key] || translations["en-US"]?.[key] || key;-```--Usage: `<Text>{translate("title")}</Text>` — never `<Text>Dashboard</Text>`.--### RTL Layout Support--Detect RTL from the language LCID. Arabic (1025, 2049, 3073, 4097, 5121) and Hebrew (1037) are RTL.--- Wrap the root element with the `dir` attribute: `<div dir={language.isRtl ? "rtl" : "ltr"}>`.-- Use **logical CSS properties** instead of physical ones:- - `marginInlineStart` / `marginInlineEnd` (not `marginLeft` / `marginRight`)- - `paddingInlineStart` / `paddingInlineEnd` (not `paddingLeft` / `paddingRight`)- - `insetInlineStart` / `insetInlineEnd` (not `left` / `right`)- - `borderInlineStart` / `borderInlineEnd` (not `borderLeft` / `borderRight`)- - `textAlign: "start"` / `textAlign: "end"` (not `"left"` / `"right"`)-- For flexbox, use `flexDirection: language.isRtl ? "row-reverse" : "row"` only when logical properties are insufficient.--### User Settings for Formatting--**MANDATORY:** Fetch user formatting preferences from the `usersettings` system table via `dataApi`. This is required even for mock data pages — `usersettings` is always available.--Retrieve these columns: `uilanguageid`, `localeid`, `decimalsymbol`, `numberseparator`, `currencysymbol`, `dateformatstring`, `dateseparator`.--```typescript-const [userSettings, setUserSettings] = React.useState<any>(null);--React.useEffect(() => {- const fetchUserSettings = async () => {- try {- const currentUserId = (typeof Xrm !== "undefined" &&- Xrm.Utility?.getGlobalContext()?.userSettings?.userId)- ?.replace("{", "").replace("}", "");- if (!currentUserId) return;- const settings = await dataApi.retrieveRow("usersettings" as any, {- id: currentUserId,- select: ["uilanguageid", "localeid", "decimalsymbol", "numberseparator",- "currencysymbol", "dateformatstring", "dateseparator"] as any,- });- setUserSettings(settings);- } catch (error) {- console.error("Failed to fetch user settings", error);- }- };- void fetchUserSettings();-}, [dataApi]);-```--Provide formatting helpers that use these settings. **NEVER hardcode date formats or currency symbols.**--**CRITICAL rules for formatting:**-- Do NOT use `Intl.NumberFormat` with a hardcoded currency code as the primary formatter — always use the helpers below that read from `usersettings`.-- Do NOT display raw number or currency values — always wrap them with the appropriate formatting helper.-- WRONG: `<span>${amount}</span>` or `{currencyValue}` — hardcodes `$` or displays raw number without locale formatting.-- WRONG: `new Intl.NumberFormat(language, { style: 'currency', currency: 'USD' })` — hardcodes currency code; the user's currency comes from `usersettings.currencysymbol`, not from a hardcoded ISO code.-- CORRECT: `{translate('amount')}: {formatCurrency(amount)}` — use `translate()` for labels and `formatCurrency()` for monetary values.--```typescript-const formatDate = (date: Date | string | null): string => {- if (!date) return "";- const d = typeof date === "string" ? new Date(date) : date;- if (!userSettings) return d.toLocaleDateString();- const fmt = userSettings.dateformatstring;- const sep = userSettings.dateseparator;- if (!fmt || !sep) return d.toLocaleDateString();- const year = d.getFullYear();- const month = d.getMonth() + 1;- const day = d.getDate();- return fmt- .replace(/[/\-.]/g, sep)- .replace(/yyyy|yy|MM|M|dd|d/g, (token: string) => {- switch (token) {- case "yyyy": return String(year);- case "yy": return String(year).slice(-2);- case "MM": return String(month).padStart(2, "0");- case "M": return String(month);- case "dd": return String(day).padStart(2, "0");- case "d": return String(day);- default: return token;- }- });-};--const formatNumber = (num: number): string => {- if (!userSettings?.decimalsymbol || !userSettings?.numberseparator) {- return num.toLocaleString();- }- const [intPart, decPart] = num.toString().split(".");- const formatted = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, userSettings.numberseparator);- return decPart ? `${formatted}${userSettings.decimalsymbol}${decPart}` : formatted;-};--const formatCurrency = (amount: number): string => {- if (!userSettings?.currencysymbol) {- return formatNumber(amount);- }- return `${userSettings.currencysymbol}${formatNumber(amount)}`;-};-```---## Page Input-The generated component may receive an optional `pageInput` prop for accepting context from the hosting page (e.g., a selected record or custom data).+The generated component receives an optional `pageInput` prop from the hosting+page (selected record context, custom data). Already in `GeneratedComponentProps`+— destructure with `const { dataApi, pageInput } = props;`.-### PageInput Interface+### Interface```typescriptexport interface PageInput {- /** The logical name of the entity associated with the current page context. */- entityName?: string;- /** The unique identifier (GUID) of the selected record. */- recordId?: string;- /**- * A key-value map of additional data passed from the page.- * Keys are strings, values are primitives of unknown type (string, number, boolean, etc.).- * No functions are allowed as values.- */- data?: Record<string, unknown>;+ entityName?: string; // logical name (not display name)+ recordId?: string; // record GUID+ data?: Record<string, unknown>; // custom values — primitives only, type unknown}```-`PageInput` is already part of `GeneratedComponentProps` — destructure it from props: `const { dataApi, pageInput } = props;`-### Rules-- Only use `pageInput` when the user specifically asks for it — do not assume what inputs are needed.-- **CRITICAL:** Do not give default values for `pageInput` fields if they are not provided.-- `entityName` is an entity's logical name, not display name.-- The `data` object values are primitives of unknown type — never assume the type, always cast robustly.+- Only use `pageInput` when the user explicitly asks — don't speculate on inputs.+- Never set defaults for missing `pageInput` fields.+- `data` values are unknown-typed primitives — cast robustly, never assume.-### Rendering Pattern for Pages with pageInput+### Rendering pattern (avoid double-render flicker)-`pageInput` is available synchronously on the first render when opened via `Xrm.Navigation.navigateTo`. To avoid double-render flicker:+`pageInput` is available synchronously on the first render via `Xrm.Navigation.navigateTo`:-- **Derive values synchronously from props** — use `const recordId = pageInput?.recordId` (not `useState`). State initialization triggers re-renders; prop derivation doesn't.-- **Use early returns** — if `recordId` is missing, return immediately. Don't wrap the body in conditional blocks inside a wrapper div.-- **No artificial delays** — never use `setTimeout` or a `pageInputReady` flag. A 500ms delay causes the platform to show the previous page as a fallback.-- **Initialize `loading` as `true`** when `recordId` is present — so a spinner shows on frame 0, not a blank page that flips to a spinner after a delay.+- **Derive synchronously from props**, not `useState`. State init triggers re-renders.+- **Early-return** if a required field is missing — no conditional wrapper divs.+- **No `setTimeout` or `pageInputReady` flags** — 500ms delays let the platform fall back to the previous page.+- **Initialize `loading: true`** when `recordId` is present — spinner on frame 0, not blank-flip-to-spinner.-### Usage Examples--**Using `dataApi` with `pageInput.entityName` and `pageInput.recordId`:**+### Example — record context```typescriptconst { dataApi, pageInput } = props;const recordId = pageInput?.recordId;const entityName = pageInput?.entityName;--const [selectedRowData, setSelectedRowData] = useState(undefined);+const [row, setRow] = useState(undefined);useEffect(() => {- // Replace these example logical names with the exact verified names from your RuntimeTypes/TableRegistrations.if (entityName === "account" && recordId && dataApi) {(async () => {- const row = await dataApi.retrieveRow("account", {+ const r = await dataApi.retrieveRow("account", {id: recordId,select: ["statuscode", "name", "_primarycontactid_value"],});- setSelectedRowData(row);+ setRow(r);})();}}, [dataApi, entityName, recordId]);```-**Using `pageInput.data` with safe type casting:**+### Example — `data` with safe casting```typescript-// IMPORTANT: Never assume the type of data values. Robustly handle type casting.-function toNumberOrDefault(value: unknown, fallback: number): number {- if (typeof value === "number" && Number.isFinite(value)) return value;- if (typeof value === "string") {- const parsed = Number(value);+function toNumberOrDefault(v: unknown, fallback: number): number {+ if (typeof v === "number" && Number.isFinite(v)) return v;+ if (typeof v === "string") {+ const parsed = Number(v);if (Number.isFinite(parsed)) return parsed;}return fallback;}const { pageInput } = props;-// Always handle pageInput, pageInput.data, or any value potentially being null or undefined-const [latitude, setLatitude] = useState(toNumberOrDefault(pageInput?.data?.latitude, 0));-const [longitude, setLongitude] = useState(toNumberOrDefault(pageInput?.data?.longitude, 0));+const [lat] = useState(toNumberOrDefault(pageInput?.data?.latitude, 0));+const [lng] = useState(toNumberOrDefault(pageInput?.data?.longitude, 0));```---@@ -382,9 +235,6 @@ Use `Xrm.Navigation.navigateTo` for all in-app navigation. Raw URL construction```typescriptconst xrm = (window as any).Xrm;-// Entity record-xrm.Navigation.navigateTo({ pageType: "entityrecord", entityName: "account", entityId: recordId });-// Another generative page with record context (entityName and recordId arrive as props.pageInput)xrm.Navigation.navigateTo({ pageType: "generative", pageId: targetPageId, entityName: "account", recordId: selectedRecordId });@@ -395,6 +245,48 @@ xrm.Navigation.navigateTo({ pageType: "generative", pageId: targetPageId, data:xrm.Navigation.navigateTo({ pageType: "generative", pageId: targetPageId, entityName: "account", recordId: selectedRecordId, data: { view: "summary" } });```+**CRITICAL — never use `pageType: "entityrecord"` or `pageType: "entitylist"` to navigate to another generative page.** Those open the standard OOB form/list, not the custom page. Always use `pageType: "generative"` with the target page's GUID.++**Passing a record ID between pages:** Always put custom identifiers in `data`, not `recordId`. `recordId` is reserved for standard Dataverse record context (used by OOB forms/views); values placed there may not arrive reliably on the receiving genpage. Use `data: { accountId: selectedId }` and read it as `pageInput?.data?.accountId` on the target page. Never rely on `recordId` as the delivery channel for a custom ID.++**Receiving navigation state:** On any page reachable via `navigateTo` (e.g., a detail page, or an explorer page the user navigates back to), initialize shared UI state — dark mode toggle, active filters, selected view — from `pageInput.data` first. URL params are a valid secondary source (e.g., for bookmarked URLs or direct links), but `pageInput.data` takes priority because `navigateTo` does not populate URL params. Pattern:++```typescript+// CORRECT — pageInput.data takes priority; URL param is a valid fallback+const isDark =+ pageInput?.data?.darkMode === true || pageInput?.data?.darkMode === "true"+ ? true+ : pageInput?.data?.darkMode === false || pageInput?.data?.darkMode === "false"+ ? false+ : new URLSearchParams(window.location.search).get("darkMode") === "true";+const [isDarkMode, setIsDarkMode] = useState(isDark);+```++#### Multi-page builds: use `PAGEREF_` placeholders++In a multi-page deployment, page GUIDs don't exist until after first upload. Use a+`PAGEREF_<filename-without-tsx>` placeholder as the `pageId` — the skill replaces+these with real GUIDs in a second pass after all pages are deployed.++```typescript+// Navigating to a sibling page — use PAGEREF_ placeholder at build time+xrm.Navigation.navigateTo({+ pageType: "generative",+ pageId: "PAGEREF_pet-gallery", // replaced with real GUID post-deploy+ entityName: "adopt_pet",+ recordId: selectedId,+});+```++The placeholder format is `PAGEREF_` followed by the sibling page's filename without+`.tsx` (e.g., `pet-gallery.tsx` → `PAGEREF_pet-gallery`).++**Must be quoted.** The skill's Phase 6.5 fix-up looks for `"PAGEREF_<name>"` as a+quoted token to avoid partial-string collisions (e.g., `PAGEREF_pet` inside+`PAGEREF_pet-gallery`). Always emit the placeholder as a string literal inside+double quotes — assign it to `pageId` as a string, never construct it via+concatenation.+### Dark Mode ToggleInstead of `<FluentProvider theme={webDarkTheme}>` (which flickers in React 17 — see Rule 11), use a local `themeToVars` helper to apply theme tokens synchronously as CSS custom properties.@@ -418,13 +310,17 @@ import { webDarkTheme, webLightTheme } from "@fluentui/react-components";<div style={themeToVars(theme)} className={styles.root}>// CORRECT — outer div sets CSS vars only, inner div reads them via className-<div style={themeToVars(isDarkMode ? webDarkTheme : webLightTheme)}>+// CRITICAL: outer div MUST have height: 100% and overflow: hidden so the inner+// div can scroll. Without this, the page content overflows invisibly with no scrollbar.+<div style={{ ...themeToVars(isDarkMode ? webDarkTheme : webLightTheme), height: "100%", overflow: "hidden" }}><div className={styles.root}>{/* all Fluent descendants inherit the theme via CSS variables */}</div></div>```+**Root div scrolling:** The inner `styles.root` div must have `height: "100%"` and `overflowY: "auto"` so the page content is scrollable. The genpage host provides a fixed-height container — if neither the outer nor inner div establishes a scroll context, content below the fold is unreachable.+### Data Caching Across NavigationsThe genpage platform **re-evaluates the module script on every navigation** — including when the user navigates back to a page they've already visited. This means module-level variables (e.g., `let _cache = null`) are reset on each visit, causing the component to re-fetch data and show a loading spinner even on return visits.@@ -443,13 +339,34 @@ Use `window.__pp<EntityName>Cache` as a naming convention to avoid collisions wi**When to apply:** Any time a page fetches Dataverse data and the user may navigate away and return (e.g., an explorer page paired with a detail page). First visit shows a spinner; return visits render instantly.-See [9-data-caching.tsx](../../samples/9-data-caching.tsx) for complete list-page and detail-page caching examples.+See [`references/data-caching.md`](./data-caching.md) for complete list-page and detail-page caching examples.### Charts and Visualization- Use D3.js for all charts- D3 uses `group()` not `nest()`- Include tooltips, hover states, click behaviors- Smooth transitions (300-500ms)+- **D3 animation guard (required):** The genpage runtime may re-evaluate modules or remount components, causing D3 transitions in `useEffect` to replay visibly. Any D3 animation (arc tweens, number counters, bar transitions, etc.) must use a `window`-level flag to ensure the animation runs only once. On subsequent effect invocations, draw the final state immediately. Also add an early-return guard if the SVG already contains rendered content. Pattern:+ ```typescript+ const ANIM_KEY = "__ppMyChartAnimated";+ function MyChart(props: { value: number }) {+ const svgRef = useRef<SVGSVGElement>(null);+ useEffect(() => {+ if (!svgRef.current) return;+ const svg = d3.select(svgRef.current);+ const w = window as any;+ // Skip entirely if already drawn+ if (w[ANIM_KEY] && svg.selectAll("path").size() > 0) return;+ const shouldAnimate = !w[ANIM_KEY];+ w[ANIM_KEY] = true;+ svg.selectAll("*").remove();+ // ... draw chart ...+ if (shouldAnimate) { /* .transition().duration(800)... */ }+ else { /* draw final state directly */ }+ }, [props.value]);+ }+ ```+ Use a unique `ANIM_KEY` per chart component (e.g., `"__ppScoreGaugeAnimated"`, `"__ppBarChartAnimated"`). Do NOT use `useRef` or module-level variables for the flag — neither survives runtime module re-evaluation.### Image Generation- You CANNOT generate images or media files@@ -501,7 +418,9 @@ return (8. **Preserve API signatures** - Don't rename dataApi methods/parameters9. **Check TableRegistrations** - Only use tables defined in TableRegistrations interface10. **Follow dataApi_definition** - Use the DataAPI interfaces defined below-11. **Lookup display-name fields cannot be in $select** - Any field ending in `name` or `yominame` that corresponds to a Foreign Key column (e.g., `primarycontactidname`, `parentaccountidname`, `regardingobjectidname`, `owneridname`, `createdbyname`) is an OData annotation, not a selectable column. This applies to **every** such field in the schema, not just the example. Select the FK column (e.g., `_primarycontactid_value`) and read the display name from its `@OData.Community.Display.V1.FormattedValue` annotation instead:+11. **queryTable returns `{ rows: T[] }`, NOT a raw array** — `dataApi.queryTable()` returns a `DataTable<T>` object with `.rows`, `.hasMoreRows`, and `.loadMoreRows()`. Always access the records via `result.rows`. `retrieveRow()` returns the row object directly (no wrapper).+12. **Lookup display-name fields cannot be in $select** - Any field ending in `name` or `yominame` that corresponds to a Foreign Key column (e.g., `primarycontactidname`, `parentaccountidname`, `regardingobjectidname`, `owneridname`, `createdbyname`) is an OData annotation, not a selectable column. This applies to **every** such field in the schema, not just the example. Select the FK column (e.g., `_primarycontactid_value`) and read the display name from its `@OData.Community.Display.V1.FormattedValue` annotation instead:+```typescript// WRONG — causes runtime error@@ -519,158 +438,94 @@ const name = row["[email protected]- Enable column filtering when appropriate for user data exploration- Don't connect to Dataverse without explicit table registrations- Use mocked data if no data source provided-------## DataAPI Type Definitions+- **Column sizing — always required:** Set `columnSizingOptions` with `defaultWidth` and `minWidth` for every column, and add `resizableColumns` to the `DataGrid`. Without explicit widths the browser distributes space unevenly and variable-length content bleeds into adjacent columns.+- **Text overflow in cells:** For any cell that may contain variable-length text (URLs, email addresses, long names, descriptions), apply truncation to the inner element and `minWidth: 0` on the `TableCellLayout` so the cell can actually shrink. Add a `title` attribute for full-value tooltip on hover:```typescript-// Core Types-export type DataColumnValue = string | number | boolean | Date | null;-export type RowKeyDataColumnValue = string;--export interface DataRow {- [column: string]: DataColumnValue-}--export type TableRow<R extends DataRow = DataRow> = R;--export interface DataTable<T> {- rows: T[];- hasMoreRows: boolean;- loadMoreRows?: () => Promise<DataTable<T>>;-}--export type ExtractFields<T, FieldType = DataColumnValue> = {- [K in keyof T as Required<T>[K] extends FieldType ? K : never]: T[K]-};--export type ExtractSelectable<E> = {- [K in keyof ExtractFields<E, DataColumnValue>]: E[K]-};--export type ReadableTableRow<E> = ExtractSelectable<E> & {- [K in keyof ExtractFields<E, DataColumnValue> as `${Extract<K, string>}@OData.Community.Display.V1.FormattedValue`]?: string-};--// Helper to exclude readonly properties-export type ExcludeReadonly<T> = {- [P in keyof T as (<Q>() => Q extends { [K in P]: T[P] } ? 1 : 2) extends- (<Q>() => Q extends { -readonly [K in P]: T[P] } ? 1 : 2) ? P : never]: T[P]-};--export type WritableTableRow<E extends TableRow> = {- [K in keyof ExcludeReadonly<ExtractFields<E, DataColumnValue>>]: E[K]-}--// Query Options-export interface QueryTableOptions<E extends TableRow> {- select?: (keyof ExtractSelectable<E>)[];- pageSize?: number;- filter?: string; // ODATA $filter- orderBy?: string; // ODATA $orderby-}--export interface RetrieveRowOptions<E extends TableRow> {- id: string;- select?: (keyof ExtractSelectable<E>)[];-}--// Registrations-export interface BaseTableRegistrations {- [tableName: string]: TableRow;-}+// CORRECT — truncates long URLs without bleeding into the next column+<TableCellLayout style={{ overflow: "hidden", minWidth: 0 }}>+ <a+ href={normalizedUrl}+ title={url} // full value visible on hover+ style={{+ display: "block",+ overflow: "hidden",+ textOverflow: "ellipsis",+ whiteSpace: "nowrap",+ }}+ >+ {url}+ </a>+</TableCellLayout>+```-export interface BaseEnumRegistrations {- [enumName: string]: number;-}+----export interface EnumChoice<E extends EnumName<ER>, ER extends BaseEnumRegistrations> {- label: string;- value: ER[E];-}+## DataAPI Type Definitions-// Main API Interface-export interface BaseUxAgentDataApi<TR extends BaseTableRegistrations, ER extends BaseEnumRegistrations> {- createRow<T extends keyof TR>(tableName: T, row: WritableTableRow<TR[T]>): Promise<RowKeyDataColumnValue>;- updateRow<T extends keyof TR>(tableName: T, rowId: RowKeyDataColumnValue, row: WritableTableRow<TR[T]>): Promise<void>;- deleteRow<T extends keyof TR>(tableName: T, rowId: RowKeyDataColumnValue): Promise<void>;- retrieveRow<T extends keyof TR>(tableName: T, options: RetrieveRowOptions<TR[T]>): Promise<ReadableTableRow<TR[T]>>;- queryTable<T extends keyof TR>(tableName: T, query: QueryTableOptions<TR[T]>): Promise<DataTable<ReadableTableRow<TR[T]>>>;- getChoices<E extends EnumName<ER>>(enumName: E): Promise<EnumChoice<E, ER>[]>;-}-```+The canonical TypeScript types live in `./RuntimeTypes.ts`, auto-generated by+`pac model genpage generate-types` per build with the actual entity tables,+enum registrations, and a fully-instantiated `GeneratedComponentProps`. The+page-builder reads that file in Step 2. **Do not duplicate the types here**+— anything we'd write would be stale relative to the generated source.++What you can rely on from RuntimeTypes:+- `TableRow`, `ReadableTableRow<E>`, `WritableTableRow<E>` — table row shapes+- `DataColumnValue`, `RowKeyDataColumnValue` — primitive value types+- `QueryTableOptions<E>`, `RetrieveRowOptions<E>` — query parameter shapes+- `TableRegistrations`, `EnumRegistrations` — env-specific table/enum maps+- `GeneratedComponentProps` — the top-level props (includes `dataApi`, `pageInput`)+- `BaseUxAgentDataApi<TR, ER>` — the dataApi interface with `createRow`,+ `updateRow`, `deleteRow`, `retrieveRow`, `queryTable`, `getChoices`---## DataAPI Usage Examples```typescript-// User-provided type definitions example (when provided):-const enum Table1Status { Active = 0, Dormant = 1 }--type Table1 = TableRow<{- readonly id: RowKeyDataColumnValue;- name: string;- phoneNumber?: string;- status?: Table1Status;-}>--interface TableRegistrations extends BaseTableRegistrations {- "table1": Table1; // Use logical name as key-}--interface EnumRegistrations extends BaseEnumRegistrations {- "table1-status": Table1Status;-}--declare const dataApi: BaseUxAgentDataApi<TableRegistrations, EnumRegistrations>;--// Query with pagination+// Queryconst result = await dataApi.queryTable("table1", {select: ["name", "status"],filter: `contains(name,'test')`,orderBy: `name asc`,- pageSize: 50+ pageSize: 50,});+// result.hasMoreRows + result.loadMoreRows() for pagination++// IMPORTANT: queryTable returns DataTable<T> = { rows: T[], hasMoreRows: boolean }+// Access the array via result.rows — it is NOT a raw array+const records = result.rows;// Load more pagesif (result.hasMoreRows && result.loadMoreRows) {const nextPage = await result.loadMoreRows();+ const moreRecords = nextPage.rows;}-// Create-await dataApi.createRow("table1", {- name: "New Record",- status: Table1Status.Active-});--// Update-await dataApi.updateRow("table1", "record-id", {- name: "Updated"-});--// Retrieve-const row = await dataApi.retrieveRow("table1", {- id: "record-id",- select: ["name", "status"]-});+// Create / Update / Retrieve+const id = await dataApi.createRow("table1", { name: "New", status: 0 });+await dataApi.updateRow("table1", id, { name: "Updated" });+const row = await dataApi.retrieveRow("table1", { id, select: ["name", "status"] });-// Access formatted values (for enums, lookups, dates, etc.)-const formattedStatus = row["[email protected]"];+// Formatted values (enums, lookups, dates) — use @OData.Community.Display.V1.FormattedValue:+const statusLabel = row["[email protected]"];+const contactName = row["_primarycontactid_value@OData.Community.Display.V1.FormattedValue"];-// Lookup fields: raw value is a GUID — use formatted value for display name-const contactGuid = row._primarycontactid_value; // GUID — don't display this-const contactName = row["_primarycontactid_value@OData.Community.Display.V1.FormattedValue"]; // "John Smith" — display this--// Get enum choices+// Enum choicesconst choices = await dataApi.getChoices("table1-status");```+For lookups: `_<field>_value` is the GUID — never display it. Always read the+paired `[email protected]` for the label.+---## Common Errors+**Scope:** generation-time anti-patterns the page-builder must not emit.+For deployment / runtime / env issues (PAC CLI failures, auth, browser+verification, etc.), see `references/troubleshooting.md`.+### 1. Undefined IdentifierEvery identifier must be defined or imported. Don't assume implicit availability.```typescriptdiff --git a/plugins/model-apps/references/troubleshooting.md b/plugins/model-apps/references/troubleshooting.mdindex 9742be1f2..cfc1b50d3 100644--- a/plugins/model-apps/references/troubleshooting.md+++ b/plugins/model-apps/references/troubleshooting.md@@ -1,6 +1,8 @@# Troubleshooting-Common issues when building and deploying generative pages.+Deployment, runtime, and environment issues. For generation-time anti-patterns+(things the page-builder must not emit), see `references/rules.md` →+"Common Errors".---@@ -18,7 +20,7 @@ This plugin creates **pages within existing** model-driven apps — it cannot cr- Install: `dotnet tool install --global Microsoft.PowerApps.CLI.Tool`- Update: `dotnet tool update --global Microsoft.PowerApps.CLI.Tool`- Or download from the [Microsoft Power Platform CLI](https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction) page-- Verify: `pac help` (version must be >= 2.3.1)+- Verify: `pac help` (version must be >= 2.7.0)---diff --git a/plugins/model-apps/references/verified-icons.txt b/plugins/model-apps/references/verified-icons.txtnew file mode 100644index 000000000..28b649108--- /dev/null+++ b/plugins/model-apps/references/verified-icons.txt@@ -0,0 +1,5030 @@+# Fluent UI V9 verified icon names+# Generated from @fluentui/react-icons@^2.0.292+# Regenerate with: node scripts/regenerate-verified-icons.js+# Total: 5026 unsized icons (Regular + Filled variants only)+AccessTimeFilled+AccessTimeRegular+AccessibilityCheckmarkFilled+AccessibilityCheckmarkRegular+AccessibilityErrorFilled+AccessibilityErrorRegular+AccessibilityFilled+AccessibilityMoreFilled+AccessibilityMoreRegular+AccessibilityQuestionMarkFilled+AccessibilityQuestionMarkRegular+AccessibilityRegular+AddCircleFilled+AddCircleRegular+AddFilled+AddRegular+AddSquareFilled+AddSquareMultipleFilled+AddSquareMultipleRegular+AddSquareRegular+AddSubtractCircleFilled+AddSubtractCircleRegular+AgentsFilled+AgentsRegular+AirplaneFilled+AirplaneLandingFilled+AirplaneLandingRegular+AirplaneRegular+AirplaneTakeOffFilled+AirplaneTakeOffRegular+AlbumAddFilled+AlbumAddRegular+AlbumFilled+AlbumRegular+AlertBadgeFilled+AlertBadgeRegular+AlertFilled+AlertOffFilled+AlertOffRegular+AlertOnFilled+AlertOnRegular+AlertRegular+AlertSnoozeFilled+AlertSnoozeRegular+AlertUrgentFilled+AlertUrgentRegular+AlignBottomFilled+AlignBottomRegular+AlignCenterHorizontalFilled+AlignCenterHorizontalRegular+AlignCenterVerticalFilled+AlignCenterVerticalRegular+AlignEndHorizontalFilled+AlignEndHorizontalRegular+AlignEndVerticalFilled+AlignEndVerticalRegular+AlignLeftFilled+AlignLeftRegular+AlignRightFilled+AlignRightRegular+AlignSpaceAroundHorizontalFilled+AlignSpaceAroundHorizontalRegular+AlignSpaceAroundVerticalFilled+AlignSpaceAroundVerticalRegular+AlignSpaceBetweenHorizontalFilled+AlignSpaceBetweenHorizontalRegular+AlignSpaceBetweenVerticalFilled+AlignSpaceBetweenVerticalRegular+AlignSpaceEvenlyHorizontalFilled+AlignSpaceEvenlyHorizontalRegular+AlignSpaceEvenlyVerticalFilled+AlignSpaceEvenlyVerticalRegular+AlignSpaceFitVerticalFilled+AlignSpaceFitVerticalRegular+AlignStartHorizontalFilled+AlignStartHorizontalRegular+AlignStartVerticalFilled+AlignStartVerticalRegular+AlignStraightenFilled+AlignStraightenRegular+AlignStretchHorizontalFilled+AlignStretchHorizontalRegular+AlignStretchVerticalFilled+AlignStretchVerticalRegular+AlignTopFilled+AlignTopRegular+AnimalCatFilled+AnimalCatRegular+AnimalDogFilled+AnimalDogRegular+AnimalPawPrintFilled+AnimalPawPrintRegular+AnimalRabbitFilled+AnimalRabbitOffFilled+AnimalRabbitOffRegular+AnimalRabbitRegular+AnimalTurtleFilled+AnimalTurtleRegular+AppFolderFilled+AppFolderRegular+AppGenericFilled+AppGenericRegular+AppRecentFilled+AppRecentRegular+AppTitleFilled+AppTitleRegular+ApprovalsAppFilled+ApprovalsAppRegular+AppsAddInFilled+AppsAddInOffFilled+AppsAddInOffRegular+AppsAddInRegular+AppsFilled+AppsListDetailFilled+AppsListDetailRegular+AppsListFilled+AppsListRegular+AppsRegular+AppsSettingsFilled+AppsSettingsRegular+AppsShieldFilled+AppsShieldRegular+ArchiveArrowBackFilled+ArchiveArrowBackRegular+ArchiveFilled+ArchiveMultipleFilled+ArchiveMultipleRegular+ArchiveRegular+ArchiveSettingsFilled+ArchiveSettingsRegular+ArrowAutofitContentFilled+ArrowAutofitContentRegular+ArrowAutofitDownFilled+ArrowAutofitDownRegular+ArrowAutofitHeightDottedFilled+ArrowAutofitHeightDottedRegular+ArrowAutofitHeightFilled+ArrowAutofitHeightInFilled+ArrowAutofitHeightInRegular+ArrowAutofitHeightRegular+ArrowAutofitUpFilled+ArrowAutofitUpRegular+ArrowAutofitWidthDottedFilled+ArrowAutofitWidthDottedRegular+ArrowAutofitWidthFilled+ArrowAutofitWidthRegular+ArrowBetweenDownFilled+ArrowBetweenDownRegular+ArrowBetweenUpFilled+ArrowBetweenUpRegular+ArrowBidirectionalLeftRightFilled+ArrowBidirectionalLeftRightRegular+ArrowBidirectionalUpDownFilled+ArrowBidirectionalUpDownRegular+ArrowBounceFilled+ArrowBounceRegular+ArrowCircleDownDoubleFilled+ArrowCircleDownDoubleRegular+ArrowCircleDownFilled+ArrowCircleDownRegular+ArrowCircleDownRightFilled+ArrowCircleDownRightRegular+ArrowCircleDownSplitFilled+ArrowCircleDownSplitRegular+ArrowCircleDownUpFilled+ArrowCircleDownUpRegular+ArrowCircleLeftFilled+ArrowCircleLeftRegular+ArrowCircleRightFilled+ArrowCircleRightRegular+ArrowCircleUpFilled+ArrowCircleUpLeftFilled+ArrowCircleUpLeftRegular+ArrowCircleUpRegular+ArrowCircleUpRightFilled+ArrowCircleUpRightRegular+ArrowCircleUpSparkleFilled+ArrowCircleUpSparkleRegular+ArrowClockwiseDashesFilled+ArrowClockwiseDashesRegular+ArrowClockwiseDashesSettingsFilled+ArrowClockwiseDashesSettingsRegular+ArrowClockwiseFilled+ArrowClockwiseRegular+ArrowCollapseAllFilled+ArrowCollapseAllRegular+ArrowCounterclockwiseDashesFilled+ArrowCounterclockwiseDashesRegular+ArrowCounterclockwiseFilled+ArrowCounterclockwiseInfoFilled+ArrowCounterclockwiseInfoRegular+ArrowCounterclockwiseRegular+ArrowCurveDownLeftFilled+ArrowCurveDownLeftRegular+ArrowCurveDownRightFilled+ArrowCurveDownRightRegular+ArrowCurveUpLeftFilled+ArrowCurveUpLeftRegular+ArrowCurveUpRightFilled+ArrowCurveUpRightRegular+ArrowDownExclamationFilled+ArrowDownExclamationRegular+ArrowDownFilled+ArrowDownLeftFilled+ArrowDownLeftRegular+ArrowDownRegular+ArrowDownRightFilled+ArrowDownRightRegular+ArrowDownloadFilled+ArrowDownloadOffFilled+ArrowDownloadOffRegular+ArrowDownloadRegular+ArrowEjectFilled+ArrowEjectRegular+ArrowEnterFilled+ArrowEnterLeftFilled+ArrowEnterLeftRegular+ArrowEnterRegular+ArrowEnterUpFilled+ArrowEnterUpRegular+ArrowExitFilled+ArrowExitRegular+ArrowExpandAllFilled+ArrowExpandAllRegular+ArrowExpandFilled+ArrowExpandRegular+ArrowExportFilled+ArrowExportLtrFilled+ArrowExportLtrRegular+ArrowExportRegular+ArrowExportRtlFilled+ArrowExportRtlRegular+ArrowExportUpFilled+ArrowExportUpRegular+ArrowFitFilled+ArrowFitInFilled+ArrowFitInRegular+ArrowFitRegular+ArrowFlowDiagonalUpRightFilled+ArrowFlowDiagonalUpRightRegular+ArrowFlowUpRightFilled+ArrowFlowUpRightRectangleMultipleFilled+ArrowFlowUpRightRectangleMultipleRegular+ArrowFlowUpRightRegular+ArrowForwardDownLightningFilled+ArrowForwardDownLightningRegular+ArrowForwardDownPersonFilled+ArrowForwardDownPersonRegular+ArrowForwardFilled+ArrowForwardRegular+ArrowHookDownLeftFilled+ArrowHookDownLeftRegular+ArrowHookDownRightFilled+ArrowHookDownRightRegular+ArrowHookUpLeftFilled+ArrowHookUpLeftRegular+ArrowHookUpRightFilled+ArrowHookUpRightRegular+ArrowImportFilled+ArrowImportRegular+ArrowJoinFilled+ArrowJoinRegular+ArrowLeftFilled+ArrowLeftRegular+ArrowMaximizeFilled+ArrowMaximizeRegular+ArrowMaximizeVerticalFilled+ArrowMaximizeVerticalRegular+ArrowMinimizeFilled+ArrowMinimizeRegular+ArrowMinimizeVerticalFilled+ArrowMinimizeVerticalRegular+ArrowMoveFilled+ArrowMoveInwardFilled+ArrowMoveInwardRegular+ArrowMoveRegular+ArrowNextFilled+ArrowNextRegular+ArrowOutlineDownLeftFilled+ArrowOutlineDownLeftRegular+ArrowOutlineUpRightFilled+ArrowOutlineUpRightRegular+ArrowParagraphFilled+ArrowParagraphRegular+ArrowPreviousFilled+ArrowPreviousRegular+ArrowRedoFilled+ArrowRedoRegular+ArrowRepeatAllFilled+ArrowRepeatAllOffFilled+ArrowRepeatAllOffRegular+ArrowRepeatAllRegular+ArrowReplyAllFilled+ArrowReplyAllRegular+ArrowReplyDownFilled+ArrowReplyDownRegular+ArrowReplyFilled+ArrowReplyRegular+ArrowResetFilled+ArrowResetRegular+ArrowRightFilled+ArrowRightRegular+ArrowRotateClockwiseFilled+ArrowRotateClockwiseRegular+ArrowRotateCounterclockwiseFilled+ArrowRotateCounterclockwiseRegular+ArrowRoutingFilled+ArrowRoutingRectangleMultipleFilled+ArrowRoutingRectangleMultipleRegular+ArrowRoutingRegular+ArrowShuffleFilled+ArrowShuffleOffFilled+ArrowShuffleOffRegular+ArrowShuffleRegular+ArrowSortDownFilled+ArrowSortDownLinesFilled+ArrowSortDownLinesRegular+ArrowSortDownRegular+ArrowSortFilled+ArrowSortRegular+ArrowSortUpFilled+ArrowSortUpLinesFilled+ArrowSortUpLinesRegular+ArrowSortUpRegular+ArrowSplitFilled+ArrowSplitRegular+ArrowSprintFilled+ArrowSprintRegular+ArrowSquareDownFilled+ArrowSquareDownRegular+ArrowSquareUpRightFilled+ArrowSquareUpRightRegular+ArrowStepBackFilled+ArrowStepBackRegular+ArrowStepInDiagonalDownLeftFilled+ArrowStepInDiagonalDownLeftRegular+ArrowStepInFilled+ArrowStepInLeftFilled+ArrowStepInLeftRegular+ArrowStepInRegular+ArrowStepInRightFilled+ArrowStepInRightRegular+ArrowStepOutFilled+ArrowStepOutRegular+ArrowStepOverFilled+ArrowStepOverRegular+ArrowSwapFilled+ArrowSwapRegular+ArrowSyncCheckmarkFilled+ArrowSyncCheckmarkRegular+ArrowSyncCircleFilled+ArrowSyncCircleRegular+ArrowSyncDismissFilled+ArrowSyncDismissRegular+ArrowSyncFilled+ArrowSyncOffFilled+ArrowSyncOffRegular+ArrowSyncRegular+ArrowTrendingCheckmarkFilled+ArrowTrendingCheckmarkRegular+ArrowTrendingDownFilled+ArrowTrendingDownRegular+ArrowTrendingFilled+ArrowTrendingLinesFilled+ArrowTrendingLinesRegular+ArrowTrendingRegular+ArrowTrendingSettingsFilled+ArrowTrendingSettingsRegular+ArrowTrendingSparkleFilled+ArrowTrendingSparkleRegular+ArrowTrendingTextFilled+ArrowTrendingTextRegular+ArrowTrendingWrenchFilled+ArrowTrendingWrenchRegular+ArrowTurnBidirectionalDownRightFilled+ArrowTurnBidirectionalDownRightRegular+ArrowTurnDownLeftFilled+ArrowTurnDownLeftRegular+ArrowTurnDownRightFilled+ArrowTurnDownRightRegular+ArrowTurnDownUpFilled+ArrowTurnDownUpRegular+ArrowTurnLeftDownFilled+ArrowTurnLeftDownRegular+ArrowTurnLeftRightFilled+ArrowTurnLeftRightRegular+ArrowTurnLeftUpFilled+ArrowTurnLeftUpRegular+ArrowTurnRightDownFilled+ArrowTurnRightDownRegular+ArrowTurnRightFilled+ArrowTurnRightLeftFilled+ArrowTurnRightLeftRegular+ArrowTurnRightRegular+ArrowTurnRightUpFilled+ArrowTurnRightUpRegular+ArrowTurnUpDownFilled+ArrowTurnUpDownRegular+ArrowTurnUpLeftFilled+ArrowTurnUpLeftRegular+ArrowUndoFilled+ArrowUndoRegular+ArrowUpExclamationFilled+ArrowUpExclamationRegular+ArrowUpFilled+ArrowUpLeftFilled+ArrowUpLeftRegular+ArrowUpRegular+ArrowUpRightDashesFilled+ArrowUpRightDashesRegular+ArrowUpRightFilled+ArrowUpRightRegular+ArrowUploadFilled+ArrowUploadRegular+ArrowWrapFilled+ArrowWrapOffFilled+ArrowWrapOffRegular+ArrowWrapRegular+ArrowWrapUpToDownFilled+ArrowWrapUpToDownRegular+ArrowsBidirectionalFilled+ArrowsBidirectionalRegular+AttachArrowRightFilled+AttachArrowRightRegular+AttachFilled+AttachRegular+AttachTextFilled+AttachTextRegular+AutoFitHeightFilled+AutoFitHeightRegular+AutoFitWidthFilled+AutoFitWidthRegular+AutocorrectFilled+AutocorrectRegular+AutosumFilled+AutosumRegular+BackpackAddFilled+BackpackAddRegular+BackpackFilled+BackpackRegular+BackspaceFilled+BackspaceRegular+BadgeFilled+BadgeRegular+BalloonFilled+BalloonRegular+BarcodeScannerFilled+BarcodeScannerRegular+BatteryChargeFilled+BatteryChargeRegular+BatteryCheckmarkFilled+BatteryCheckmarkRegular+BatterySaverFilled+BatterySaverRegular+BatteryWarningFilled+BatteryWarningRegular+BeachFilled+BeachRegular+BeakerAddFilled+BeakerAddRegular+BeakerDismissFilled+BeakerDismissRegular+BeakerEditFilled+BeakerEditRegular+BeakerFilled+BeakerOffFilled+BeakerOffRegular+BeakerRegular+BeakerSettingsFilled+BeakerSettingsRegular+BedFilled+BedRegular+BenchFilled+BenchRegular+BezierCurveSquareFilled+BezierCurveSquareRegular+BinFullFilled+BinFullRegular+BinRecycleFilled+BinRecycleFullFilled+BinRecycleFullRegular+BinRecycleRegular+BinderTriangleFilled+BinderTriangleRegular+BluetoothConnectedFilled+BluetoothConnectedRegular+BluetoothDisabledFilled+BluetoothDisabledRegular+BluetoothFilled+BluetoothRegular+BluetoothSearchingFilled+BluetoothSearchingRegular+BlurFilled+BlurRegular+BoardFilled+BoardGamesFilled+BoardGamesRegular+BoardHeartFilled+BoardHeartRegular+BoardRegular+BoardSplitFilled+BoardSplitRegular+BookAddFilled+BookAddRegular+BookArrowClockwiseFilled+BookArrowClockwiseRegular+BookClockFilled+BookClockRegular+BookCoinsFilled+BookCoinsRegular+BookCompassFilled+BookCompassRegular+BookContactsFilled+BookContactsRegular+BookDatabaseFilled+BookDatabaseRegular+BookDefaultFilled+BookDismissFilled+BookDismissRegular+BookExclamationMarkFilled+BookExclamationMarkRegular+BookFilled+BookGlobeFilled+BookGlobeRegular+BookInformationFilled+BookInformationRegular+BookLetterFilled+BookLetterRegular+BookNumberFilled+BookNumberRegular+BookOpenFilled+BookOpenGlobeFilled+BookOpenGlobeRegular+BookOpenMicrophoneFilled+BookOpenMicrophoneRegular+BookOpenRegular+BookPulseFilled+BookPulseRegular+BookQuestionMarkFilled+BookQuestionMarkRegular+BookQuestionMarkRtlFilled+BookQuestionMarkRtlRegular+BookRegular+BookSearchFilled+BookSearchRegular+BookStarFilled+BookStarRegular+BookTemplateFilled+BookTemplateRegular+BookThetaFilled+BookThetaRegular+BookToolboxFilled+BookToolboxRegular+BookmarkAddFilled+BookmarkAddRegular+BookmarkFilled+BookmarkMultipleFilled+BookmarkMultipleRegular+BookmarkOffFilled+BookmarkOffRegular+BookmarkRegular+BookmarkSearchFilled+BookmarkSearchRegular+BorderAllFilled+BorderAllRegular+BorderBottomDoubleFilled+BorderBottomDoubleRegular+BorderBottomFilled+BorderBottomRegular+BorderBottomThickFilled+BorderBottomThickRegular+BorderInsideFilled+BorderInsideRegular+BorderLeftFilled+BorderLeftRegular+BorderLeftRightFilled+BorderLeftRightRegular+BorderNoneFilled+BorderNoneRegular+BorderOutsideFilled+BorderOutsideRegular+BorderOutsideThickFilled+BorderOutsideThickRegular+BorderRightFilled+BorderRightRegular+BorderTopBottomDoubleFilled+BorderTopBottomDoubleRegular+BorderTopBottomFilled+BorderTopBottomRegular+BorderTopBottomThickFilled+BorderTopBottomThickRegular+BorderTopFilled+BorderTopRegular+BotAddFilled+BotAddRegular+BotFilled+BotRegular+BotSparkleFilled+BotSparkleRegular+BowTieFilled+BowTieRegular+BowlChopsticksFilled+BowlChopsticksRegular+BowlSaladFilled+BowlSaladRegular+BoxArrowLeftFilled+BoxArrowLeftRegular+BoxArrowUpFilled+BoxArrowUpRegular+BoxCheckmarkFilled+BoxCheckmarkRegular+BoxDismissFilled+BoxDismissRegular+BoxEditFilled+BoxEditRegular+BoxFilled+BoxMultipleArrowLeftFilled+BoxMultipleArrowLeftRegular+BoxMultipleArrowRightFilled+BoxMultipleArrowRightRegular+BoxMultipleCheckmarkFilled+BoxMultipleCheckmarkRegular+BoxMultipleFilled+BoxMultipleRegular+BoxMultipleSearchFilled+BoxMultipleSearchRegular+BoxRegular+BoxSearchFilled+BoxSearchRegular+BoxToolboxFilled+BoxToolboxRegular+BracesFilled+BracesRegular+BracesVariableFilled+BracesVariableRegular+BrainCircuitFilled+BrainCircuitRegular+BrainFilled+BrainRegular+BrainSparkleFilled+BrainSparkleRegular+BranchCompareFilled+BranchCompareRegular+BranchFilled+BranchForkFilled+BranchForkHintFilled+BranchForkHintRegular+BranchForkLinkFilled+BranchForkLinkRegular+BranchForkRegular+BranchRegular+BranchRequestClosedFilled+BranchRequestClosedRegular+BranchRequestDraftFilled+BranchRequestDraftRegular+BranchRequestFilled+BranchRequestRegular+BreakoutRoomFilled+BreakoutRoomRegular+BriefcaseFilled+BriefcaseMedicalFilled+BriefcaseMedicalRegular+BriefcaseOffFilled+BriefcaseOffRegular+BriefcaseRegular+BriefcaseSearchFilled+BriefcaseSearchRegular+BrightnessHighFilled+BrightnessHighRegular+BrightnessLowFilled+BrightnessLowRegular+BroadActivityFeedFilled+BroadActivityFeedRegular+BroomFilled+BroomRegular+BubbleMultipleFilled+BubbleMultipleRegular+BugArrowCounterclockwiseFilled+BugArrowCounterclockwiseRegular+BugFilled+BugProhibitedFilled+BugProhibitedRegular+BugRegular+BuildingBankFilled+BuildingBankLinkFilled+BuildingBankLinkRegular+BuildingBankRegular+BuildingBankToolboxFilled+BuildingBankToolboxRegular+BuildingCheckmarkFilled+BuildingCheckmarkRegular+BuildingDesktopFilled+BuildingDesktopRegular+BuildingFactoryFilled+BuildingFactoryRegular+BuildingFilled+BuildingGovernmentFilled+BuildingGovernmentRegular+BuildingGovernmentSearchFilled+BuildingGovernmentSearchRegular+BuildingHomeFilled+BuildingHomeRegular+BuildingLighthouseFilled+BuildingLighthouseRegular+BuildingMosqueFilled+BuildingMosqueRegular+BuildingMultipleFilled+BuildingMultipleRegular+BuildingPeopleFilled+BuildingPeopleRegular+BuildingRegular+BuildingRetailFilled+BuildingRetailMoneyFilled+BuildingRetailMoneyRegular+BuildingRetailMoreFilled+BuildingRetailMoreRegular+BuildingRetailRegular+BuildingRetailShieldFilled+BuildingRetailShieldRegular+BuildingRetailToolboxFilled+BuildingRetailToolboxRegular+BuildingShopFilled+BuildingShopRegular+BuildingSkyscraperFilled+BuildingSkyscraperRegular+BuildingSwapFilled+BuildingSwapRegular+BuildingTownhouseFilled+BuildingTownhouseRegular+ButtonFilled+ButtonRegular+CalculatorArrowClockwiseFilled+CalculatorArrowClockwiseRegular+CalculatorFilled+CalculatorMultipleFilled+CalculatorMultipleRegular+CalculatorRegular+Calendar3DayFilled+Calendar3DayRegular+CalendarAddFilled+CalendarAddRegular+CalendarAgendaFilled+CalendarAgendaRegular+CalendarArrowCounterclockwiseFilled+CalendarArrowCounterclockwiseRegular+CalendarArrowDownFilled+CalendarArrowDownRegular+CalendarArrowRepeatAllFilled+CalendarArrowRepeatAllRegular+CalendarArrowRightFilled+CalendarArrowRightRegular+CalendarAssistantFilled+CalendarAssistantRegular+CalendarCancelFilled+CalendarCancelRegular+CalendarChatFilled+CalendarChatRegular+CalendarCheckmarkFilled+CalendarCheckmarkRegular+CalendarClockFilled+CalendarClockRegular+CalendarDataBarFilled+CalendarDataBarRegular+CalendarDateFilled+CalendarDateRegular+CalendarDayFilled+CalendarDayRegular+CalendarEditFilled+CalendarEditRegular+CalendarEmptyFilled+CalendarEmptyRegular+CalendarErrorFilled+CalendarErrorRegular+CalendarEyeFilled+CalendarEyeRegular+CalendarFilled+CalendarInfoFilled+CalendarInfoRegular+CalendarLockFilled+CalendarLockRegular+CalendarLtrFilled+CalendarLtrRegular+CalendarMailFilled+CalendarMailRegular+CalendarMentionFilled+CalendarMentionRegular+CalendarMonthFilled+CalendarMonthRegular+CalendarMultipleFilled+CalendarMultipleRegular+CalendarNoteFilled+CalendarNoteRegular+CalendarPatternFilled+CalendarPatternRegular+CalendarPersonFilled+CalendarPersonRegular+CalendarPhoneFilled+CalendarPhoneRegular+CalendarPlayFilled+CalendarPlayRegular+CalendarQuestionMarkFilled+CalendarQuestionMarkRegular+CalendarRecordFilled+CalendarRecordRegular+CalendarRegular+CalendarReplyFilled+CalendarReplyRegular+CalendarRtlFilled+CalendarRtlRegular+CalendarSearchFilled+CalendarSearchRegular+CalendarSettingsFilled+CalendarSettingsRegular+CalendarShieldFilled+CalendarShieldRegular+CalendarSparkleFilled+CalendarSparkleRegular+CalendarStarFilled+CalendarStarRegular+CalendarSyncFilled+CalendarSyncRegular+CalendarTemplateFilled+CalendarTemplateRegular+CalendarTodayFilled+CalendarTodayRegular+CalendarToolboxFilled+CalendarToolboxRegular+CalendarVideoFilled+CalendarVideoRegular+CalendarWeekNumbersFilled+CalendarWeekNumbersRegular+CalendarWeekStartFilled+CalendarWeekStartRegular+CalendarWorkWeekFilled+CalendarWorkWeekRegular+CallAddFilled+CallAddRegular+CallCheckmarkFilled+CallCheckmarkRegular+CallConnectingFilled+CallConnectingRegular+CallDismissFilled+CallDismissRegular+CallEndFilled+CallEndRegular+CallExclamationFilled+CallExclamationRegular+CallFilled+CallForwardFilled+CallForwardRegular+CallInboundFilled+CallInboundRegular+CallMissedFilled+CallMissedRegular+CallOutboundFilled+CallOutboundRegular+CallParkFilled+CallParkRegular+CallPauseFilled+CallPauseRegular+CallProhibitedFilled+CallProhibitedRegular+CallRectangleLandscapeFilled+CallRectangleLandscapeRegular+CallRegular+CallSquareFilled+CallSquareRegular+CallTransferFilled+CallTransferRegular+CallWarningFilled+CallWarningRegular+CalligraphyPenCheckmarkFilled+CalligraphyPenCheckmarkRegular+CalligraphyPenErrorFilled+CalligraphyPenErrorRegular+CalligraphyPenFilled+CalligraphyPenQuestionMarkFilled+CalligraphyPenQuestionMarkRegular+CalligraphyPenRegular+CameraAddFilled+CameraAddRegular+CameraArrowUpFilled+CameraArrowUpRegular+CameraDomeFilled+CameraDomeRegular+CameraEditFilled+CameraEditRegular+CameraFilled+CameraOffFilled+CameraOffRegular+CameraRegular+CameraSparklesFilled+CameraSparklesRegular+CameraSwitchFilled+CameraSwitchRegular+CardUiFilled+CardUiPortraitFlipFilled+CardUiPortraitFlipRegular+CardUiRegular+CaretDownFilled+CaretDownRegular+CaretDownRightFilled+CaretDownRightRegular+CaretLeftFilled+CaretLeftRegular+CaretRightFilled+CaretRightRegular+CaretUpFilled+CaretUpRegular+CartFilled+CartRegular+CastFilled+CastMultipleFilled+CastMultipleRegular+CastRegular+CatchUpFilled+CatchUpRegular+Cellular3GFilled+Cellular3GRegular+Cellular4GFilled+Cellular4GRegular+Cellular5GFilled+Cellular5GRegular+CellularOffFilled+CellularOffRegular+CellularWarningFilled+CellularWarningRegular+CenterHorizontalFilled+CenterHorizontalRegular+CenterVerticalFilled+CenterVerticalRegular+CertificateFilled+CertificateRegular+ChannelAddFilled+ChannelAddRegular+ChannelAlertFilled+ChannelAlertRegular+ChannelArrowLeftFilled+ChannelArrowLeftRegular+ChannelDismissFilled+ChannelDismissRegular+ChannelFilled+ChannelRegular+ChannelShareFilled+ChannelShareRegular+ChannelSubtractFilled+ChannelSubtractRegular+ChartMultipleFilled+ChartMultipleRegular+ChartPersonFilled+ChartPersonRegular+ChatAddFilled+ChatAddRegular+ChatArrowBackDownFilled+ChatArrowBackDownRegular+ChatArrowBackFilled+ChatArrowBackRegular+ChatArrowDoubleBackFilled+ChatArrowDoubleBackRegular+ChatBubblesQuestionFilled+ChatBubblesQuestionRegular+ChatCursorFilled+ChatCursorRegular+ChatDismissFilled+ChatDismissRegular+ChatEmptyFilled+ChatEmptyRegular+ChatFilled+ChatHelpFilled+ChatHelpRegular+ChatHistoryFilled+ChatHistoryRegular+ChatLockFilled+ChatLockRegular+ChatMailFilled+ChatMailRegular+ChatMultipleFilled+ChatMultipleHeartFilled+ChatMultipleHeartRegular+ChatMultipleRegular+ChatOffFilled+ChatOffRegular+ChatRegular+ChatSettingsFilled+ChatSettingsRegular+ChatSparkleFilled+ChatSparkleRegular+ChatVideoFilled+ChatVideoRegular+ChatWarningFilled+ChatWarningRegular+CheckFilled+CheckRegular+CheckboxArrowRightFilled+CheckboxArrowRightRegular+CheckboxCheckedFilled+CheckboxCheckedRegular+CheckboxCheckedSyncFilled+CheckboxCheckedSyncRegular+CheckboxIndeterminateFilled+CheckboxIndeterminateRegular+CheckboxPersonFilled+CheckboxPersonRegular+CheckboxUncheckedFilled+CheckboxUncheckedRegular+CheckboxWarningFilled+CheckboxWarningRegular+CheckmarkCircleFilled+CheckmarkCircleRegular+CheckmarkCircleSquareFilled+CheckmarkCircleSquareRegular+CheckmarkCircleWarningFilled+CheckmarkCircleWarningRegular+CheckmarkFilled+CheckmarkLockFilled+CheckmarkLockRegular+CheckmarkNoteFilled+CheckmarkNoteRegular+CheckmarkRegular+CheckmarkSquareFilled+CheckmarkSquareRegular+CheckmarkStarburstFilled+CheckmarkStarburstRegular+CheckmarkUnderlineCircleFilled+CheckmarkUnderlineCircleRegular+ChessFilled+ChessRegular+ChevronCircleDownFilled+ChevronCircleDownRegular+ChevronCircleLeftFilled+ChevronCircleLeftRegular+ChevronCircleRightFilled+ChevronCircleRightRegular+ChevronCircleUpFilled+ChevronCircleUpRegular+ChevronDoubleDownFilled+ChevronDoubleDownRegular+ChevronDoubleLeftFilled+ChevronDoubleLeftRegular+ChevronDoubleRightFilled+ChevronDoubleRightRegular+ChevronDoubleUpFilled+ChevronDoubleUpRegular+ChevronDownFilled+ChevronDownRegular+ChevronDownUpFilled+ChevronDownUpRegular+ChevronLeftFilled+ChevronLeftRegular+ChevronRightFilled+ChevronRightRegular+ChevronUpDownFilled+ChevronUpDownRegular+ChevronUpFilled+ChevronUpRegular+CircleEditFilled+CircleEditRegular+CircleEraserFilled+CircleEraserRegular+CircleFilled+CircleHalfFillFilled+CircleHalfFillRegular+CircleHighlightFilled+CircleHighlightRegular+CircleHintCursorFilled+CircleHintCursorRegular+CircleHintDismissFilled+CircleHintDismissRegular+CircleHintFilled+CircleHintHalfVerticalFilled+CircleHintHalfVerticalRegular+CircleHintRegular+CircleImageFilled+CircleImageRegular+CircleLineFilled+CircleLineRegular+CircleMultipleConcentricFilled+CircleMultipleConcentricRegular+CircleMultipleHintCheckmarkFilled+CircleMultipleHintCheckmarkRegular+CircleMultipleSubtractCheckmarkFilled+CircleMultipleSubtractCheckmarkRegular+CircleOffFilled+CircleOffRegular+CircleRegular+CircleShadowFilled+CircleShadowRegular+CircleSmallFilled+CircleSmallRegular+CircleSparkleFilled+CircleSparkleRegular+CityFilled+CityRegular+ClassFilled+ClassRegular+ClassificationFilled+ClassificationRegular+ClearFormattingFilled+ClearFormattingRegular+Clipboard3DayFilled+Clipboard3DayRegular+ClipboardArrowRightFilled+ClipboardArrowRightRegular+ClipboardBrushFilled+ClipboardBrushRegular+ClipboardBulletListFilled+ClipboardBulletListLtrFilled+ClipboardBulletListLtrRegular+ClipboardBulletListRegular+ClipboardBulletListRtlFilled+ClipboardBulletListRtlRegular+ClipboardCheckmarkFilled+ClipboardCheckmarkRegular+ClipboardClockFilled+ClipboardClockRegular+ClipboardCodeFilled+ClipboardCodeRegular+ClipboardDataBarFilled+ClipboardDataBarRegular+ClipboardDayFilled+ClipboardDayRegular+ClipboardEditFilled+ClipboardEditRegular+ClipboardErrorFilled+ClipboardErrorRegular+ClipboardFilled+ClipboardHeartFilled+ClipboardHeartRegular+ClipboardImageFilled+ClipboardImageRegular+ClipboardLetterFilled+ClipboardLetterRegular+ClipboardLinkFilled+ClipboardLinkRegular+ClipboardMathFormulaFilled+ClipboardMathFormulaRegular+ClipboardMonthFilled+ClipboardMonthRegular+ClipboardMoreFilled+ClipboardMoreRegular+ClipboardNoteFilled+ClipboardNoteRegular+ClipboardPasteFilled+ClipboardPasteRegular+ClipboardPulseFilled+ClipboardPulseRegular+ClipboardRegular+ClipboardSearchFilled+ClipboardSearchRegular+ClipboardSettingsFilled+ClipboardSettingsRegular+ClipboardTaskAddFilled+ClipboardTaskAddRegular+ClipboardTaskFilled+ClipboardTaskListLtrFilled+ClipboardTaskListLtrRegular+ClipboardTaskListRtlFilled+ClipboardTaskListRtlRegular+ClipboardTaskRegular+ClipboardTextEditFilled+ClipboardTextEditRegular+ClipboardTextLtrFilled+ClipboardTextLtrRegular+ClipboardTextRtlFilled+ClipboardTextRtlRegular+ClockAlarmFilled+ClockAlarmRegular+ClockArrowDownloadFilled+ClockArrowDownloadRegular+ClockBillFilled+ClockBillRegular+ClockDismissFilled+ClockDismissRegular+ClockFilled+ClockLockFilled+ClockLockRegular+ClockPauseFilled+ClockPauseRegular+ClockRegular+ClockSparkleFilled+ClockSparkleRegular+ClockToolboxFilled+ClockToolboxRegular+ClosedCaptionFilled+ClosedCaptionOffFilled+ClosedCaptionOffRegular+ClosedCaptionRegular+ClothesHangerFilled+ClothesHangerRegular+CloudAddFilled+CloudAddRegular+CloudArchiveFilled+CloudArchiveRegular+CloudArrowDownFilled+CloudArrowDownRegular+CloudArrowRightFilled+CloudArrowRightRegular+CloudArrowUpFilled+CloudArrowUpRegular+CloudBeakerFilled+CloudBeakerRegular+CloudBidirectionalFilled+CloudBidirectionalRegular+CloudCheckmarkFilled+CloudCheckmarkRegular+CloudCubeFilled+CloudCubeRegular+CloudDatabaseFilled+CloudDatabaseRegular+CloudDesktopFilled+CloudDesktopRegular+CloudDismissFilled+CloudDismissRegular+CloudEditFilled+CloudEditRegular+CloudErrorFilled+CloudErrorRegular+CloudFilled+CloudFlowFilled+CloudFlowRegular+CloudLinkFilled+CloudLinkRegular+CloudOffFilled+CloudOffRegular+CloudRegular+CloudSwapFilled+CloudSwapRegular+CloudSyncFilled+CloudSyncRegular+CloudWordsFilled+CloudWordsRegular+CloverFilled+CloverRegular+CodeBlockFilled+CodeBlockRegular+CodeCircleFilled+CodeCircleRegular+CodeFilled+CodeRegular+CodeTextEditFilled+CodeTextEditRegular+CodeTextFilled+CodeTextRegular+CoinMultipleFilled+CoinMultipleRegular+CoinStackFilled+CoinStackRegular+CollectionsAddFilled+CollectionsAddRegular+CollectionsEmptyFilled+CollectionsEmptyRegular+CollectionsFilled+CollectionsRegular+ColorBackgroundAccentRegular+ColorBackgroundFilled+ColorBackgroundRegular+ColorFillAccentRegular+ColorFillFilled+ColorFillRegular+ColorFilled+ColorLineAccentRegular+ColorLineFilled+ColorLineRegular+ColorRegular+ColumnArrowRightFilled+ColumnArrowRightRegular+ColumnDoubleCompareFilled+ColumnDoubleCompareRegular+ColumnEditFilled+ColumnEditRegular+ColumnFilled+ColumnRegular+ColumnSingleCompareFilled+ColumnSingleCompareRegular+ColumnTripleEditFilled+ColumnTripleEditRegular+ColumnTripleFilled+ColumnTripleRegular+CommaFilled+CommaRegular+CommentAddFilled+CommentAddRegular+CommentArrowLeftFilled+CommentArrowLeftRegular+CommentArrowRightFilled+CommentArrowRightRegular+CommentBadgeFilled+CommentBadgeRegular+CommentCheckmarkFilled+CommentCheckmarkRegular+CommentDismissFilled+CommentDismissRegular+CommentEditFilled+CommentEditRegular+CommentErrorFilled+CommentErrorRegular+CommentFilled+CommentLightningFilled+CommentLightningRegular+CommentLinkFilled+CommentLinkRegular+CommentMentionFilled+CommentMentionRegular+CommentMultipleCheckmarkFilled+CommentMultipleCheckmarkRegular+CommentMultipleFilled+CommentMultipleLinkFilled+CommentMultipleLinkRegular+CommentMultipleMentionFilled+CommentMultipleMentionRegular+CommentMultipleRegular+CommentNoteFilled+CommentNoteRegular+CommentOffFilled+CommentOffRegular+CommentQuoteFilled+CommentQuoteRegular+CommentRegular+CommentTextFilled+CommentTextRegular+CommunicationFilled+CommunicationPersonFilled+CommunicationPersonRegular+CommunicationRegular+CommunicationShieldFilled+CommunicationShieldRegular+CompassNorthwestFilled+CompassNorthwestRegular+ComposeFilled+ComposeRegular+ConferenceRoomFilled+ConferenceRoomRegular+ConnectedFilled+ConnectedRegular+ConnectorFilled+ConnectorRegular+ContactCardFilled+ContactCardGroupFilled+ContactCardGroupRegular+ContactCardLinkFilled+ContactCardLinkRegular+ContactCardRegular+ContactCardRibbonFilled+ContactCardRibbonRegular+ContentSettingsFilled+ContentSettingsRegular+ContentViewFilled+ContentViewGalleryFilled+ContentViewGalleryLightningFilled+ContentViewGalleryLightningRegular+ContentViewGalleryRegular+ContentViewRegular+ContractDownLeftFilled+ContractDownLeftRegular+ContractUpRightFilled+ContractUpRightRegular+ControlButtonFilled+ControlButtonRegular+ConvertRangeFilled+ConvertRangeRegular+CookiesFilled+CookiesRegular+CopyAddFilled+CopyAddRegular+CopyArrowRightFilled+CopyArrowRightRegular+CopyFilled+CopyRegular+CopySelectFilled+CopySelectRegular+CouchFilled+CouchRegular+CreditCardClockFilled+CreditCardClockRegular+CreditCardPersonFilled+CreditCardPersonRegular+CreditCardToolboxFilled+CreditCardToolboxRegular+CropArrowRotateFilled+CropArrowRotateRegular+CropFilled+CropInterimFilled+CropInterimOffFilled+CropInterimOffRegular+CropInterimRegular+CropRegular+CrownFilled+CrownRegular+CrownSubtractFilled+CrownSubtractRegular+CubeAddFilled+CubeAddRegular+CubeArrowCurveDownFilled+CubeArrowCurveDownRegular+CubeFilled+CubeLinkFilled+CubeLinkRegular+CubeMultipleFilled+CubeMultipleRegular+CubeQuickFilled+CubeQuickRegular+CubeRegular+CubeRotateFilled+CubeRotateRegular+CubeSyncFilled+CubeSyncRegular+CubeTreeFilled+CubeTreeRegular+CurrencyDollarEuroFilled+CurrencyDollarEuroRegular+CurrencyDollarRupeeFilled+CurrencyDollarRupeeRegular+CursorClickFilled+CursorClickRegular+CursorFilled+CursorHoverFilled+CursorHoverOffFilled+CursorHoverOffRegular+CursorHoverRegular+CursorProhibitedFilled+CursorProhibitedRegular+CursorRegular+CutFilled+CutRegular+DarkThemeFilled+DarkThemeRegular+DataAreaFilled+DataAreaRegular+DataBarHorizontalFilled+DataBarHorizontalRegular+DataBarVerticalAddFilled+DataBarVerticalAddRegular+DataBarVerticalArrowDownFilled+DataBarVerticalArrowDownRegular+DataBarVerticalAscendingFilled+DataBarVerticalAscendingRegular+DataBarVerticalFilled+DataBarVerticalRegular+DataBarVerticalStarFilled+DataBarVerticalStarRegular+DataFunnelFilled+DataFunnelRegular+DataHistogramFilled+DataHistogramRegular+DataLineFilled+DataLineRegular+DataPieFilled+DataPieRegular+DataScatterFilled+DataScatterRegular+DataSunburstFilled+DataSunburstRegular+DataTreemapFilled+DataTreemapRegular+DataTrendingFilled+DataTrendingRegular+DataUsageCheckmarkFilled+DataUsageCheckmarkRegular+DataUsageEditFilled+DataUsageEditRegular+DataUsageFilled+DataUsageRegular+DataUsageSettingsFilled+DataUsageSettingsRegular+DataUsageSparkleFilled+DataUsageSparkleRegular+DataUsageToolboxFilled+DataUsageToolboxRegular+DataWaterfallFilled+DataWaterfallRegular+DataWhiskerFilled+DataWhiskerRegular+DatabaseArrowDownFilled+DatabaseArrowDownRegular+DatabaseArrowRightFilled+DatabaseArrowRightRegular+DatabaseArrowUpFilled+DatabaseArrowUpRegular+DatabaseCheckmarkFilled+DatabaseCheckmarkRegular+DatabaseFilled+DatabaseLightningFilled+DatabaseLightningRegular+DatabaseLinkFilled+DatabaseLinkRegular+DatabaseMultipleFilled+DatabaseMultipleRegular+DatabasePersonFilled+DatabasePersonRegular+DatabasePlugConnectedFilled+DatabasePlugConnectedRegular+DatabaseRegular+DatabaseSearchFilled+DatabaseSearchRegular+DatabaseSwitchFilled+DatabaseSwitchRegular+DatabaseWarningFilled+DatabaseWarningRegular+DatabaseWindowFilled+DatabaseWindowRegular+DecimalArrowLeftFilled+DecimalArrowLeftRegular+DecimalArrowRightFilled+DecimalArrowRightRegular+DeleteArrowBackFilled+DeleteArrowBackRegular+DeleteDismissFilled+DeleteDismissRegular+DeleteFilled+DeleteLinesFilled+DeleteLinesRegular+DeleteOffFilled+DeleteOffRegular+DeleteRegular+DentistFilled+DentistRegular+DesignIdeasFilled+DesignIdeasRegular+DeskFilled+DeskMultipleFilled+DeskMultipleRegular+DeskRegular+DesktopArrowDownFilled+DesktopArrowDownOffFilled+DesktopArrowDownOffRegular+DesktopArrowDownRegular+DesktopArrowRightFilled+DesktopArrowRightRegular+DesktopCheckmarkFilled+DesktopCheckmarkRegular+DesktopCursorFilled+DesktopCursorRegular+DesktopEditFilled+DesktopEditRegular+DesktopFilled+DesktopFlowFilled+DesktopFlowRegular+DesktopKeyboardFilled+DesktopKeyboardRegular+DesktopMacFilled+DesktopMacRegular+DesktopOffFilled+DesktopOffRegular+DesktopPulseFilled+DesktopPulseRegular+DesktopRegular+DesktopSignalFilled+DesktopSignalRegular+DesktopSpeakerFilled+DesktopSpeakerOffFilled+DesktopSpeakerOffRegular+DesktopSpeakerRegular+DesktopSyncFilled+DesktopSyncRegular+DesktopToolboxFilled+DesktopToolboxRegular+DesktopTowerFilled+DesktopTowerRegular+DeveloperBoardFilled+DeveloperBoardLightningFilled+DeveloperBoardLightningRegular+DeveloperBoardLightningToolboxFilled+DeveloperBoardLightningToolboxRegular+DeveloperBoardRegular+DeveloperBoardSearchFilled+DeveloperBoardSearchRegular+DeviceEqFilled+DeviceEqRegular+DeviceMeetingRoomFilled+DeviceMeetingRoomRegular+DeviceMeetingRoomRemoteFilled+DeviceMeetingRoomRemoteRegular+DiagramFilled+DiagramRegular+DialpadFilled+DialpadOffFilled+DialpadOffRegular+DialpadQuestionMarkFilled+DialpadQuestionMarkRegular+DialpadRegular+DiamondDismissFilled+DiamondDismissRegular+DiamondFilled+DiamondRegular+DirectionsFilled+DirectionsRegular+DishwasherFilled+DishwasherRegular+DismissCircleFilled+DismissCircleRegular+DismissFilled+DismissRegular+DismissSquareFilled+DismissSquareMultipleFilled+DismissSquareMultipleRegular+DismissSquareRegular+DiversityFilled+DiversityRegular+DividerShortFilled+DividerShortRegular+DividerTallFilled+DividerTallRegular+DockFilled+DockRegular+DockRowFilled+DockRowRegular+DoctorFilled+DoctorRegular+DocumentAddFilled+DocumentAddRegular+DocumentArrowDownFilled+DocumentArrowDownRegular+DocumentArrowLeftFilled+DocumentArrowLeftRegular+DocumentArrowRightFilled+DocumentArrowRightRegular+DocumentArrowUpFilled+DocumentArrowUpRegular+DocumentBorderFilled+DocumentBorderPrintFilled+DocumentBorderPrintRegular+DocumentBorderRegular+DocumentBriefcaseFilled+DocumentBriefcaseRegular+DocumentBulletListArrowLeftFilled+DocumentBulletListArrowLeftRegular+DocumentBulletListClockFilled+DocumentBulletListClockRegular+DocumentBulletListCubeFilled+DocumentBulletListCubeRegular+DocumentBulletListFilled+DocumentBulletListMultipleFilled+DocumentBulletListMultipleRegular+DocumentBulletListOffFilled+DocumentBulletListOffRegular+DocumentBulletListRegular+DocumentCatchUpFilled+DocumentCatchUpRegular+DocumentCheckmarkFilled+DocumentCheckmarkRegular+DocumentChevronDoubleFilled+DocumentChevronDoubleRegular+DocumentCopyFilled+DocumentCopyRegular+DocumentCssFilled+DocumentCssRegular+DocumentCubeFilled+DocumentCubeRegular+DocumentDataFilled+DocumentDataLinkFilled+DocumentDataLinkRegular+DocumentDataLockFilled+DocumentDataLockRegular+DocumentDataRegular+DocumentDatabaseFilled+DocumentDatabaseRegular+DocumentDismissFilled+DocumentDismissRegular+DocumentEditFilled+DocumentEditRegular+DocumentEndnoteFilled+DocumentEndnoteRegular+DocumentErrorFilled+DocumentErrorRegular+DocumentFilled+DocumentFitFilled+DocumentFitRegular+DocumentFlowchartFilled+DocumentFlowchartRegular+DocumentFolderFilled+DocumentFolderRegular+DocumentFooterDismissFilled+DocumentFooterDismissRegular+DocumentFooterFilled+DocumentFooterRegular+DocumentGlobeFilled+DocumentGlobeRegular+DocumentHeaderArrowDownFilled+DocumentHeaderArrowDownRegular+DocumentHeaderDismissFilled+DocumentHeaderDismissRegular+DocumentHeaderFilled+DocumentHeaderFooterFilled+DocumentHeaderFooterRegular+DocumentHeaderRegular+DocumentHeartFilled+DocumentHeartPulseFilled+DocumentHeartPulseRegular+DocumentHeartRegular+DocumentImageFilled+DocumentImageRegular+DocumentJavaFilled+DocumentJavaRegular+DocumentJavascriptFilled+DocumentJavascriptRegular+DocumentKeyFilled+DocumentKeyRegular+DocumentLandscapeDataFilled+DocumentLandscapeDataRegular+DocumentLandscapeFilled+DocumentLandscapeRegular+DocumentLandscapeSplitFilled+DocumentLandscapeSplitHintFilled+DocumentLandscapeSplitHintRegular+DocumentLandscapeSplitRegular+DocumentLightningFilled+DocumentLightningRegular+DocumentLinkFilled+DocumentLinkRegular+DocumentLockFilled+DocumentLockRegular+DocumentMarginsFilled+DocumentMarginsRegular+DocumentMentionFilled+DocumentMentionRegular+DocumentMultipleFilled+DocumentMultiplePercentFilled+DocumentMultiplePercentRegular+DocumentMultipleProhibitedFilled+DocumentMultipleProhibitedRegular+DocumentMultipleRegular+DocumentMultipleSyncFilled+DocumentMultipleSyncRegular+DocumentOnePageAddFilled+DocumentOnePageAddRegular+DocumentOnePageColumnsFilled+DocumentOnePageColumnsRegular+DocumentOnePageFilled+DocumentOnePageLinkFilled+DocumentOnePageLinkRegular+DocumentOnePageMultipleFilled+DocumentOnePageMultipleRegular+DocumentOnePageMultipleSparkleFilled+DocumentOnePageMultipleSparkleRegular+DocumentOnePageRegular+DocumentOnePageSparkleFilled+DocumentOnePageSparkleRegular+DocumentPageBottomCenterFilled+DocumentPageBottomCenterRegular+DocumentPageBottomLeftFilled+DocumentPageBottomLeftRegular+DocumentPageBottomRightFilled+DocumentPageBottomRightRegular+DocumentPageBreakFilled+DocumentPageBreakRegular+DocumentPageNumberFilled+DocumentPageNumberRegular+DocumentPageTopCenterFilled+DocumentPageTopCenterRegular+DocumentPageTopLeftFilled+DocumentPageTopLeftRegular+DocumentPageTopRightFilled+DocumentPageTopRightRegular+DocumentPdfFilled+DocumentPdfRegular+DocumentPercentFilled+DocumentPercentRegular+DocumentPersonFilled+DocumentPersonRegular+DocumentPillFilled+DocumentPillRegular+DocumentPrintFilled+DocumentPrintRegular+DocumentProhibitedFilled+DocumentProhibitedRegular+DocumentQuestionMarkFilled+DocumentQuestionMarkRegular+DocumentQueueAddFilled+DocumentQueueAddRegular+DocumentQueueFilled+DocumentQueueMultipleFilled+DocumentQueueMultipleRegular+DocumentQueueRegular+DocumentRegular+DocumentRibbonFilled+DocumentRibbonRegular+DocumentSassFilled+DocumentSassRegular+DocumentSaveFilled+DocumentSaveRegular+DocumentSearchFilled+DocumentSearchRegular+DocumentSettingsFilled+DocumentSettingsRegular+DocumentSignatureFilled+DocumentSignatureRegular+DocumentSparkleFilled+DocumentSparkleRegular+DocumentSplitHintFilled+DocumentSplitHintOffFilled+DocumentSplitHintOffRegular+DocumentSplitHintRegular+DocumentSyncFilled+DocumentSyncRegular+DocumentTableArrowRightFilled+DocumentTableArrowRightRegular+DocumentTableCheckmarkFilled+DocumentTableCheckmarkRegular+DocumentTableCubeFilled+DocumentTableCubeRegular+DocumentTableFilled+DocumentTableRegular+DocumentTableSearchFilled+DocumentTableSearchRegular+DocumentTableTruckFilled+DocumentTableTruckRegular+DocumentTargetFilled+DocumentTargetRegular+DocumentTextClockFilled+DocumentTextClockRegular+DocumentTextExtractFilled+DocumentTextExtractRegular+DocumentTextFilled+DocumentTextLinkFilled+DocumentTextLinkRegular+DocumentTextRegular+DocumentTextToolboxFilled+DocumentTextToolboxRegular+DocumentToolboxFilled+DocumentToolboxRegular+DocumentWidthFilled+DocumentWidthRegular+DocumentYmlFilled+DocumentYmlRegular+DoorArrowLeftFilled+DoorArrowLeftRegular+DoorArrowRightFilled+DoorArrowRightRegular+DoorFilled+DoorRegular+DoorTagFilled+DoorTagRegular+DoubleSwipeDownFilled+DoubleSwipeDownRegular+DoubleSwipeUpFilled+DoubleSwipeUpRegular+DoubleTapSwipeDownFilled+DoubleTapSwipeDownRegular+DoubleTapSwipeUpFilled+DoubleTapSwipeUpRegular+DraftsFilled+DraftsRegular+DragFilled+DragRegular+DrawImageFilled+DrawImageRegular+DrawShapeFilled+DrawShapeRegular+DrawTextFilled+DrawTextRegular+DrawerAddFilled+DrawerAddRegular+DrawerArrowDownloadFilled+DrawerArrowDownloadRegular+DrawerDismissFilled+DrawerDismissRegular+DrawerFilled+DrawerPlayFilled+DrawerPlayRegular+DrawerRegular+DrawerSubtractFilled+DrawerSubtractRegular+DrinkBeerFilled+DrinkBeerRegular+DrinkBottleFilled+DrinkBottleOffFilled+DrinkBottleOffRegular+DrinkBottleRegular+DrinkCoffeeFilled+DrinkCoffeeRegular+DrinkMargaritaFilled+DrinkMargaritaRegular+DrinkToGoFilled+DrinkToGoRegular+DrinkWineFilled+DrinkWineRegular+DriveTrainFilled+DriveTrainRegular+DropFilled+DropRegular+DualScreenAddFilled+DualScreenAddRegular+DualScreenArrowRightFilled+DualScreenArrowRightRegular+DualScreenArrowUpFilled+DualScreenArrowUpRegular+DualScreenClockFilled+DualScreenClockRegular+DualScreenClosedAlertFilled+DualScreenClosedAlertRegular+DualScreenDesktopFilled+DualScreenDesktopRegular+DualScreenDismissFilled+DualScreenDismissRegular+DualScreenFilled+DualScreenGroupFilled+DualScreenGroupRegular+DualScreenHeaderFilled+DualScreenHeaderRegular+DualScreenLockFilled+DualScreenLockRegular+DualScreenMirrorFilled+DualScreenMirrorRegular+DualScreenPaginationFilled+DualScreenPaginationRegular+DualScreenRegular+DualScreenSettingsFilled+DualScreenSettingsRegular+DualScreenSpanFilled+DualScreenSpanRegular+DualScreenSpeakerFilled+DualScreenSpeakerRegular+DualScreenStatusBarFilled+DualScreenStatusBarRegular+DualScreenTabletFilled+DualScreenTabletRegular+DualScreenUpdateFilled+DualScreenUpdateRegular+DualScreenVerticalScrollFilled+DualScreenVerticalScrollRegular+DualScreenVibrateFilled+DualScreenVibrateRegular+DumbbellFilled+DumbbellRegular+DustFilled+DustRegular+EarthFilled+EarthLeafFilled+EarthLeafRegular+EarthRegular+EditArrowBackFilled+EditArrowBackRegular+EditFilled+EditLockFilled+EditLockRegular+EditOffFilled+EditOffRegular+EditPersonFilled+EditPersonRegular+EditProhibitedFilled+EditProhibitedRegular+EditRegular+EditSettingsFilled+EditSettingsRegular+ElevatorFilled+ElevatorRegular+EmojiAddFilled+EmojiAddRegular+EmojiAngryFilled+EmojiAngryRegular+EmojiEditFilled+EmojiEditRegular+EmojiFilled+EmojiHandFilled+EmojiHandRegular+EmojiHintFilled+EmojiHintRegular+EmojiLaughFilled+EmojiLaughRegular+EmojiMehFilled+EmojiMehRegular+EmojiMemeFilled+EmojiMemeRegular+EmojiMultipleFilled+EmojiMultipleRegular+EmojiRegular+EmojiSadFilled+EmojiSadRegular+EmojiSadSlightFilled+EmojiSadSlightRegular+EmojiSmileSlightFilled+EmojiSmileSlightRegular+EmojiSparkleFilled+EmojiSparkleRegular+EmojiSurpriseFilled+EmojiSurpriseRegular+EngineFilled+EngineRegular+EqualCircleFilled+EqualCircleRegular+EqualOffFilled+EqualOffRegular+EraserFilled+EraserMediumFilled+EraserMediumRegular+EraserRegular+EraserSegmentFilled+EraserSegmentRegular+EraserSmallFilled+EraserSmallRegular+EraserToolFilled+EraserToolRegular+ErrorCircleFilled+ErrorCircleRegular+ErrorCircleSettingsFilled+ErrorCircleSettingsRegular+ExpandUpLeftFilled+ExpandUpLeftRegular+ExpandUpRightFilled+ExpandUpRightRegular+ExtendedDockFilled+ExtendedDockRegular+EyeFilled+EyeLinesFilled+EyeLinesRegular+EyeOffFilled+EyeOffRegular+EyeRegular+EyeTrackingFilled+EyeTrackingOffFilled+EyeTrackingOffRegular+EyeTrackingRegular+EyedropperFilled+EyedropperOffFilled+EyedropperOffRegular+EyedropperRegular+FStopFilled+FStopRegular+FastAccelerationFilled+FastAccelerationRegular+FastForwardFilled+FastForwardRegular+FaxFilled+FaxRegular+FeedFilled+FeedRegular+FilmstripFilled+FilmstripImageFilled+FilmstripImageRegular+FilmstripPlayFilled+FilmstripPlayRegular+FilmstripRegular+FilmstripSplitFilled+FilmstripSplitRegular+FilterAddFilled+FilterAddRegular+FilterDismissFilled+FilterDismissRegular+FilterFilled+FilterRegular+FilterSyncFilled+FilterSyncRegular+FingerprintFilled+FingerprintRegular+FireFilled+FireRegular+FireplaceFilled+FireplaceRegular+FixedWidthFilled+FixedWidthRegular+FlagCheckeredFilled+FlagCheckeredRegular+FlagClockFilled+FlagClockRegular+FlagFilled+FlagOffFilled+FlagOffRegular+FlagPrideFilled+FlagPrideIntersexInclusiveProgressFilled+FlagPridePhiladelphiaFilled+FlagPrideProgressFilled+FlagRegular+FlashAddFilled+FlashAddRegular+FlashAutoFilled+FlashAutoRegular+FlashCheckmarkFilled+FlashCheckmarkRegular+FlashFilled+FlashFlowFilled+FlashFlowRegular+FlashOffFilled+FlashOffRegular+FlashPlayFilled+FlashPlayRegular+FlashRegular+FlashSettingsFilled+FlashSettingsRegular+FlashSparkleFilled+FlashSparkleRegular+FlashlightFilled+FlashlightOffFilled+FlashlightOffRegular+FlashlightRegular+FlipHorizontalFilled+FlipHorizontalRegular+FlipVerticalFilled+FlipVerticalRegular+FlowFilled+FlowRegular+FlowchartCircleFilled+FlowchartCircleRegular+FlowchartFilled+FlowchartRegular+FluentFilled+FluentRegular+FluidFilled+FluidRegular+FolderAddFilled+FolderAddRegular+FolderArrowLeftFilled+FolderArrowLeftRegular+FolderArrowRightFilled+FolderArrowRightRegular+FolderArrowUpFilled+FolderArrowUpRegular+FolderBriefcaseFilled+FolderBriefcaseRegular+FolderDocumentFilled+FolderDocumentRegular+FolderFilled+FolderGlobeFilled+FolderGlobeRegular+FolderLightningFilled+FolderLightningRegular+FolderLinkFilled+FolderLinkRegular+FolderListFilled+FolderListRegular+FolderMailFilled+FolderMailRegular+FolderOpenDownFilled+FolderOpenDownRegular+FolderOpenFilled+FolderOpenRegular+FolderOpenVerticalFilled+FolderOpenVerticalRegular+FolderPeopleFilled+FolderPeopleRegular+FolderPersonFilled+FolderPersonRegular+FolderProhibitedFilled+FolderProhibitedRegular+FolderRegular+FolderSearchFilled+FolderSearchRegular+FolderSwapFilled+FolderSwapRegular+FolderSyncFilled+FolderSyncRegular+FolderZipFilled+FolderZipRegular+FontDecreaseFilled+FontDecreaseRegular+FontIncreaseFilled+FontIncreaseRegular+FontSpaceTrackingInFilled+FontSpaceTrackingInRegular+FontSpaceTrackingOutFilled+FontSpaceTrackingOutRegular+FoodAppleFilled+FoodAppleRegular+FoodCakeFilled+FoodCakeRegular+FoodCarrotFilled+FoodCarrotRegular+FoodChickenLegFilled+FoodChickenLegRegular+FoodEggFilled+FoodEggRegular+FoodFilled+FoodFishFilled+FoodFishRegular+FoodGrainsFilled+FoodGrainsRegular+FoodPizzaFilled+FoodPizzaRegular+FoodRegular+FoodToastFilled+FoodToastRegular+FormFilled+FormMultipleFilled+FormMultipleRegular+FormNewFilled+FormNewRegular+FormRegular+FormSparkleFilled+FormSparkleRegular+FrameFilled+FrameRegular+FullScreenMaximizeFilled+FullScreenMaximizeRegular+FullScreenMinimizeFilled+FullScreenMinimizeRegular+GameChatFilled+GameChatRegular+GamesFilled+GamesRegular+GanttChartFilled+GanttChartRegular+GasFilled+GasPumpFilled+GasPumpRegular+GasRegular+GatherFilled+GatherRegular+GaugeAddFilled+GaugeAddRegular+GaugeFilled+GaugeRegular+GavelFilled+GavelProhibitedFilled+GavelProhibitedRegular+GavelRegular+GestureFilled+GestureRegular+GifFilled+GifRegular+GiftCardAddFilled+GiftCardAddRegular+GiftCardArrowRightFilled+GiftCardArrowRightRegular+GiftCardFilled+GiftCardMoneyFilled+GiftCardMoneyRegular+GiftCardMultipleFilled+GiftCardMultipleRegular+GiftCardRegular+GiftFilled+GiftOpenFilled+GiftOpenRegular+GiftRegular+GlanceFilled+GlanceHorizontalFilled+GlanceHorizontalRegular+GlanceHorizontalSparklesFilled+GlanceHorizontalSparklesRegular+GlanceRegular+GlassesFilled+GlassesOffFilled+GlassesOffRegular+GlassesRegular+GlobeAddFilled+GlobeAddRegular+GlobeArrowForwardFilled+GlobeArrowForwardRegular+GlobeArrowUpFilled+GlobeArrowUpRegular+GlobeClockFilled+GlobeClockRegular+GlobeDesktopFilled+GlobeDesktopRegular+GlobeErrorFilled+GlobeErrorRegular+GlobeFilled+GlobeLocationFilled+GlobeLocationRegular+GlobeOffFilled+GlobeOffRegular+GlobePersonFilled+GlobePersonRegular+GlobeProhibitedFilled+GlobeProhibitedRegular+GlobeRegular+GlobeSearchFilled+GlobeSearchRegular+GlobeShieldFilled+GlobeShieldRegular+GlobeStarFilled+GlobeStarRegular+GlobeSurfaceFilled+GlobeSurfaceRegular+GlobeSyncFilled+GlobeSyncRegular+GlobeVideoFilled+GlobeVideoRegular+GlobeWarningFilled+GlobeWarningRegular+GridDotsFilled+GridDotsRegular+GridFilled+GridKanbanFilled+GridKanbanRegular+GridRegular+GroupDismissFilled+GroupDismissRegular+GroupFilled+GroupListFilled+GroupListRegular+GroupRegular+GroupReturnFilled+GroupReturnRegular+GuardianFilled+GuardianRegular+GuestAddFilled+GuestAddRegular+GuestFilled+GuestRegular+GuitarFilled+GuitarRegular+HandDrawFilled+HandDrawRegular+HandLeftChatFilled+HandLeftChatRegular+HandLeftFilled+HandLeftRegular+HandMultipleFilled+HandMultipleRegular+HandOpenHeartFilled+HandOpenHeartRegular+HandPointFilled+HandPointRegular+HandRightFilled+HandRightOffFilled+HandRightOffRegular+HandRightRegular+HandWaveFilled+HandWaveRegular+HandshakeFilled+HandshakeRegular+HapticStrongFilled+HapticStrongRegular+HapticWeakFilled+HapticWeakRegular+HardDriveFilled+HardDriveRegular+HatGraduationAddFilled+HatGraduationAddRegular+HatGraduationFilled+HatGraduationRegular+HatGraduationSparkleFilled+HatGraduationSparkleRegular+HdFilled+HdOffFilled+HdOffRegular+HdRegular+HdrFilled+HdrOffFilled+HdrOffRegular+HdrRegular+HeadphonesFilled+HeadphonesRegular+HeadphonesSoundWaveFilled+HeadphonesSoundWaveRegular+HeadsetAddFilled+HeadsetAddRegular+HeadsetFilled+HeadsetRegular+HeadsetVrFilled+HeadsetVrRegular+HeartBrokenFilled+HeartBrokenRegular+HeartCircleFilled+HeartCircleHintFilled+HeartCircleHintRegular+HeartCircleRegular+HeartFilled+HeartOffFilled+HeartOffRegular+HeartPulseCheckmarkFilled+HeartPulseCheckmarkRegular+HeartPulseErrorFilled+HeartPulseErrorRegular+HeartPulseFilled+HeartPulseRegular+HeartPulseWarningFilled+HeartPulseWarningRegular+HeartRegular+HexagonFilled+HexagonRegular+HexagonSparkleFilled+HexagonSparkleRegular+HexagonThreeFilled+HexagonThreeRegular+HighlightAccentFilled+HighlightFilled+HighlightLinkFilled+HighlightLinkRegular+HighlightRegular+HighwayFilled+HighwayRegular+HistoryDismissFilled+HistoryDismissRegular+HistoryFilled+HistoryRegular+HomeAddFilled+HomeAddRegular+HomeCheckmarkFilled+HomeCheckmarkRegular+HomeDatabaseFilled+HomeDatabaseRegular+HomeEmptyFilled+HomeEmptyRegular+HomeFilled+HomeGarageFilled+HomeGarageRegular+HomeHeartFilled+HomeHeartRegular+HomeMoreFilled+HomeMoreRegular+HomePersonFilled+HomePersonRegular+HomeRegular+HomeSplitFilled+HomeSplitRegular+HourglassFilled+HourglassHalfFilled+HourglassHalfRegular+HourglassOneQuarterFilled+HourglassOneQuarterRegular+HourglassRegular+HourglassThreeQuarterFilled+HourglassThreeQuarterRegular+IconsFilled+IconsRegular+ImageAddFilled+ImageAddRegular+ImageAltTextFilled+ImageAltTextRegular+ImageArrowBackFilled+ImageArrowBackRegular+ImageArrowCounterclockwiseFilled+ImageArrowCounterclockwiseRegular+ImageArrowForwardFilled+ImageArrowForwardRegular+ImageBorderFilled+ImageBorderRegular+ImageCircleFilled+ImageCircleRegular+ImageCopyFilled+ImageCopyRegular+ImageEditFilled+ImageEditRegular+ImageFilled+ImageGlobeFilled+ImageGlobeRegular+ImageMultipleFilled+ImageMultipleOffFilled+ImageMultipleOffRegular+ImageMultipleRegular+ImageOffFilled+ImageOffRegular+ImageProhibitedFilled+ImageProhibitedRegular+ImageReflectionFilled+ImageReflectionRegular+ImageRegular+ImageSearchFilled+ImageSearchRegular+ImageShadowFilled+ImageShadowRegular+ImageSparkleFilled+ImageSparkleRegular+ImageSplitFilled+ImageSplitRegular+ImageStackFilled+ImageStackRegular+ImageTableFilled+ImageTableRegular+ImmersiveReaderFilled+ImmersiveReaderRegular+ImportantFilled+ImportantRegular+IncognitoFilled+IncognitoRegular+InfoFilled+InfoRegular+InfoShieldFilled+InfoShieldRegular+InfoSparkleFilled+InfoSparkleRegular+InkStrokeArrowDownFilled+InkStrokeArrowDownRegular+InkStrokeArrowUpDownFilled+InkStrokeArrowUpDownRegular+InkStrokeFilled+InkStrokeRegular+InkingToolAccentFilled+InkingToolFilled+InkingToolRegular+InprivateAccountFilled+InprivateAccountRegular+InsertFilled+InsertRegular+IosChevronRightFilled+IosChevronRightRegular+IotAlertFilled+IotAlertRegular+IotFilled+IotRegular+JavascriptFilled+JavascriptRegular+JoystickFilled+JoystickRegular+KeyCommandFilled+KeyCommandRegular+KeyFilled+KeyMultipleFilled+KeyMultipleRegular+KeyRegular+KeyResetFilled+KeyResetRegular+KeyboardDockFilled+KeyboardDockRegular+KeyboardFilled+KeyboardLayoutFloatFilled+KeyboardLayoutFloatRegular+KeyboardLayoutOneHandedLeftFilled+KeyboardLayoutOneHandedLeftRegular+KeyboardLayoutResizeFilled+KeyboardLayoutResizeRegular+KeyboardLayoutSplitFilled+KeyboardLayoutSplitRegular+KeyboardRegular+KeyboardShiftFilled+KeyboardShiftRegular+KeyboardShiftUppercaseFilled+KeyboardShiftUppercaseRegular+KeyboardTabFilled+KeyboardTabRegular+LaptopBriefcaseFilled+LaptopBriefcaseRegular+LaptopDismissFilled+LaptopDismissRegular+LaptopFilled+LaptopPersonFilled+LaptopPersonRegular+LaptopRegular+LaptopSettingsFilled+LaptopSettingsRegular+LaptopShieldFilled+LaptopShieldRegular+LaserToolFilled+LaserToolRegular+LassoFilled+LassoRegular+LauncherSettingsFilled+LauncherSettingsRegular+LayerDiagonalAddFilled+LayerDiagonalAddRegular+LayerDiagonalFilled+LayerDiagonalPersonFilled+LayerDiagonalPersonRegular+LayerDiagonalRegular+LayerDiagonalSparkleFilled+LayerDiagonalSparkleRegular+LayerFilled+LayerRegular+LayoutCellFourFilled+LayoutCellFourFocusBottomLeftFilled+LayoutCellFourFocusBottomRightFilled+LayoutCellFourFocusTopLeftFilled+LayoutCellFourFocusTopRightFilled+LayoutCellFourRegular+LayoutColumnFourFilled+LayoutColumnFourFocusCenterLeftFilled+LayoutColumnFourFocusCenterRightFilled+LayoutColumnFourFocusLeftFilled+LayoutColumnFourFocusRightFilled+LayoutColumnFourRegular+LayoutColumnOneThirdLeftFilled+LayoutColumnOneThirdLeftRegular+LayoutColumnOneThirdRightFilled+LayoutColumnOneThirdRightHintFilled+LayoutColumnOneThirdRightHintRegular+LayoutColumnOneThirdRightRegular+LayoutColumnThreeFilled+LayoutColumnThreeFocusCenterFilled+LayoutColumnThreeFocusLeftFilled+LayoutColumnThreeFocusRightFilled+LayoutColumnThreeRegular+LayoutColumnTwoFilled+LayoutColumnTwoFocusLeftFilled+LayoutColumnTwoFocusRightFilled+LayoutColumnTwoRegular+LayoutColumnTwoSplitLeftFilled+LayoutColumnTwoSplitLeftFocusBottomLeftFilled+LayoutColumnTwoSplitLeftFocusRightFilled+LayoutColumnTwoSplitLeftFocusTopLeftFilled+LayoutColumnTwoSplitLeftRegular+LayoutColumnTwoSplitRightFilled+LayoutColumnTwoSplitRightFocusBottomRightFilled+LayoutColumnTwoSplitRightFocusLeftFilled+LayoutColumnTwoSplitRightFocusTopRightFilled+LayoutColumnTwoSplitRightRegular+LayoutRowFourFilled+LayoutRowFourFocusBottomFilled+LayoutRowFourFocusCenterBottomFilled+LayoutRowFourFocusCenterTopFilled+LayoutRowFourFocusTopFilled+LayoutRowFourRegular+LayoutRowThreeFilled+LayoutRowThreeFocusBottomFilled+LayoutRowThreeFocusCenterFilled+LayoutRowThreeFocusTopFilled+LayoutRowThreeRegular+LayoutRowTwoFilled+LayoutRowTwoFocusBottomFilled+LayoutRowTwoFocusTopFilled+LayoutRowTwoFocusTopSettingsFilled+LayoutRowTwoRegular+LayoutRowTwoSettingsFilled+LayoutRowTwoSettingsRegular+LayoutRowTwoSplitBottomFilled+LayoutRowTwoSplitBottomFocusBottomLeftFilled+LayoutRowTwoSplitBottomFocusBottomRightFilled+LayoutRowTwoSplitBottomFocusTopFilled+LayoutRowTwoSplitBottomRegular+LayoutRowTwoSplitTopFilled+LayoutRowTwoSplitTopFocusBottomFilled+LayoutRowTwoSplitTopFocusTopLeftFilled+LayoutRowTwoSplitTopFocusTopRightFilled+LayoutRowTwoSplitTopRegular+LeafOneFilled+LeafOneRegular+LeafThreeFilled+LeafThreeRegular+LeafTwoFilled+LeafTwoRegular+LearningAppFilled+LearningAppRegular+LibraryFilled+LibraryRegular+LightbulbCheckmarkFilled+LightbulbCheckmarkRegular+LightbulbCircleFilled+LightbulbCircleRegular+LightbulbFilamentFilled+LightbulbFilamentRegular+LightbulbFilled+LightbulbPersonFilled+LightbulbPersonRegular+LightbulbRegular+LikertFilled+LikertRegular+LineDashesFilled+LineDashesRegular+LineFilled+LineFlowDiagonalUpRightFilled+LineFlowDiagonalUpRightRegular+LineHorizontal1DashDotDashFilled+LineHorizontal1DashDotDashRegular+LineHorizontal1DashesFilled+LineHorizontal1DashesRegular+LineHorizontal1DotFilled+LineHorizontal1DotRegular+LineHorizontal2DashesSolidFilled+LineHorizontal2DashesSolidRegular+LineHorizontal4SearchFilled+LineHorizontal4SearchRegular+LineHorizontal5ErrorFilled+LineHorizontal5ErrorRegular+LineRegular+LineStyleFilled+LineStyleRegular+LineStyleSketchFilled+LineStyleSketchRegular+LineThicknessFilled+LineThicknessRegular+LinkAddFilled+LinkAddRegular+LinkDismissFilled+LinkDismissRegular+LinkEditFilled+LinkEditRegular+LinkFilled+LinkMultipleFilled+LinkMultipleRegular+LinkPersonFilled+LinkPersonRegular+LinkRegular+LinkSquareFilled+LinkSquareRegular+LinkToolboxFilled+LinkToolboxRegular+ListBarFilled+ListBarRegular+ListBarTreeFilled+ListBarTreeOffsetFilled+ListBarTreeOffsetRegular+ListBarTreeRegular+ListFilled+ListRegular+ListRtlFilled+ListRtlRegular+LiveFilled+LiveOffFilled+LiveOffRegular+LiveRegular+LocalLanguageFilled+LocalLanguageRegular+LocationAddFilled+LocationAddLeftFilled+LocationAddLeftRegular+LocationAddRegular+LocationAddRightFilled+LocationAddRightRegular+LocationAddUpFilled+LocationAddUpRegular+LocationArrowFilled+LocationArrowLeftFilled+LocationArrowLeftRegular+LocationArrowRegular+LocationArrowRightFilled+LocationArrowRightRegular+LocationArrowUpFilled+LocationArrowUpRegular+LocationCheckmarkFilled+LocationCheckmarkRegular+LocationDismissFilled+LocationDismissRegular+LocationFilled+LocationLiveFilled+LocationLiveRegular+LocationOffFilled+LocationOffRegular+LocationRegular+LocationRippleFilled+LocationRippleRegular+LocationSettingsFilled+LocationSettingsRegular+LocationTargetSquareFilled+LocationTargetSquareRegular+LockClosedFilled+LockClosedKeyFilled+LockClosedKeyRegular+LockClosedRegular+LockClosedRibbonFilled+LockClosedRibbonRegular+LockMultipleFilled+LockMultipleRegular+LockOpenFilled+LockOpenRegular+LockShieldFilled+LockShieldRegular+LotteryFilled+LotteryRegular+LuggageFilled+LuggageRegular+MailAddFilled+MailAddRegular+MailAlertFilled+MailAlertRegular+MailAllReadFilled+MailAllReadRegular+MailAllUnreadFilled+MailAllUnreadRegular+MailArrowClockwiseFilled+MailArrowClockwiseRegular+MailArrowDoubleBackFilled+MailArrowDoubleBackRegular+MailArrowDownFilled+MailArrowDownRegular+MailArrowForwardFilled+MailArrowForwardRegular+MailArrowUpFilled+MailArrowUpRegular+MailAttachFilled+MailAttachRegular+MailCheckmarkFilled+MailCheckmarkRegular+MailClockFilled+MailClockRegular+MailCopyFilled+MailCopyRegular+MailDataBarFilled+MailDataBarRegular+MailDismissFilled+MailDismissRegular+MailEditFilled+MailEditRegular+MailErrorFilled+MailErrorRegular+MailFilled+MailInboxAddFilled+MailInboxAddRegular+MailInboxAllFilled+MailInboxAllRegular+MailInboxArrowDownFilled+MailInboxArrowDownRegular+MailInboxArrowRightFilled+MailInboxArrowRightRegular+MailInboxArrowUpFilled+MailInboxArrowUpRegular+MailInboxCheckmarkFilled+MailInboxCheckmarkRegular+MailInboxDismissFilled+MailInboxDismissRegular+MailInboxFilled+MailInboxPersonFilled+MailInboxPersonRegular+MailInboxRegular+MailLinkFilled+MailLinkRegular+MailListFilled+MailListRegular+MailMultipleFilled+MailMultipleRegular+MailOffFilled+MailOffRegular+MailOpenPersonFilled+MailOpenPersonRegular+MailPauseFilled+MailPauseRegular+MailProhibitedFilled+MailProhibitedRegular+MailReadBriefcaseFilled+MailReadBriefcaseRegular+MailReadFilled+MailReadMultipleFilled+MailReadMultipleRegular+MailReadRegular+MailRegular+MailRewindFilled+MailRewindRegular+MailSettingsFilled+MailSettingsRegular+MailShieldFilled+MailShieldRegular+MailTemplateFilled+MailTemplateRegular+MailUnreadFilled+MailUnreadRegular+MailWarningFilled+MailWarningRegular+MailboxFilled+MailboxRegular+MapDriveFilled+MapDriveRegular+MapFilled+MapRegular+MarkdownFilled+MarkdownRegular+MatchAppLayoutFilled+MatchAppLayoutRegular+MathFormatLinearFilled+MathFormatLinearRegular+MathFormatProfessionalFilled+MathFormatProfessionalRegular+MathFormulaFilled+MathFormulaRegular+MathSymbolsFilled+MathSymbolsRegular+MaximizeFilled+MaximizeRegular+MeetNowFilled+MeetNowRegular+MegaphoneCircleFilled+MegaphoneCircleRegular+MegaphoneFilled+MegaphoneLoudFilled+MegaphoneLoudRegular+MegaphoneOffFilled+MegaphoneOffRegular+MegaphoneRegular+MentionArrowDownFilled+MentionArrowDownRegular+MentionBracketsFilled+MentionBracketsRegular+MentionFilled+MentionRegular+MergeFilled+MergeRegular+MicFilled+MicLinkFilled+MicLinkRegular+MicOffFilled+MicOffRegular+MicProhibitedFilled+MicProhibitedRegular+MicPulseFilled+MicPulseOffFilled+MicPulseOffRegular+MicPulseRegular+MicRecordFilled+MicRecordRegular+MicRegular+MicSettingsFilled+MicSettingsRegular+MicSparkleFilled+MicSparkleRegular+MicSyncFilled+MicSyncRegular+MicroscopeFilled+MicroscopeRegular+MidiFilled+MidiRegular+MobileOptimizedFilled+MobileOptimizedRegular+MoldFilled+MoldRegular+MoleculeFilled+MoleculeRegular+MoneyCalculatorFilled+MoneyCalculatorRegular+MoneyDismissFilled+MoneyDismissRegular+MoneyFilled+MoneyHandFilled+MoneyHandRegular+MoneyOffFilled+MoneyOffRegular+MoneyRegular+MoneySettingsFilled+MoneySettingsRegular+MoreCircleFilled+MoreCircleRegular+MoreHorizontalFilled+MoreHorizontalRegular+MoreVerticalFilled+MoreVerticalRegular+MountainLocationBottomFilled+MountainLocationBottomRegular+MountainLocationTopFilled+MountainLocationTopRegular+MountainTrailFilled+MountainTrailRegular+MoviesAndTvFilled+MoviesAndTvRegular+Multiplier12XFilled+Multiplier12XRegular+Multiplier15XFilled+Multiplier15XRegular+Multiplier18XFilled+Multiplier18XRegular+Multiplier1XFilled+Multiplier1XRegular+Multiplier2XFilled+Multiplier2XRegular+Multiplier5XFilled+Multiplier5XRegular+MultiselectLtrFilled+MultiselectLtrRegular+MultiselectRtlFilled+MultiselectRtlRegular+MusicNote2PlayFilled+MusicNote2PlayRegular+MyLocationFilled+MyLocationRegular+NavigationBriefcaseFilled+NavigationBriefcaseRegular+NavigationFilled+NavigationLocationTargetFilled+NavigationLocationTargetRegular+NavigationPersonFilled+NavigationPersonRegular+NavigationPlayFilled+NavigationPlayRegular+NavigationRegular+NavigationUnreadFilled+NavigationUnreadRegular+NetworkCheckFilled+NetworkCheckRegular+NewFilled+NewRegular+NewsFilled+NewsRegular+NextFilled+NextFrameFilled+NextFrameRegular+NextRegular+NoteAddFilled+NoteAddRegular+NoteEditFilled+NoteEditRegular+NoteFilled+NotePinFilled+NotePinRegular+NoteRegular+NotebookAddFilled+NotebookAddRegular+NotebookArrowCurveDownFilled+NotebookArrowCurveDownRegular+NotebookErrorFilled+NotebookErrorRegular+NotebookEyeFilled+NotebookEyeRegular+NotebookFilled+NotebookLightningFilled+NotebookLightningRegular+NotebookQuestionMarkFilled+NotebookQuestionMarkRegular+NotebookRegular+NotebookSectionArrowRightFilled+NotebookSectionArrowRightRegular+NotebookSectionFilled+NotebookSectionRegular+NotebookSubsectionFilled+NotebookSubsectionRegular+NotebookSyncFilled+NotebookSyncRegular+NotepadEditFilled+NotepadEditRegular+NotepadFilled+NotepadPersonFilled+NotepadPersonRegular+NotepadRegular+NotepadSparkleFilled+NotepadSparkleRegular+NumberRowFilled+NumberRowRegular+NumberSymbolDismissFilled+NumberSymbolDismissRegular+NumberSymbolFilled+NumberSymbolRegular+NumberSymbolSquareFilled+NumberSymbolSquareRegular+OpenFilled+OpenFolderFilled+OpenFolderRegular+OpenOffFilled+OpenOffRegular+OpenRegular+OptionsFilled+OptionsRegular+OrganizationFilled+OrganizationHorizontalFilled+OrganizationHorizontalRegular+OrganizationRegular+OrientationFilled+OrientationRegular+OvalFilled+OvalRegular+OvenFilled+OvenRegular+PaddingDownFilled+PaddingDownRegular+PaddingLeftFilled+PaddingLeftRegular+PaddingRightFilled+PaddingRightRegular+PaddingTopFilled+PaddingTopRegular+PageFitFilled+PageFitRegular+PaintBrushArrowDownFilled+PaintBrushArrowDownRegular+PaintBrushArrowUpFilled+PaintBrushArrowUpRegular+PaintBrushFilled+PaintBrushRegular+PaintBrushSparkleFilled+PaintBrushSparkleRegular+PaintBrushSubtractFilled+PaintBrushSubtractRegular+PaintBucketBrushFilled+PaintBucketBrushRegular+PaintBucketFilled+PaintBucketRegular+PairFilled+PairRegular+PanelBottomContractFilled+PanelBottomContractRegular+PanelBottomExpandFilled+PanelBottomExpandRegular+PanelBottomFilled+PanelBottomRegular+PanelLeftAddFilled+PanelLeftAddRegular+PanelLeftContractFilled+PanelLeftContractRegular+PanelLeftExpandFilled+PanelLeftExpandRegular+PanelLeftFilled+PanelLeftFocusRightFilled+PanelLeftHeaderAddFilled+PanelLeftHeaderAddRegular+PanelLeftHeaderFilled+PanelLeftHeaderKeyFilled+PanelLeftHeaderKeyRegular+PanelLeftHeaderRegular+PanelLeftKeyFilled+PanelLeftKeyRegular+PanelLeftRegular+PanelLeftTextAddFilled+PanelLeftTextAddRegular+PanelLeftTextDismissFilled+PanelLeftTextDismissRegular+PanelLeftTextFilled+PanelLeftTextRegular+PanelRightAddFilled+PanelRightAddRegular+PanelRightContractFilled+PanelRightContractRegular+PanelRightCursorFilled+PanelRightCursorRegular+PanelRightExpandFilled+PanelRightExpandRegular+PanelRightFilled+PanelRightGalleryFilled+PanelRightGalleryRegular+PanelRightRegular+PanelSeparateWindowFilled+PanelSeparateWindowRegular+PanelTopContractFilled+PanelTopContractRegular+PanelTopExpandFilled+PanelTopExpandRegular+PanelTopGalleryFilled+PanelTopGalleryRegular+PasswordFilled+PasswordRegular+PatchFilled+PatchRegular+PatientFilled+PatientRegular+PauseCircleFilled+PauseCircleRegular+PauseFilled+PauseOffFilled+PauseOffRegular+PauseRegular+PauseSettingsFilled+PauseSettingsRegular+PaymentFilled+PaymentRegular+PaymentWirelessFilled+PaymentWirelessRegular+PenDismissFilled+PenDismissRegular+PenFilled+PenOffFilled+PenOffRegular+PenProhibitedFilled+PenProhibitedRegular+PenRegular+PenSparkleFilled+PenSparkleRegular+PenSyncFilled+PenSyncRegular+PentagonFilled+PentagonRegular+PeopleAddFilled+PeopleAddRegular+PeopleAudienceFilled+PeopleAudienceRegular+PeopleCallFilled+PeopleCallRegular+PeopleChatFilled+PeopleChatRegular+PeopleCheckmarkFilled+PeopleCheckmarkRegular+PeopleCommunityAddFilled+PeopleCommunityAddRegular+PeopleCommunityFilled+PeopleCommunityRegular+PeopleEditFilled+PeopleEditRegular+PeopleErrorFilled+PeopleErrorRegular+PeopleEyeFilled+PeopleEyeRegular+PeopleFilled+PeopleLinkFilled+PeopleLinkRegular+PeopleListFilled+PeopleListRegular+PeopleLockFilled+PeopleLockRegular+PeopleMoneyFilled+PeopleMoneyRegular+PeopleProhibitedFilled+PeopleProhibitedRegular+PeopleQueueFilled+PeopleQueueRegular+PeopleRegular+PeopleSearchFilled+PeopleSearchRegular+PeopleSettingsFilled+PeopleSettingsRegular+PeopleStarFilled+PeopleStarRegular+PeopleSubtractFilled+PeopleSubtractRegular+PeopleSwapFilled+PeopleSwapRegular+PeopleSyncFilled+PeopleSyncRegular+PeopleTeamAddFilled+PeopleTeamAddRegular+PeopleTeamDeleteFilled+PeopleTeamDeleteRegular+PeopleTeamFilled+PeopleTeamRegular+PeopleTeamToolboxFilled+PeopleTeamToolboxRegular+PeopleToolboxFilled+PeopleToolboxRegular+PersonAccountsFilled+PersonAccountsRegular+PersonAddFilled+PersonAddRegular+PersonAlertFilled+PersonAlertOffFilled+PersonAlertOffRegular+PersonAlertRegular+PersonArrowBackFilled+PersonArrowBackRegular+PersonArrowLeftFilled+PersonArrowLeftRegular+PersonArrowRightFilled+PersonArrowRightRegular+PersonAvailableFilled+PersonAvailableRegular+PersonBoardAddFilled+PersonBoardAddRegular+PersonBoardFilled+PersonBoardRegular+PersonCallFilled+PersonCallRegular+PersonChatFilled+PersonChatRegular+PersonCircleFilled+PersonCircleRegular+PersonClockFilled+PersonClockRegular+PersonDeleteFilled+PersonDeleteRegular+PersonDesktopFilled+PersonDesktopRegular+PersonEditFilled+PersonEditRegular+PersonFeedbackFilled+PersonFeedbackRegular+PersonFilled+PersonHeadHintFilled+PersonHeadHintRegular+PersonHeartFilled+PersonHeartRegular+PersonHomeFilled+PersonHomeRegular+PersonInfoFilled+PersonInfoRegular+PersonKeyFilled+PersonKeyRegular+PersonLightbulbFilled+PersonLightbulbRegular+PersonLightningFilled+PersonLightningRegular+PersonLinkFilled+PersonLinkRegular+PersonLockFilled+PersonLockRegular+PersonMailFilled+PersonMailRegular+PersonMoneyFilled+PersonMoneyRegular+PersonNoteFilled+PersonNoteRegular+PersonPasskeyFilled+PersonPasskeyRegular+PersonPillFilled+PersonPillRegular+PersonProhibitedFilled+PersonProhibitedRegular+PersonQuestionMarkFilled+PersonQuestionMarkRegular+PersonRegular+PersonRibbonFilled+PersonRibbonRegular+PersonRunningFilled+PersonRunningRegular+PersonSearchFilled+PersonSearchRegular+PersonSettingsFilled+PersonSettingsRegular+PersonSoundSpatialFilled+PersonSoundSpatialRegular+PersonSquareAddFilled+PersonSquareAddRegular+PersonSquareCheckmarkFilled+PersonSquareCheckmarkRegular+PersonSquareFilled+PersonSquareRegular+PersonStarFilled+PersonStarRegular+PersonStarburstFilled+PersonStarburstRegular+PersonSubtractFilled+PersonSubtractRegular+PersonSupportFilled+PersonSupportRegular+PersonSwapFilled+PersonSwapRegular+PersonSyncFilled+PersonSyncRegular+PersonTagFilled+PersonTagRegular+PersonTentativeFilled+PersonTentativeRegular+PersonVoiceFilled+PersonVoiceRegular+PersonWalkingFilled+PersonWalkingRegular+PersonWarningFilled+PersonWarningRegular+PersonWrenchFilled+PersonWrenchRegular+PhoneAddFilled+PhoneAddRegular+PhoneArrowRightFilled+PhoneArrowRightRegular+PhoneChatFilled+PhoneChatRegular+PhoneCheckmarkFilled+PhoneCheckmarkRegular+PhoneDesktopAddFilled+PhoneDesktopAddRegular+PhoneDesktopFilled+PhoneDesktopRegular+PhoneDismissFilled+PhoneDismissRegular+PhoneEditFilled+PhoneEditRegular+PhoneEraserFilled+PhoneEraserRegular+PhoneFilled+PhoneFooterArrowDownFilled+PhoneFooterArrowDownRegular+PhoneHeaderArrowUpFilled+PhoneHeaderArrowUpRegular+PhoneKeyFilled+PhoneKeyRegular+PhoneLaptopFilled+PhoneLaptopRegular+PhoneLinkSetupFilled+PhoneLinkSetupRegular+PhoneLockFilled+PhoneLockRegular+PhonePageHeaderFilled+PhonePageHeaderRegular+PhonePaginationFilled+PhonePaginationRegular+PhoneRegular+PhoneScreenTimeFilled+PhoneScreenTimeRegular+PhoneShakeFilled+PhoneShakeRegular+PhoneSpanInFilled+PhoneSpanInRegular+PhoneSpanOutFilled+PhoneSpanOutRegular+PhoneSpeakerFilled+PhoneSpeakerRegular+PhoneStatusBarFilled+PhoneStatusBarRegular+PhoneTabletFilled+PhoneTabletRegular+PhoneUpdateCheckmarkFilled+PhoneUpdateCheckmarkRegular+PhoneUpdateFilled+PhoneUpdateRegular+PhoneVerticalScrollFilled+PhoneVerticalScrollRegular+PhoneVibrateFilled+PhoneVibrateRegular+PhotoFilterFilled+PhotoFilterRegular+PiFilled+PiRegular+PictureInPictureEnterFilled+PictureInPictureEnterRegular+PictureInPictureExitFilled+PictureInPictureExitRegular+PictureInPictureFilled+PictureInPictureRegular+PillFilled+PillRegular+PinFilled+PinGlobeFilled+PinGlobeRegular+PinOffFilled+PinOffRegular+PinRegular+PipelineAddFilled+PipelineAddRegular+PipelineArrowCurveDownFilled+PipelineArrowCurveDownRegular+PipelineFilled+PipelinePlayFilled+PipelinePlayRegular+PipelineRegular+PivotFilled+PivotRegular+PlantCattailFilled+PlantCattailRegular+PlantGrassFilled+PlantGrassRegular+PlantRagweedFilled+PlantRagweedRegular+PlayCircleFilled+PlayCircleHintFilled+PlayCircleHintHalfFilled+PlayCircleHintHalfRegular+PlayCircleHintRegular+PlayCircleRegular+PlayCircleSparkleFilled+PlayCircleSparkleRegular+PlayFilled+PlayRegular+PlaySettingsFilled+PlaySettingsRegular+PlayingCardsFilled+PlayingCardsRegular+PlugConnectedAddFilled+PlugConnectedAddRegular+PlugConnectedCheckmarkFilled+PlugConnectedCheckmarkRegular+PlugConnectedFilled+PlugConnectedRegular+PlugConnectedSettingsFilled+PlugConnectedSettingsRegular+PlugDisconnectedFilled+PlugDisconnectedRegular+PointScanFilled+PointScanRegular+PollFilled+PollHorizontalFilled+PollHorizontalRegular+PollOffFilled+PollOffRegular+PollRegular+PortHdmiFilled+PortHdmiRegular+PortMicroUsbFilled+PortMicroUsbRegular+PortUsbAFilled+PortUsbARegular+PortUsbCFilled+PortUsbCRegular+PositionBackwardFilled+PositionBackwardRegular+PositionForwardFilled+PositionForwardRegular+PositionToBackFilled+PositionToBackRegular+PositionToFrontFilled+PositionToFrontRegular+PowerFilled+PowerRegular+PredictionsFilled+PredictionsRegular+PremiumFilled+PremiumPersonFilled+PremiumPersonRegular+PremiumRegular+PresenceAvailableFilled+PresenceAvailableRegular+PresenceAwayFilled+PresenceAwayRegular+PresenceBlockedRegular+PresenceBusyFilled+PresenceDndFilled+PresenceDndRegular+PresenceOfflineRegular+PresenceOofRegular+PresenceTentativeRegular+PresenceUnknownRegular+PresenterFilled+PresenterOffFilled+PresenterOffRegular+PresenterRegular+PreviewLinkFilled+PreviewLinkRegular+PreviousFilled+PreviousFrameFilled+PreviousFrameRegular+PreviousRegular+PrintAddFilled+PrintAddRegular+PrintFilled+PrintRegular+ProductionCheckmarkFilled+ProductionCheckmarkRegular+ProductionFilled+ProductionRegular+ProhibitedFilled+ProhibitedMultipleFilled+ProhibitedMultipleRegular+ProhibitedNoteFilled+ProhibitedNoteRegular+ProhibitedRegular+ProjectionScreenDismissFilled+ProjectionScreenDismissRegular+ProjectionScreenFilled+ProjectionScreenRegular+ProjectionScreenTextFilled+ProjectionScreenTextRegular+PromptFilled+PromptRegular+ProtocolHandlerFilled+ProtocolHandlerRegular+PulseFilled+PulseRegular+PulseSquareFilled+PulseSquareRegular+PuzzleCubeFilled+PuzzleCubePieceFilled+PuzzleCubePieceRegular+PuzzleCubeRegular+PuzzlePieceFilled+PuzzlePieceRegular+PuzzlePieceShieldFilled+PuzzlePieceShieldRegular+QrCodeFilled+QrCodeRegular+QuestionCircleFilled+QuestionCircleRegular+QuestionFilled+QuestionRegular+QuizNewFilled+QuizNewRegular+RadarCheckmarkFilled+RadarCheckmarkRegular+RadarFilled+RadarRectangleMultipleFilled+RadarRectangleMultipleRegular+RadarRegular+RadioButtonFilled+RadioButtonRegular+RamFilled+RamRegular+RatingMatureFilled+RatingMatureRegular+RatioOneToOneFilled+RatioOneToOneRegular+ReOrderDotsHorizontalFilled+ReOrderDotsHorizontalRegular+ReOrderDotsVerticalFilled+ReOrderDotsVerticalRegular+ReOrderFilled+ReOrderRegular+ReOrderVerticalFilled+ReOrderVerticalRegular+ReadAloudFilled+ReadAloudRegular+ReadingListAddFilled+ReadingListAddRegular+ReadingListFilled+ReadingListRegular+ReadingModeMobileFilled+ReadingModeMobileRegular+RealEstateFilled+RealEstateRegular+ReceiptAddFilled+ReceiptAddRegular+ReceiptBagFilled+ReceiptBagRegular+ReceiptCubeFilled+ReceiptCubeRegular+ReceiptFilled+ReceiptMoneyFilled+ReceiptMoneyRegular+ReceiptPlayFilled+ReceiptPlayRegular+ReceiptRegular+ReceiptSearchFilled+ReceiptSearchRegular+ReceiptSparklesFilled+ReceiptSparklesRegular+RecordFilled+RecordRegular+RecordStopFilled+RecordStopRegular+RectangleLandscapeFilled+RectangleLandscapeHintCopyFilled+RectangleLandscapeHintCopyRegular+RectangleLandscapeRegular+RectangleLandscapeSparkleFilled+RectangleLandscapeSparkleRegular+RectangleLandscapeSyncFilled+RectangleLandscapeSyncOffFilled+RectangleLandscapeSyncOffRegular+RectangleLandscapeSyncRegular+RectanglePortraitLocationTargetFilled+RectanglePortraitLocationTargetRegular+RecycleFilled+RecycleRegular+RemixAddFilled+RemixAddRegular+RemoteFilled+RemoteRegular+RenameFilled+RenameRegular+ReorderFilled+ReorderRegular+ReplayFilled+ReplayRegular+ResizeFilled+ResizeImageFilled+ResizeImageRegular+ResizeLargeFilled+ResizeLargeRegular+ResizeRegular+ResizeSmallFilled+ResizeSmallRegular+ResizeTableFilled+ResizeTableRegular+ResizeVideoFilled+ResizeVideoRegular+RewardFilled+RewardRegular+RewindFilled+RewindRegular+RhombusFilled+RhombusRegular+RibbonAddFilled+RibbonAddRegular+RibbonFilled+RibbonOffFilled+RibbonOffRegular+RibbonRegular+RibbonStarFilled+RibbonStarRegular+RoadConeFilled+RoadConeRegular+RoadFilled+RoadRegular+RocketFilled+RocketRegular+RotateLeftFilled+RotateLeftRegular+RotateRightFilled+RotateRightRegular+RouterFilled+RouterRegular+RowChildFilled+RowChildRegular+RowTripleFilled+RowTripleRegular+RssFilled+RssRegular+RulerFilled+RulerRegular+RunFilled+RunRegular+SanitizeFilled+SanitizeRegular+SaveArrowRightFilled+SaveArrowRightRegular+SaveCopyFilled+SaveCopyRegular+SaveEditFilled+SaveEditRegular+SaveFilled+SaveImageFilled+SaveImageRegular+SaveMultipleFilled+SaveMultipleRegular+SaveRegular+SaveSearchFilled+SaveSearchRegular+SaveSyncFilled+SaveSyncRegular+SavingsFilled+SavingsRegular+ScaleFillFilled+ScaleFillRegular+ScaleFitFilled+ScaleFitRegular+ScalesFilled+ScalesRegular+ScanCameraFilled+ScanCameraRegular+ScanDashFilled+ScanDashRegular+ScanFilled+ScanObjectFilled+ScanObjectRegular+ScanPersonFilled+ScanPersonRegular+ScanRegular+ScanTableFilled+ScanTableRegular+ScanTextFilled+ScanTextRegular+ScanThumbUpFilled+ScanThumbUpOffFilled+ScanThumbUpOffRegular+ScanThumbUpRegular+ScanTypeCheckmarkFilled+ScanTypeCheckmarkRegular+ScanTypeFilled+ScanTypeOffFilled+ScanTypeOffRegular+ScanTypeRegular+ScratchpadFilled+ScratchpadRegular+ScreenCutFilled+ScreenCutRegular+ScreenPersonFilled+ScreenPersonRegular+ScreenSearchFilled+ScreenSearchRegular+ScreenshotFilled+ScreenshotRecordFilled+ScreenshotRecordRegular+ScreenshotRegular+ScriptFilled+ScriptRegular+SearchFilled+SearchInfoFilled+SearchInfoRegular+SearchRegular+SearchSettingsFilled+SearchSettingsRegular+SearchShieldFilled+SearchShieldRegular+SearchSparkleFilled+SearchSparkleRegular+SearchSquareFilled+SearchSquareRegular+SearchVisualFilled+SearchVisualRegular+SeatAddFilled+SeatAddRegular+SeatFilled+SeatRegular+SelectAllOffFilled+SelectAllOffRegular+SelectAllOnFilled+SelectAllOnRegular+SelectObjectFilled+SelectObjectRegular+SelectObjectSkewDismissFilled+SelectObjectSkewDismissRegular+SelectObjectSkewEditFilled+SelectObjectSkewEditRegular+SelectObjectSkewFilled+SelectObjectSkewRegular+SendBeakerFilled+SendBeakerRegular+SendClockFilled+SendClockRegular+SendCopyFilled+SendCopyRegular+SendFilled+SendPersonFilled+SendPersonRegular+SendRegular+SerialPortFilled+SerialPortRegular+ServerFilled+ServerLinkFilled+ServerLinkRegular+ServerMultipleFilled+ServerMultipleRegular+ServerPlayFilled+ServerPlayRegular+ServerRegular+ServiceBellFilled+ServiceBellRegular+SettingsChatFilled+SettingsChatRegular+SettingsCogMultipleFilled+SettingsCogMultipleRegular+SettingsFilled+SettingsRegular+ShapeExcludeFilled+ShapeExcludeRegular+ShapeIntersectFilled+ShapeIntersectRegular+ShapeOrganicFilled+ShapeOrganicRegular+ShapeSubtractFilled+ShapeSubtractRegular+ShapeUnionFilled+ShapeUnionRegular+ShapesFilled+ShapesRegular+ShareAndroidFilled+ShareAndroidRegular+ShareCloseTrayFilled+ShareCloseTrayRegular+ShareFilled+ShareIosFilled+ShareIosRegular+ShareMultipleFilled+ShareMultipleRegular+ShareRegular+ShareScreenPersonFilled+ShareScreenPersonOverlayFilled+ShareScreenPersonOverlayInsideFilled+ShareScreenPersonOverlayInsideRegular+ShareScreenPersonOverlayRegular+ShareScreenPersonPFilled+ShareScreenPersonPRegular+ShareScreenPersonRegular+ShareScreenStartFilled+ShareScreenStartRegular+ShareScreenStopFilled+ShareScreenStopRegular+ShieldAddFilled+ShieldAddRegular+ShieldArrowRightFilled+ShieldArrowRightRegular+ShieldBadgeFilled+ShieldBadgeRegular+ShieldCheckmarkFilled+ShieldCheckmarkRegular+ShieldDismissFilled+ShieldDismissRegular+ShieldDismissShieldFilled+ShieldDismissShieldRegular+ShieldErrorFilled+ShieldErrorRegular+ShieldFilled+ShieldGlobeFilled+ShieldGlobeRegular+ShieldKeyholeFilled+ShieldKeyholeRegular+ShieldLockFilled+ShieldLockRegular+ShieldPersonAddFilled+ShieldPersonAddRegular+ShieldPersonFilled+ShieldPersonRegular+ShieldProhibitedFilled+ShieldProhibitedRegular+ShieldQuestionFilled+ShieldQuestionRegular+ShieldRegular+ShieldTaskFilled+ShieldTaskRegular+Shifts30MinutesFilled+Shifts30MinutesRegular+ShiftsActivityFilled+ShiftsActivityRegular+ShiftsAddFilled+ShiftsAddRegular+ShiftsAvailabilityFilled+ShiftsAvailabilityRegular+ShiftsCheckmarkFilled+ShiftsCheckmarkRegular+ShiftsDayFilled+ShiftsDayRegular+ShiftsFilled+ShiftsOpenFilled+ShiftsOpenRegular+ShiftsProhibitedFilled+ShiftsProhibitedRegular+ShiftsQuestionMarkFilled+ShiftsQuestionMarkRegular+ShiftsRegular+ShiftsTeamFilled+ShiftsTeamRegular+ShoppingBagAddFilled+ShoppingBagAddRegular+ShoppingBagArrowLeftFilled+ShoppingBagArrowLeftRegular+ShoppingBagDismissFilled+ShoppingBagDismissRegular+ShoppingBagFilled+ShoppingBagPauseFilled+ShoppingBagPauseRegular+ShoppingBagPercentFilled+ShoppingBagPercentRegular+ShoppingBagPlayFilled+ShoppingBagPlayRegular+ShoppingBagRegular+ShoppingBagTagFilled+ShoppingBagTagRegular+ShortpickFilled+ShortpickRegular+ShowerheadFilled+ShowerheadRegular+SidebarSearchLtrFilled+SidebarSearchLtrRegular+SidebarSearchRtlFilled+SidebarSearchRtlRegular+SignOutFilled+SignOutRegular+SignatureFilled+SignatureRegular+SimFilled+SimRegular+SkipForwardTabFilled+SkipForwardTabRegular+SlashForwardFilled+SlashForwardRegular+SleepFilled+SleepRegular+SlideAddFilled+SlideAddRegular+SlideArrowRightFilled+SlideArrowRightRegular+SlideEraserFilled+SlideEraserRegular+SlideGridFilled+SlideGridRegular+SlideHideFilled+SlideHideRegular+SlideLayoutFilled+SlideLayoutRegular+SlideLinkFilled+SlideLinkRegular+SlideMicrophoneFilled+SlideMicrophoneRegular+SlideMultipleArrowRightFilled+SlideMultipleArrowRightRegular+SlideMultipleFilled+SlideMultipleRegular+SlideMultipleSearchFilled+SlideMultipleSearchRegular+SlidePlayFilled+SlidePlayRegular+SlideRecordFilled+SlideRecordRegular+SlideSearchFilled+SlideSearchRegular+SlideSettingsFilled+SlideSettingsRegular+SlideSizeFilled+SlideSizeRegular+SlideTextCallFilled+SlideTextCallRegular+SlideTextCursorFilled+SlideTextCursorRegular+SlideTextEditFilled+SlideTextEditRegular+SlideTextFilled+SlideTextMultipleFilled+SlideTextMultipleRegular+SlideTextPersonFilled+SlideTextPersonRegular+SlideTextRegular+SlideTextSparkleFilled+SlideTextSparkleRegular+SlideTransitionFilled+SlideTransitionRegular+SmartwatchDotFilled+SmartwatchDotRegular+SmartwatchFilled+SmartwatchRegular+SnoozeFilled+SnoozeRegular+SoundSourceFilled+SoundSourceRegular+SoundWaveCircleFilled+SoundWaveCircleRegular+SoundWaveCircleSparkleFilled+SoundWaveCircleSparkleRegular+Space3DFilled+Space3DRegular+SpacebarFilled+SpacebarRegular+SparkleCircleFilled+SparkleCircleRegular+SparkleFilled+SparkleRegular+SpatulaSpoonFilled+SpatulaSpoonRegular+SpeakerBluetoothFilled+SpeakerBluetoothRegular+SpeakerBoxFilled+SpeakerBoxRegular+SpeakerEditFilled+SpeakerEditRegular+SpeakerMuteFilled+SpeakerMuteRegular+SpeakerOffFilled+SpeakerOffRegular+SpeakerSettingsFilled+SpeakerSettingsRegular+SpeakerUsbFilled+SpeakerUsbRegular+SpinnerIosFilled+SpinnerIosRegular+SplitHintFilled+SplitHintRegular+SplitHorizontalFilled+SplitHorizontalRegular+SplitVerticalFilled+SplitVerticalRegular+SportAmericanFootballFilled+SportAmericanFootballRegular+SportBaseballFilled+SportBaseballRegular+SportBasketballFilled+SportBasketballRegular+SportFilled+SportHockeyFilled+SportHockeyRegular+SportRegular+SportSoccerFilled+SportSoccerRegular+SquareAddFilled+SquareAddRegular+SquareArrowForwardFilled+SquareArrowForwardRegular+SquareDismissFilled+SquareDismissRegular+SquareDovetailJointFilled+SquareDovetailJointRegular+SquareEraserFilled+SquareEraserRegular+SquareFilled+SquareHintAppsFilled+SquareHintAppsRegular+SquareHintArrowBackFilled+SquareHintArrowBackRegular+SquareHintFilled+SquareHintHexagonFilled+SquareHintHexagonRegular+SquareHintRegular+SquareHintSparklesFilled+SquareHintSparklesRegular+SquareMultipleFilled+SquareMultipleRegular+SquareRegular+SquareShadowFilled+SquareShadowRegular+SquareTextArrowRepeatAllFilled+SquareTextArrowRepeatAllRegular+SquaresNestedFilled+SquaresNestedRegular+StackAddFilled+StackAddRegular+StackArrowForwardFilled+StackArrowForwardRegular+StackFilled+StackOffFilled+StackOffRegular+StackRegular+StackStarFilled+StackStarRegular+StackVerticalFilled+StackVerticalRegular+StarAddFilled+StarAddRegular+StarArrowBackFilled+StarArrowBackRegular+StarArrowRightEndFilled+StarArrowRightEndRegular+StarArrowRightStartFilled+StarArrowRightStartRegular+StarCheckmarkFilled+StarCheckmarkRegular+StarDismissFilled+StarDismissRegular+StarEditFilled+StarEditRegular+StarEmphasisFilled+StarEmphasisRegular+StarFilled+StarHalfFilled+StarHalfRegular+StarOffFilled+StarOffRegular+StarOneQuarterFilled+StarOneQuarterRegular+StarProhibitedFilled+StarProhibitedRegular+StarRegular+StarSettingsFilled+StarSettingsRegular+StarThreeQuarterFilled+StarThreeQuarterRegular+StatusFilled+StatusRegular+StepFilled+StepRegular+StepsFilled+StepsRegular+StethoscopeFilled+StethoscopeRegular+StickerAddFilled+StickerAddRegular+StickerFilled+StickerRegular+StopFilled+StopRegular+StorageFilled+StorageRegular+StoreMicrosoftFilled+StoreMicrosoftRegular+StreamFilled+StreamInputFilled+StreamInputOutputFilled+StreamInputOutputRegular+StreamInputRegular+StreamOutputFilled+StreamOutputRegular+StreamRegular+StreetSignFilled+StreetSignRegular+StyleGuideFilled+StyleGuideRegular+SubGridFilled+SubGridRegular+SubtitlesFilled+SubtitlesRegular+SubtractCircleArrowBackFilled+SubtractCircleArrowBackRegular+SubtractCircleArrowForwardFilled+SubtractCircleArrowForwardRegular+SubtractCircleFilled+SubtractCircleRegular+SubtractFilled+SubtractParenthesesFilled+SubtractParenthesesRegular+SubtractRegular+SubtractSquareFilled+SubtractSquareMultipleFilled+SubtractSquareMultipleRegular+SubtractSquareRegular+SurfaceEarbudsFilled+SurfaceEarbudsRegular+SurfaceHubFilled+SurfaceHubRegular+SwimmingPoolFilled+SwimmingPoolRegular+SwipeDownFilled+SwipeDownRegular+SwipeRightFilled+SwipeRightRegular+SwipeUpFilled+SwipeUpRegular+SymbolsFilled+SymbolsRegular+SyncOffFilled+SyncOffRegular+SyringeFilled+SyringeRegular+SystemFilled+SystemRegular+TabAddFilled+TabAddRegular+TabArrowLeftFilled+TabArrowLeftRegular+TabDesktopArrowClockwiseFilled+TabDesktopArrowClockwiseRegular+TabDesktopArrowLeftFilled+TabDesktopArrowLeftRegular+TabDesktopBottomFilled+TabDesktopBottomRegular+TabDesktopClockFilled+TabDesktopClockRegular+TabDesktopCopyFilled+TabDesktopCopyRegular+TabDesktopFilled+TabDesktopImageFilled+TabDesktopImageRegular+TabDesktopLinkFilled+TabDesktopLinkRegular+TabDesktopMultipleAddFilled+TabDesktopMultipleAddRegular+TabDesktopMultipleBottomFilled+TabDesktopMultipleBottomRegular+TabDesktopMultipleFilled+TabDesktopMultipleRegular+TabDesktopMultipleSparkleFilled+TabDesktopMultipleSparkleRegular+TabDesktopNewPageFilled+TabDesktopNewPageRegular+TabDesktopRegular+TabDesktopSearchFilled+TabDesktopSearchRegular+TabFilled+TabGroupFilled+TabGroupRegular+TabInPrivateFilled+TabInPrivateRegular+TabInprivateAccountFilled+TabInprivateAccountRegular+TabProhibitedFilled+TabProhibitedRegular+TabRegular+TabShieldDismissFilled+TabShieldDismissRegular+TableAddFilled+TableAddRegular+TableAltTextFilled+TableAltTextRegular+TableArrowUpFilled+TableArrowUpRegular+TableBottomRowFilled+TableBottomRowRegular+TableCalculatorFilled+TableCalculatorRegular+TableCellAddFilled+TableCellAddRegular+TableCellEditFilled+TableCellEditRegular+TableCellsMergeFilled+TableCellsMergeRegular+TableCellsSplitFilled+TableCellsSplitRegular+TableCheckerFilled+TableCheckerRegular+TableColumnTopBottomFilled+TableColumnTopBottomRegular+TableCopyFilled+TableCopyRegular+TableCursorFilled+TableCursorRegular+TableDeleteColumnFilled+TableDeleteColumnRegular+TableDeleteRowFilled+TableDeleteRowRegular+TableDismissFilled+TableDismissRegular+TableEditFilled+TableEditRegular+TableFilled+TableFreezeColumnAndRowFilled+TableFreezeColumnAndRowRegular+TableFreezeColumnFilled+TableFreezeColumnRegular+TableFreezeRowFilled+TableFreezeRowRegular+TableImageFilled+TableImageRegular+TableInsertColumnFilled+TableInsertColumnRegular+TableInsertRowFilled+TableInsertRowRegular+TableLightningFilled+TableLightningRegular+TableLinkFilled+TableLinkRegular+TableLockFilled+TableLockRegular+TableMoveAboveFilled+TableMoveAboveRegular+TableMoveBelowFilled+TableMoveBelowRegular+TableMoveLeftFilled+TableMoveLeftRegular+TableMoveRightFilled+TableMoveRightRegular+TableMultipleFilled+TableMultipleRegular+TableOffsetAddFilled+TableOffsetAddRegular+TableOffsetFilled+TableOffsetLessThanOrEqualToFilled+TableOffsetLessThanOrEqualToRegular+TableOffsetRegular+TableOffsetSettingsFilled+TableOffsetSettingsRegular+TableRegular+TableResizeColumnFilled+TableResizeColumnRegular+TableResizeRowFilled+TableResizeRowRegular+TableSearchFilled+TableSearchRegular+TableSettingsFilled+TableSettingsRegular+TableSimpleCheckmarkFilled+TableSimpleCheckmarkRegular+TableSimpleExcludeFilled+TableSimpleExcludeRegular+TableSimpleFilled+TableSimpleIncludeFilled+TableSimpleIncludeRegular+TableSimpleMultipleFilled+TableSimpleMultipleRegular+TableSimpleRegular+TableSparkleFilled+TableSparkleRegular+TableSplitFilled+TableSplitRegular+TableStackAboveFilled+TableStackAboveRegular+TableStackBelowFilled+TableStackBelowRegular+TableStackLeftFilled+TableStackLeftRegular+TableStackRightFilled+TableStackRightRegular+TableSwitchFilled+TableSwitchRegular+TabletFilled+TabletLaptopFilled+TabletLaptopRegular+TabletRegular+TabletSpeakerFilled+TabletSpeakerRegular+TabsFilled+TabsRegular+TagCircleFilled+TagCircleRegular+TagDismissFilled+TagDismissRegular+TagErrorFilled+TagErrorRegular+TagFilled+TagLockAccentFilled+TagLockFilled+TagLockRegular+TagMultipleFilled+TagMultipleRegular+TagOffFilled+TagOffRegular+TagQuestionMarkFilled+TagQuestionMarkRegular+TagRegular+TagResetFilled+TagResetRegular+TagSearchFilled+TagSearchRegular+TapDoubleFilled+TapDoubleRegular+TapSingleFilled+TapSingleRegular+TargetAddFilled+TargetAddRegular+TargetArrowFilled+TargetArrowRegular+TargetDismissFilled+TargetDismissRegular+TargetEditFilled+TargetEditRegular+TargetFilled+TargetRegular+TaskListAddFilled+TaskListAddRegular+TaskListLtrFilled+TaskListLtrRegular+TaskListRtlFilled+TaskListRtlRegular+TaskListSquareAddFilled+TaskListSquareAddRegular+TaskListSquareDatabaseFilled+TaskListSquareDatabaseRegular+TaskListSquareLtrFilled+TaskListSquareLtrRegular+TaskListSquarePersonFilled+TaskListSquarePersonRegular+TaskListSquareRtlFilled+TaskListSquareRtlRegular+TaskListSquareSettingsFilled+TaskListSquareSettingsRegular+TasksAppFilled+TasksAppRegular+TeachingFilled+TeachingRegular+TeardropBottomRightFilled+TeardropBottomRightRegular+TeddyFilled+TeddyRegular+TemperatureDegreeCelsiusFilled+TemperatureDegreeCelsiusRegular+TemperatureDegreeFahrenheitFilled+TemperatureDegreeFahrenheitRegular+TemperatureFilled+TemperatureRegular+TentFilled+TentRegular+TetrisAppFilled+TetrisAppRegular+TextAddFilled+TextAddRegular+TextAddSpaceAfterFilled+TextAddSpaceAfterRegular+TextAddSpaceBeforeFilled+TextAddSpaceBeforeRegular+TextAddTFilled+TextAddTRegular+TextAlignCenterFilled+TextAlignCenterRegular+TextAlignDistributedEvenlyFilled+TextAlignDistributedEvenlyRegular+TextAlignDistributedFilled+TextAlignDistributedRegular+TextAlignDistributedVerticalFilled+TextAlignDistributedVerticalRegular+TextAlignJustifyFilled+TextAlignJustifyLowFilled+TextAlignJustifyLowRegular+TextAlignJustifyRegular+TextAlignLeftFilled+TextAlignLeftRegular+TextAlignRightFilled+TextAlignRightRegular+TextArrowDownRightColumnFilled+TextArrowDownRightColumnRegular+TextAsteriskFilled+TextAsteriskRegular+TextBaselineFilled+TextBaselineRegular+TextBoldFilled+TextBoldRegular+TextBoxSettingsFilled+TextBoxSettingsRegular+TextBulletListAddFilled+TextBulletListAddRegular+TextBulletListCheckmarkFilled+TextBulletListCheckmarkRegular+TextBulletListDismissFilled+TextBulletListDismissRegular+TextBulletListFilled+TextBulletListLtrFilled+TextBulletListLtrRegular+TextBulletListRegular+TextBulletListRtlFilled+TextBulletListRtlRegular+TextBulletListSquareClockFilled+TextBulletListSquareClockRegular+TextBulletListSquareEditFilled+TextBulletListSquareEditRegular+TextBulletListSquareFilled+TextBulletListSquarePersonFilled+TextBulletListSquarePersonRegular+TextBulletListSquareRegular+TextBulletListSquareSearchFilled+TextBulletListSquareSearchRegular+TextBulletListSquareSettingsFilled+TextBulletListSquareSettingsRegular+TextBulletListSquareShieldFilled+TextBulletListSquareShieldRegular+TextBulletListSquareSparkleFilled+TextBulletListSquareSparkleRegular+TextBulletListSquareToolboxFilled+TextBulletListSquareToolboxRegular+TextBulletListSquareWarningFilled+TextBulletListSquareWarningRegular+TextBulletListTreeFilled+TextBulletListTreeRegular+TextCaseLowercaseFilled+TextCaseLowercaseRegular+TextCaseTitleFilled+TextCaseTitleRegular+TextCaseUppercaseFilled+TextCaseUppercaseRegular+TextChangeCaseFilled+TextChangeCaseRegular+TextClearFormattingFilled+TextClearFormattingRegular+TextCollapseFilled+TextCollapseRegular+TextColorAccentFilled+TextColorFilled+TextColorRegular+TextColumnOneFilled+TextColumnOneNarrowFilled+TextColumnOneNarrowRegular+TextColumnOneRegular+TextColumnOneSemiNarrowFilled+TextColumnOneSemiNarrowRegular+TextColumnOneWideFilled+TextColumnOneWideLightningFilled+TextColumnOneWideLightningRegular+TextColumnOneWideRegular+TextColumnThreeFilled+TextColumnThreeRegular+TextColumnTwoFilled+TextColumnTwoLeftFilled+TextColumnTwoLeftRegular+TextColumnTwoRegular+TextColumnTwoRightFilled+TextColumnTwoRightRegular+TextColumnWideFilled+TextColumnWideRegular+TextContinuousFilled+TextContinuousRegular+TextDensityFilled+TextDensityRegular+TextDescriptionFilled+TextDescriptionLtrFilled+TextDescriptionLtrRegular+TextDescriptionRegular+TextDescriptionRtlFilled+TextDescriptionRtlRegular+TextDirectionHorizontalLeftFilled+TextDirectionHorizontalLeftRegular+TextDirectionHorizontalLtrFilled+TextDirectionHorizontalLtrRegular+TextDirectionHorizontalRightFilled+TextDirectionHorizontalRightRegular+TextDirectionHorizontalRtlFilled+TextDirectionHorizontalRtlRegular+TextDirectionRotate270RightFilled+TextDirectionRotate270RightRegular+TextDirectionRotate315RightFilled+TextDirectionRotate315RightRegular+TextDirectionRotate45RightFilled+TextDirectionRotate45RightRegular+TextDirectionRotate90LeftFilled+TextDirectionRotate90LeftRegular+TextDirectionRotate90LtrFilled+TextDirectionRotate90LtrRegular+TextDirectionRotate90RightFilled+TextDirectionRotate90RightRegular+TextDirectionRotate90RtlFilled+TextDirectionRotate90RtlRegular+TextDirectionVerticalFilled+TextDirectionVerticalRegular+TextEditStyleFilled+TextEditStyleRegular+TextEffectsFilled+TextEffectsRegular+TextEffectsSparkleFilled+TextEffectsSparkleRegular+TextExpandFilled+TextExpandRegular+TextFieldFilled+TextFieldRegular+TextFirstLineFilled+TextFirstLineRegular+TextFontFilled+TextFontInfoFilled+TextFontInfoRegular+TextFontRegular+TextFontSizeFilled+TextFontSizeRegular+TextFootnoteFilled+TextFootnoteRegular+TextGrammarArrowLeftFilled+TextGrammarArrowLeftRegular+TextGrammarArrowRightFilled+TextGrammarArrowRightRegular+TextGrammarCheckmarkFilled+TextGrammarCheckmarkRegular+TextGrammarDismissFilled+TextGrammarDismissRegular+TextGrammarErrorFilled+TextGrammarErrorRegular+TextGrammarLightningFilled+TextGrammarLightningRegular+TextGrammarSettingsFilled+TextGrammarSettingsRegular+TextGrammarWandFilled+TextGrammarWandRegular+TextHangingFilled+TextHangingRegular+TextHeader1LinesCaretFilled+TextHeader1LinesCaretRegular+TextHeader1LinesFilled+TextHeader1LinesRegular+TextHeader2LinesCaretFilled+TextHeader2LinesCaretRegular+TextHeader2LinesFilled+TextHeader2LinesRegular+TextHeader3LinesCaretFilled+TextHeader3LinesCaretRegular+TextHeader3LinesFilled+TextHeader3LinesRegular+TextIndentDecreaseFilled+TextIndentDecreaseLtrFilled+TextIndentDecreaseLtrRegular+TextIndentDecreaseRegular+TextIndentDecreaseRtlFilled+TextIndentDecreaseRtlRegular+TextIndentIncreaseFilled+TextIndentIncreaseLtrFilled+TextIndentIncreaseLtrRegular+TextIndentIncreaseRegular+TextIndentIncreaseRtlFilled+TextIndentIncreaseRtlRegular+TextItalicFilled+TextItalicRegular+TextLineSpacingFilled+TextLineSpacingRegular+TextListAbcLowercaseLtrFilled+TextListAbcLowercaseLtrRegular+TextListAbcUppercaseLtrFilled+TextListAbcUppercaseLtrRegular+TextListRomanNumeralLowercaseFilled+TextListRomanNumeralLowercaseRegular+TextListRomanNumeralUppercaseFilled+TextListRomanNumeralUppercaseRegular+TextMoreFilled+TextMoreRegular+TextNumberFormatFilled+TextNumberFormatRegular+TextNumberListLtrFilled+TextNumberListLtrRegular+TextNumberListRtlFilled+TextNumberListRtlRegular+TextParagraphDirectionFilled+TextParagraphDirectionLeftFilled+TextParagraphDirectionLeftRegular+TextParagraphDirectionRegular+TextParagraphDirectionRightFilled+TextParagraphDirectionRightRegular+TextParagraphFilled+TextParagraphRegular+TextPeriodAsteriskFilled+TextPeriodAsteriskRegular+TextPositionBehindFilled+TextPositionBehindRegular+TextPositionFrontFilled+TextPositionFrontRegular+TextPositionLineFilled+TextPositionLineRegular+TextPositionSquareFilled+TextPositionSquareLeftFilled+TextPositionSquareLeftRegular+TextPositionSquareRegular+TextPositionSquareRightFilled+TextPositionSquareRightRegular+TextPositionThroughFilled+TextPositionThroughRegular+TextPositionTightFilled+TextPositionTightRegular+TextPositionTopBottomFilled+TextPositionTopBottomRegular+TextProofingToolsFilled+TextProofingToolsRegular+TextQuoteFilled+TextQuoteRegular+TextSortAscendingFilled+TextSortAscendingRegular+TextSortDescendingFilled+TextSortDescendingRegular+TextStrikethroughFilled+TextStrikethroughRegular+TextSubscriptFilled+TextSubscriptRegular+TextSuperscriptFilled+TextSuperscriptRegular+TextTFilled+TextTRegular+TextUnderlineCharacterUFilled+TextUnderlineCharacterURegular+TextUnderlineDoubleFilled+TextUnderlineDoubleRegular+TextUnderlineFilled+TextUnderlineRegular+TextWholeWordFilled+TextWholeWordRegular+TextWordCountFilled+TextWordCountRegular+TextWrapFilled+TextWrapOffFilled+TextWrapOffRegular+TextWrapRegular+TextboxAlignBottomCenterFilled+TextboxAlignBottomCenterRegular+TextboxAlignBottomFilled+TextboxAlignBottomLeftFilled+TextboxAlignBottomLeftRegular+TextboxAlignBottomRegular+TextboxAlignBottomRightFilled+TextboxAlignBottomRightRegular+TextboxAlignCenterFilled+TextboxAlignCenterRegular+TextboxAlignMiddleFilled+TextboxAlignMiddleLeftFilled+TextboxAlignMiddleLeftRegular+TextboxAlignMiddleRegular+TextboxAlignMiddleRightFilled+TextboxAlignMiddleRightRegular+TextboxAlignTopCenterFilled+TextboxAlignTopCenterRegular+TextboxAlignTopFilled+TextboxAlignTopLeftFilled+TextboxAlignTopLeftRegular+TextboxAlignTopRegular+TextboxAlignTopRightFilled+TextboxAlignTopRightRegular+TextboxCheckmarkFilled+TextboxCheckmarkRegular+TextboxFilled+TextboxMoreFilled+TextboxMoreRegular+TextboxRegular+TextboxSettingsFilled+TextboxSettingsRegular+ThinkingFilled+ThinkingRegular+ThumbDislikeFilled+ThumbDislikeRegular+ThumbLikeDislikeFilled+ThumbLikeDislikeRegular+ThumbLikeFilled+ThumbLikeRegular+TicketDiagonalFilled+TicketDiagonalRegular+TicketHorizontalFilled+TicketHorizontalRegular+TimeAndWeatherFilled+TimeAndWeatherRegular+TimePickerFilled+TimePickerRegular+TimelineFilled+TimelineRegular+TimerFilled+TimerOffFilled+TimerOffRegular+TimerRegular+ToggleLeftFilled+ToggleLeftRegular+ToggleMultipleFilled+ToggleMultipleRegular+ToggleRightFilled+ToggleRightRegular+ToolboxFilled+ToolboxRegular+TooltipQuoteFilled+TooltipQuoteRegular+TopSpeedFilled+TopSpeedRegular+TranslateAutoFilled+TranslateAutoRegular+TranslateFilled+TranslateOffFilled+TranslateOffRegular+TranslateRegular+TransmissionFilled+TransmissionRegular+TransparencySquareFilled+TransparencySquareRegular+TrayItemAddFilled+TrayItemAddRegular+TrayItemRemoveFilled+TrayItemRemoveRegular+TreeDeciduousFilled+TreeDeciduousRegular+TreeEvergreenFilled+TreeEvergreenRegular+TriangleDownFilled+TriangleDownRegular+TriangleFilled+TriangleLeftFilled+TriangleLeftRegular+TriangleRegular+TriangleRightFilled+TriangleRightRegular+TriangleUpFilled+TriangleUpRegular+TrophyFilled+TrophyLockFilled+TrophyLockRegular+TrophyOffFilled+TrophyOffRegular+TrophyRegular+TvArrowRightFilled+TvArrowRightRegular+TvFilled+TvRegular+TvUsbFilled+TvUsbRegular+UmbrellaFilled+UmbrellaRegular+UninstallAppFilled+UninstallAppRegular+UsbPlugFilled+UsbPlugRegular+UsbStickFilled+UsbStickRegular+VaultFilled+VaultRegular+VehicleBicycleFilled+VehicleBicycleRegular+VehicleBusFilled+VehicleBusRegular+VehicleCabFilled+VehicleCabRegular+VehicleCableCarFilled+VehicleCableCarRegular+VehicleCarCollisionFilled+VehicleCarCollisionRegular+VehicleCarFilled+VehicleCarParkingFilled+VehicleCarParkingRegular+VehicleCarProfileFilled+VehicleCarProfileLtrClockFilled+VehicleCarProfileLtrClockRegular+VehicleCarProfileLtrFilled+VehicleCarProfileLtrRegular+VehicleCarProfileRegular+VehicleCarProfileRtlFilled+VehicleCarProfileRtlRegular+VehicleCarRegular+VehicleMotorcycleFilled+VehicleMotorcycleRegular+VehicleShipFilled+VehicleShipRegular+VehicleSubwayClockFilled+VehicleSubwayClockRegular+VehicleSubwayFilled+VehicleSubwayRegular+VehicleTractorFilled+VehicleTractorRegular+VehicleTruckBagFilled+VehicleTruckBagRegular+VehicleTruckCubeFilled+VehicleTruckCubeRegular+VehicleTruckFilled+VehicleTruckProfileFilled+VehicleTruckProfileRegular+VehicleTruckRegular+Video360OffFilled+Video360OffRegular+VideoAddFilled+VideoAddRegular+VideoBackgroundEffectFilled+VideoBackgroundEffectHorizontalFilled+VideoBackgroundEffectHorizontalRegular+VideoBackgroundEffectRegular+VideoBluetoothFilled+VideoBluetoothRegular+VideoChatFilled+VideoChatRegular+VideoClipFilled+VideoClipMultipleFilled+VideoClipMultipleRegular+VideoClipOffFilled+VideoClipOffRegular+VideoClipOptimizeFilled+VideoClipOptimizeRegular+VideoClipRegular+VideoClipWandFilled+VideoClipWandRegular+VideoFilled+VideoMultipleFilled+VideoMultipleRegular+VideoOffFilled+VideoOffRegular+VideoPersonCallFilled+VideoPersonCallRegular+VideoPersonClockFilled+VideoPersonClockRegular+VideoPersonFilled+VideoPersonOffFilled+VideoPersonOffRegular+VideoPersonPulseFilled+VideoPersonPulseRegular+VideoPersonRegular+VideoPersonSparkleFilled+VideoPersonSparkleOffFilled+VideoPersonSparkleOffRegular+VideoPersonSparkleRegular+VideoPersonStarFilled+VideoPersonStarOffFilled+VideoPersonStarOffRegular+VideoPersonStarRegular+VideoPlayPauseFilled+VideoPlayPauseRegular+VideoProhibitedFilled+VideoProhibitedRegular+VideoRecordingFilled+VideoRecordingRegular+VideoRegular+VideoSecurityFilled+VideoSecurityRegular+VideoSettingsFilled+VideoSettingsRegular+VideoSwitchFilled+VideoSwitchRegular+VideoSyncFilled+VideoSyncRegular+VideoUsbFilled+VideoUsbRegular+ViewDesktopFilled+ViewDesktopMobileFilled+ViewDesktopMobileRegular+ViewDesktopRegular+VirtualNetworkFilled+VirtualNetworkRegular+VirtualNetworkToolboxFilled+VirtualNetworkToolboxRegular+VoicemailArrowBackFilled+VoicemailArrowBackRegular+VoicemailArrowForwardFilled+VoicemailArrowForwardRegular+VoicemailArrowSubtractFilled+VoicemailArrowSubtractRegular+VoicemailFilled+VoicemailRegular+VoicemailShieldFilled+VoicemailShieldRegular+VoicemailSubtractFilled+VoicemailSubtractRegular+VoteFilled+VoteRegular+WalkieTalkieFilled+WalkieTalkieRegular+WalletCreditCardFilled+WalletCreditCardRegular+WalletFilled+WalletRegular+WallpaperFilled+WallpaperRegular+WandFilled+WandRegular+WarningFilled+WarningLockOpenFilled+WarningLockOpenRegular+WarningRegular+WarningShieldFilled+WarningShieldRegular+WasherFilled+WasherRegular+WaterFilled+WaterRegular+WeatherBlowingSnowFilled+WeatherBlowingSnowRegular+WeatherCloudyFilled+WeatherCloudyRegular+WeatherDrizzleFilled+WeatherDrizzleRegular+WeatherDuststormFilled+WeatherDuststormRegular+WeatherFogFilled+WeatherFogRegular+WeatherHailDayFilled+WeatherHailDayRegular+WeatherHailNightFilled+WeatherHailNightRegular+WeatherHazeFilled+WeatherHazeRegular+WeatherMoonFilled+WeatherMoonOffFilled+WeatherMoonOffRegular+WeatherMoonRegular+WeatherPartlyCloudyDayFilled+WeatherPartlyCloudyDayRegular+WeatherPartlyCloudyNightFilled+WeatherPartlyCloudyNightRegular+WeatherRainFilled+WeatherRainRegular+WeatherRainShowersDayFilled+WeatherRainShowersDayRegular+WeatherRainShowersNightFilled+WeatherRainShowersNightRegular+WeatherRainSnowFilled+WeatherRainSnowRegular+WeatherSnowFilled+WeatherSnowRegular+WeatherSnowShowerDayFilled+WeatherSnowShowerDayRegular+WeatherSnowShowerNightFilled+WeatherSnowShowerNightRegular+WeatherSnowflakeFilled+WeatherSnowflakeRegular+WeatherSquallsFilled+WeatherSquallsRegular+WeatherSunnyFilled+WeatherSunnyHighFilled+WeatherSunnyHighRegular+WeatherSunnyLowFilled+WeatherSunnyLowRegular+WeatherSunnyRegular+WeatherThunderstormFilled+WeatherThunderstormRegular+WebAssetFilled+WebAssetRegular+WhiteboardFilled+WhiteboardOffFilled+WhiteboardOffRegular+WhiteboardRegular+WifiLockFilled+WifiLockRegular+WifiOffFilled+WifiOffRegular+WifiSettingsFilled+WifiSettingsRegular+WifiWarningFilled+WifiWarningRegular+WindowAdFilled+WindowAdOffFilled+WindowAdOffRegular+WindowAdPersonFilled+WindowAdPersonRegular+WindowAdRegular+WindowAppsFilled+WindowAppsRegular+WindowArrowUpFilled+WindowArrowUpRegular+WindowBrushFilled+WindowBrushRegular+WindowBulletListAddFilled+WindowBulletListAddRegular+WindowBulletListFilled+WindowBulletListRegular+WindowColumnOneFourthLeftFilled+WindowColumnOneFourthLeftFocusLeftFilled+WindowColumnOneFourthLeftFocusTopFilled+WindowColumnOneFourthLeftRegular+WindowConsoleFilled+WindowConsoleRegular+WindowDatabaseFilled+WindowDatabaseRegular+WindowDevEditFilled+WindowDevEditRegular+WindowDevToolsFilled+WindowDevToolsRegular+WindowEditFilled+WindowEditRegular+WindowFilled+WindowFingerprintFilled+WindowFingerprintRegular+WindowHeaderHorizontalFilled+WindowHeaderHorizontalOffFilled+WindowHeaderHorizontalOffRegular+WindowHeaderHorizontalRegular+WindowHeaderVerticalFilled+WindowHeaderVerticalRegular+WindowInprivateAccountFilled+WindowInprivateAccountRegular+WindowInprivateFilled+WindowInprivateRegular+WindowLocationTargetFilled+WindowLocationTargetRegular+WindowMultipleFilled+WindowMultipleRegular+WindowMultipleSwapFilled+WindowMultipleSwapRegular+WindowNewFilled+WindowNewRegular+WindowPlayFilled+WindowPlayRegular+WindowRegular+WindowSettingsFilled+WindowSettingsRegular+WindowShieldFilled+WindowShieldRegular+WindowTextFilled+WindowTextRegular+WindowWrenchFilled+WindowWrenchRegular+WrenchFilled+WrenchRegular+WrenchScrewdriverFilled+WrenchScrewdriverRegular+WrenchSettingsFilled+WrenchSettingsRegular+XboxConsoleFilled+XboxConsoleRegular+XboxControllerErrorFilled+XboxControllerErrorRegular+XboxControllerFilled+XboxControllerRegular+XrayFilled+XrayRegular+ZoomFitFilled+ZoomFitRegular+ZoomInFilled+ZoomInRegular+ZoomOutFilled+ZoomOutRegulardiff --git a/plugins/model-apps/samples/10-detail-with-pageinput.tsx b/plugins/model-apps/samples/10-detail-with-pageinput.tsxnew file mode 100644index 000000000..d37e046c4--- /dev/null+++ b/plugins/model-apps/samples/10-detail-with-pageinput.tsx@@ -0,0 +1,238 @@+import { useEffect, useState } from 'react';+import type {+ TableRow,+ ReadableTableRow,+ GeneratedComponentProps,+} from './RuntimeTypes';+import {+ makeStyles,+ tokens,+ Text,+ Spinner,+ Button,+ Card,+ Divider,+} from '@fluentui/react-components';+import { ArrowLeftRegular } from '@fluentui/react-icons';++// Sample: detail page receiving pageInput from a sibling list page.+// Demonstrates:+// - pageInput.entityName + pageInput.recordId derived SYNCHRONOUSLY from+// props (no useState for these — state init triggers re-renders)+// - Initial loading=true on frame 0 when recordId is present — avoids+// blank-flip-to-spinner flicker+// - Early-return when required input is missing (no conditional wrapper div)+// - Rule 14: SINGLE batched setData call after fetch+// - Map<recordId, row> cache on window (Rule 15 detail-page pattern) so+// return visits render instantly+// - Lookup formatted-value access via @OData.Community.Display.V1.FormattedValue++type ContactRow = TableRow<{+ readonly contactid: string;+ fullname?: string;+ emailaddress1?: string;+ telephone1?: string;+ jobtitle?: string;+ address1_city?: string;+ address1_stateorprovince?: string;+ _parentcustomerid_value?: string;+}>;++type ReadableContact = ReadableTableRow<ContactRow>;++// Map cache: key by recordId so each detail visit hits its own cached row.+const CACHE_KEY = '__ppContactDetailCache';+const winAny = window as unknown as Record<string, Map<string, ReadableContact> | undefined>;+const cache: Map<string, ReadableContact> = winAny[CACHE_KEY] ?? new Map();+winAny[CACHE_KEY] = cache;++// ---------- Styles ----------++const useStyles = makeStyles({+ root: {+ display: 'flex',+ flexDirection: 'column',+ gap: tokens.spacingVerticalL,+ padding: tokens.spacingHorizontalXL,+ width: '100%',+ boxSizing: 'border-box',+ },+ header: {+ display: 'flex',+ alignItems: 'center',+ gap: tokens.spacingHorizontalM,+ },+ title: { flex: 1 },+ card: { padding: tokens.spacingHorizontalL },+ fieldGrid: {+ display: 'grid',+ gridTemplateColumns: 'minmax(140px, max-content) 1fr',+ rowGap: tokens.spacingVerticalS,+ columnGap: tokens.spacingHorizontalL,+ },+ fieldLabel: {+ color: tokens.colorNeutralForeground2,+ fontWeight: tokens.fontWeightSemibold,+ },+ spinnerWrap: {+ display: 'flex',+ justifyContent: 'center',+ padding: tokens.spacingVerticalXXL,+ },+ emptyState: {+ padding: tokens.spacingVerticalXXL,+ textAlign: 'center',+ color: tokens.colorNeutralForeground2,+ },+ errorBanner: {+ padding: tokens.spacingHorizontalM,+ backgroundColor: tokens.colorStatusDangerBackground2,+ color: tokens.colorStatusDangerForeground2,+ borderRadius: tokens.borderRadiusMedium,+ },+ divider: {+ marginTop: tokens.spacingVerticalM,+ marginBottom: tokens.spacingVerticalM,+ },+});++// ---------- Field row ----------++const Field = (props: { label: string; value?: string | null }) => {+ const styles = useStyles();+ return (+ <>+ <Text className={styles.fieldLabel}>{props.label}</Text>+ <Text>{props.value ?? '—'}</Text>+ </>+ );+};++// ---------- Component ----------++const GeneratedComponent = (props: GeneratedComponentProps) => {+ const { dataApi, pageInput } = props;+ const styles = useStyles();++ // Synchronous derivation from props — NOT useState. State init would+ // trigger an extra render before the spinner can show.+ const entityName = pageInput?.entityName;+ const recordId = pageInput?.recordId;++ // Early return: required input missing. Don't render a wrapper div with+ // conditional inner content — that costs an extra render cycle.+ if (entityName !== 'contact' || !recordId) {+ return (+ <div className={styles.root}>+ <div className={styles.emptyState}>+ <Text>No contact selected. Open this page from the contacts list.</Text>+ </div>+ </div>+ );+ }++ // Initial loading state is `true` when recordId is present — spinner shows+ // on frame 0, not a blank page that flips to a spinner.+ // Pre-warm `record` from the cache if we have it (return visits = instant).+ const cached = cache.get(recordId);+ const [data, setData] = useState<{ record: ReadableContact | null; loading: boolean; error: string | null }>(+ () => ({+ record: cached ?? null,+ loading: !cached,+ error: null,+ }),+ );++ useEffect(() => {+ // Cache hit — already pre-warmed in initial state, nothing to fetch.+ if (cache.has(recordId)) return;++ (async () => {+ try {+ const row = (await dataApi.retrieveRow('contact', {+ id: recordId,+ select: [+ 'contactid',+ 'fullname',+ 'emailaddress1',+ 'telephone1',+ 'jobtitle',+ 'address1_city',+ 'address1_stateorprovince',+ '_parentcustomerid_value',+ ],+ })) as ReadableContact;+ cache.set(recordId, row);+ setData({ record: row, loading: false, error: null });+ } catch (err) {+ const message = err instanceof Error ? err.message : 'Failed to load contact.';+ setData({ record: null, loading: false, error: message });+ }+ })();+ }, [dataApi, recordId]);++ const goBack = () => {+ const xrm = (window as unknown as { Xrm?: { Navigation?: { navigateTo: (opts: unknown) => unknown } } }).Xrm;+ xrm?.Navigation?.navigateTo({+ pageType: 'generative',+ pageId: 'PAGEREF_9-list-with-caching',+ entityName: 'contact',+ });+ };++ if (data.loading) {+ return (+ <div className={styles.root}>+ <div className={styles.spinnerWrap}>+ <Spinner labelPosition="below" label="Loading contact…" />+ </div>+ </div>+ );+ }++ const row = data.record;+ const parentCompany = row?.['_parentcustomerid_value@OData.Community.Display.V1.FormattedValue'];++ return (+ <div className={styles.root}>+ <header className={styles.header}>+ <Button+ appearance="subtle"+ icon={<ArrowLeftRegular />}+ onClick={goBack}+ aria-label="Back to contacts list"+ >+ Back+ </Button>+ <Text as="h1" size={700} weight="semibold" className={styles.title}>+ {row?.fullname ?? 'Contact'}+ </Text>+ </header>++ {data.error && (+ <div role="alert" className={styles.errorBanner}>+ {data.error}+ </div>+ )}++ {row && (+ <Card className={styles.card}>+ <div className={styles.fieldGrid}>+ <Field label="Name" value={row.fullname} />+ <Field label="Title" value={row.jobtitle} />+ <Field label="Email" value={row.emailaddress1} />+ <Field label="Phone" value={row.telephone1} />+ </div>+ <Divider className={styles.divider} />+ <div className={styles.fieldGrid}>+ <Field label="City" value={row.address1_city} />+ <Field label="State / Province" value={row.address1_stateorprovince} />+ <Field label="Parent company" value={parentCompany} />+ </div>+ </Card>+ )}+ </div>+ );+};++export default GeneratedComponent;diff --git a/plugins/model-apps/samples/4-account-crud-dataverse.tsx b/plugins/model-apps/samples/3-account-crud-dataverse.tsxsimilarity index 100%rename from plugins/model-apps/samples/4-account-crud-dataverse.tsxrename to plugins/model-apps/samples/3-account-crud-dataverse.tsxdiff --git a/plugins/model-apps/samples/3-poa-revocation-wizard.tsx b/plugins/model-apps/samples/3-poa-revocation-wizard.tsxdeleted file mode 100644index ee56edfae..000000000--- a/plugins/model-apps/samples/3-poa-revocation-wizard.tsx+++ /dev/null@@ -1,327 +0,0 @@-import React, { useState, useRef } from "react";-import {- Button,- Text,- DataGrid,- DataGridHeader,- DataGridBody,- DataGridRow,- DataGridCell,- DataGridHeaderCell,- TableCellLayout,- createTableColumn,- RadioGroup,- Radio,- ProgressBar,- tokens,-} from "@fluentui/react-components";--// Mock data for POA records and accounts-const poaRecords = [- { id: "1", name: "John Doe POA", type: "General", createdDate: "2023-01-01" },- { id: "2", name: "Jane Smith POA", type: "Limited", createdDate: "2022-12-15" },-];--const accounts = [- { id: "1", accountName: "Checking Account", access: "Active" },- { id: "2", accountName: "Savings Account", access: "Active" },-];--// ** WizardContainer ** //-const GeneratedComponent = () => {- const [currentStep, setCurrentStep] = useState(0); // Tracks the current step- const [selectedPOARecord, setSelectedPOARecord] = useState<any>(null); // Stores selected POA record- const [uploadedFiles, setUploadedFiles] = useState<File[]>([]); // Stores uploaded files- const [selectedAccounts, setSelectedAccounts] = useState<string[]>([]); // Stores selected accounts- const [complianceConfirmation, setComplianceConfirmation] = useState<string>(""); // Stores compliance confirmation-- const steps = [- {- content: (- <SearchPOARecordStep- poaRecords={poaRecords}- selectedPOARecord={selectedPOARecord}- setSelectedPOARecord={setSelectedPOARecord}- />- ),- },- {- content: (- <DocumentationUploadStep- uploadedFiles={uploadedFiles}- setUploadedFiles={setUploadedFiles}- />- ),- },- {- content: (- <AccountAccessRemovalStep- accounts={accounts}- selectedAccounts={selectedAccounts}- setSelectedAccounts={setSelectedAccounts}- />- ),- },- {- content: (- <ComplianceReviewStep- complianceConfirmation={complianceConfirmation}- setComplianceConfirmation={setComplianceConfirmation}- />- ),- },- {- content: <ConfirmationStep />,- },- ];-- const totalSteps = steps.length;- const progress = (currentStep + 1) / totalSteps; // Calculate progress-- const handleNext = () => setCurrentStep((prevStep) => prevStep + 1);- const handleBack = () => setCurrentStep((prevStep) => prevStep - 1);-- return (- <div style={{ width: "100%", height: "100%", padding: "20px", boxSizing: "border-box", display: "flex", flexDirection: "column" }}>- {/* Progress bar */}- <ProgressBar value={progress} thickness="large" shape="rounded" style={{ marginBottom: "20px" }} />- {/* Wizard content */}- <div- style={{- flex: 1,- marginTop: "20px",- padding: "20px",- borderRadius: tokens.borderRadiusMedium,- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.1)",- overflowY: "auto"- }}- >- {steps[currentStep].content}- </div>- {/* Navigation buttons */}- <div style={{ marginTop: "20px", display: "flex", justifyContent: "space-between" }}>- <Button appearance="secondary" disabled={currentStep === 0} onClick={handleBack}>- Back- </Button>- {currentStep < steps.length - 1 ? (- <Button appearance="primary" onClick={handleNext}>- Next- </Button>- ) : null}- </div>- </div>- );-};--// ** SearchPOARecordStep ** //-const SearchPOARecordStep = ({- poaRecords,- selectedPOARecord,- setSelectedPOARecord,-}: {- poaRecords: any[];- selectedPOARecord: any;- setSelectedPOARecord: (record: any) => void;-}) => {- const columns = [- createTableColumn({- columnId: "name",- renderHeaderCell: () => "POA Name",- renderCell: (item) => <TableCellLayout>{item.name}</TableCellLayout>,- }),- createTableColumn({- columnId: "type",- renderHeaderCell: () => "Type",- renderCell: (item) => <TableCellLayout>{item.type}</TableCellLayout>,- }),- createTableColumn({- columnId: "createdDate",- renderHeaderCell: () => "Created Date",- renderCell: (item) => <TableCellLayout>{item.createdDate}</TableCellLayout>,- }),- ];- return (- <div style={{ display: 'flex', flexDirection: 'column' }}>- <Text size={400} block>- Select a POA record to revoke:- </Text>- <DataGrid- items={poaRecords}- columns={columns}- selectionMode="single"- aria-label="POA Records Table"- onRowClick={(e, data) => setSelectedPOARecord(data.item)}- >- <DataGridHeader>- <DataGridRow>- {({ renderHeaderCell }) => (- <DataGridHeaderCell>{renderHeaderCell()}</DataGridHeaderCell>- )}- </DataGridRow>- </DataGridHeader>- <DataGridBody>- {({ item }) => (- <DataGridRow key={item.id}>- {({ renderCell }) => <DataGridCell>{renderCell(item)}</DataGridCell>}- </DataGridRow>- )}- </DataGridBody>- </DataGrid>- </div>- );-};--// ** DocumentationUploadStep ** //-const DocumentationUploadStep = ({- uploadedFiles,- setUploadedFiles,-}: {- uploadedFiles: File[];- setUploadedFiles: (files: File[]) => void;-}) => {- const fileInputRef = useRef<HTMLInputElement>(null);-- const handleFileUpload = (event: React.ChangeEvent<HTMLInputElement>) => {- if (event.target.files) {- setUploadedFiles([...uploadedFiles, ...Array.from(event.target.files)]);- }- };-- const handleFileRemove = (fileName: string) => {- const updatedFiles = uploadedFiles.filter((file) => file.name !== fileName);- setUploadedFiles(updatedFiles);- };-- const handleButtonClick = () => {- fileInputRef.current?.click();- };-- return (- <div style={{ display: "flex", flexDirection: "column", gap: "20px" }}>- <Text size={400} block>- Upload revocation documentation:- </Text>- <div- style={{- padding: "10px",- border: "1px solid #ddd",- borderRadius: tokens.borderRadiusMedium,- backgroundColor: "#f9f9f9",- textAlign: "center",- }}- >- <input- type="file"- multiple- ref={fileInputRef}- onChange={handleFileUpload}- style={{ display: "none" }}- />- <Button appearance="primary" onClick={handleButtonClick}>- Upload Files- </Button>- </div>- {uploadedFiles.length > 0 && (- <div style={{ padding: "10px", border: "1px solid #ddd", borderRadius: tokens.borderRadiusMedium }}>- <Text size={400} weight="semibold" block>- Uploaded Files:- </Text>- {uploadedFiles.map((file, index) => (- <div key={index} style={{ display: "flex", justifyContent: "space-between", alignItems: "center" }}>- <Text size={300}>{file.name}</Text>- <Button appearance="subtle" onClick={() => handleFileRemove(file.name)} style={{ marginLeft: "10px" }}>- Remove- </Button>- </div>- ))}- </div>- )}- </div>- );-};--// ** AccountAccessRemovalStep ** //-const AccountAccessRemovalStep = ({- accounts,- selectedAccounts,- setSelectedAccounts,-}: {- accounts: any[];- selectedAccounts: string[];- setSelectedAccounts: (ids: string[]) => void;-}) => {- const columns = [- createTableColumn({- columnId: "accountName",- renderHeaderCell: () => "Account Name",- renderCell: (item) => <TableCellLayout>{item.accountName}</TableCellLayout>,- }),- createTableColumn({- columnId: "access",- renderHeaderCell: () => "Access",- renderCell: (item) => <TableCellLayout>{item.access}</TableCellLayout>,- }),- ];- return (- <div style={{ display: 'flex', flexDirection: 'column' }}>- <Text size={400} block>- Remove POA authority from designated accounts:- </Text>- <DataGrid- items={accounts}- columns={columns}- selectionMode="multiselect"- aria-label="Accounts Table"- onSelectionChange={(e, data) => setSelectedAccounts([...data.selectedItems] as string[])}- >- <DataGridHeader>- <DataGridRow>- {({ renderHeaderCell }) => (- <DataGridHeaderCell>{renderHeaderCell()}</DataGridHeaderCell>- )}- </DataGridRow>- </DataGridHeader>- <DataGridBody>- {({ item }) => (- <DataGridRow key={item.id}>- {({ renderCell }) => <DataGridCell>{renderCell(item)}</DataGridCell>}- </DataGridRow>- )}- </DataGridBody>- </DataGrid>- </div>- );-};--// ** ComplianceReviewStep ** //-const ComplianceReviewStep = ({- complianceConfirmation,- setComplianceConfirmation,-}: {- complianceConfirmation: string;- setComplianceConfirmation: (val: string) => void;-}) => (- <div style={{ display: 'flex', flexDirection: 'column' }}>- <Text size={400} block>- Confirm compliance with legal requirements:- </Text>- <RadioGroup- value={complianceConfirmation}- onChange={(e, data) => setComplianceConfirmation(data.value)}- >- <Radio value="yes" label="Yes" />- <Radio value="no" label="No" />- </RadioGroup>- </div>-);--// ** ConfirmationStep ** //-const ConfirmationStep = () => (- <div style={{ display: 'flex', flexDirection: 'column' }}>- <Text size={400} block>- Revocation complete! Notifications sent and audit logs updated.- </Text>- </div>-);--export default GeneratedComponent;diff --git a/plugins/model-apps/samples/5-file-upload.tsx b/plugins/model-apps/samples/4-file-upload.tsxsimilarity index 100%rename from plugins/model-apps/samples/5-file-upload.tsxrename to plugins/model-apps/samples/4-file-upload.tsxdiff --git a/plugins/model-apps/samples/6-navigation-sidebar.tsx b/plugins/model-apps/samples/5-navigation-sidebar.tsxsimilarity index 100%rename from plugins/model-apps/samples/6-navigation-sidebar.tsxrename to plugins/model-apps/samples/5-navigation-sidebar.tsxdiff --git a/plugins/model-apps/samples/7-comprehensive-form.tsx b/plugins/model-apps/samples/6-comprehensive-form.tsxsimilarity index 100%rename from plugins/model-apps/samples/7-comprehensive-form.tsxrename to plugins/model-apps/samples/6-comprehensive-form.tsxdiff --git a/plugins/model-apps/samples/8-responsive-cards.tsx b/plugins/model-apps/samples/7-responsive-cards.tsxsimilarity index 100%rename from plugins/model-apps/samples/8-responsive-cards.tsxrename to plugins/model-apps/samples/7-responsive-cards.tsxdiff --git a/plugins/model-apps/samples/8-dashboard-with-charts.tsx b/plugins/model-apps/samples/8-dashboard-with-charts.tsxnew file mode 100644index 000000000..e1bc18dec--- /dev/null+++ b/plugins/model-apps/samples/8-dashboard-with-charts.tsx@@ -0,0 +1,335 @@+import React, { useEffect, useRef } from 'react';+import {+ makeStyles,+ tokens,+ Text,+ Card,+ CardHeader,+} from '@fluentui/react-components';+import {+ ArrowTrendingRegular,+ PeopleRegular,+ ShoppingBagRegular,+} from '@fluentui/react-icons';+import * as d3 from 'd3';++// Sample: dashboard layout with KPI summary cards + two D3 charts.+// Demonstrates:+// - Rule 9: unsized icons (ArrowTrendingRegular, not ArrowTrending24Regular)+// - Rule 11: no <FluentProvider> wrapper; no createTheme/mergeThemes+// - makeStyles with tokens (no inline styles for static values)+// - D3 animation guard: window flag prevents replay on remount/re-eval+// - Realistic mock data (not "Test1" / "Lorem ipsum")+// - Responsive flex layout (no 100vh/100vw)+// - Top-level components, no nesting++// ---------- Mock data ----------++interface MonthRevenue { month: string; revenue: number; }+interface Segment { name: string; value: number; }++const revenueByMonth: MonthRevenue[] = [+ { month: 'Jan', revenue: 482000 },+ { month: 'Feb', revenue: 511000 },+ { month: 'Mar', revenue: 545000 },+ { month: 'Apr', revenue: 612000 },+ { month: 'May', revenue: 598000 },+ { month: 'Jun', revenue: 671000 },+ { month: 'Jul', revenue: 724000 },+ { month: 'Aug', revenue: 758000 },+];++const customerSegments: Segment[] = [+ { name: 'Enterprise', value: 42 },+ { name: 'Mid-market', value: 28 },+ { name: 'SMB', value: 19 },+ { name: 'Self-service', value: 11 },+];++// Quarter-over-quarter KPI snapshot+const kpis = {+ revenue: { value: 4901000, deltaPct: 12.4 },+ customers: { value: 1284, deltaPct: 8.1 },+ avgOrder: { value: 3818, deltaPct: -2.3 },+};++// ---------- Styles ----------++const useStyles = makeStyles({+ root: {+ display: 'flex',+ flexDirection: 'column',+ gap: tokens.spacingVerticalL,+ padding: tokens.spacingHorizontalXL,+ width: '100%',+ boxSizing: 'border-box',+ },+ pageTitle: { marginBottom: tokens.spacingVerticalS },+ kpiRow: {+ display: 'flex',+ flexWrap: 'wrap',+ gap: tokens.spacingHorizontalL,+ },+ kpiCard: {+ flex: '1 1 240px',+ padding: tokens.spacingHorizontalL,+ display: 'flex',+ flexDirection: 'column',+ gap: tokens.spacingVerticalXS,+ },+ kpiLabel: { color: tokens.colorNeutralForeground2 },+ kpiValue: { fontSize: tokens.fontSizeHero900, fontWeight: tokens.fontWeightSemibold },+ kpiDelta: { fontSize: tokens.fontSizeBase300 },+ deltaPositive: { color: tokens.colorPaletteGreenForeground1 },+ deltaNegative: { color: tokens.colorPaletteRedForeground1 },+ chartsRow: {+ display: 'flex',+ flexWrap: 'wrap',+ gap: tokens.spacingHorizontalL,+ },+ chartCard: { flex: '1 1 360px', minHeight: '300px' },+ chartSvg: { width: '100%', height: '260px' },+});++// ---------- Formatting helpers ----------++function formatCurrency(value: number): string {+ if (value >= 1_000_000) return `$${(value / 1_000_000).toFixed(1)}M`;+ if (value >= 1_000) return `$${(value / 1_000).toFixed(0)}K`;+ return `$${value}`;+}++function formatNumber(value: number): string {+ return new Intl.NumberFormat('en-US').format(value);+}++function formatDelta(deltaPct: number): string {+ const sign = deltaPct >= 0 ? '+' : '';+ return `${sign}${deltaPct.toFixed(1)}% QoQ`;+}++// ---------- KPI card ----------++interface KpiCardProps {+ icon: React.ReactNode;+ label: string;+ value: string;+ deltaPct: number;+}++const KpiCard = (props: KpiCardProps) => {+ const styles = useStyles();+ const deltaClass = props.deltaPct >= 0 ? styles.deltaPositive : styles.deltaNegative;+ return (+ <Card className={styles.kpiCard} aria-label={`${props.label}: ${props.value}, ${formatDelta(props.deltaPct)}`}>+ <CardHeader image={props.icon} header={<Text className={styles.kpiLabel}>{props.label}</Text>} />+ <Text className={styles.kpiValue}>{props.value}</Text>+ <Text className={`${styles.kpiDelta} ${deltaClass}`}>{formatDelta(props.deltaPct)}</Text>+ </Card>+ );+};++// ---------- Revenue trend chart (area) ----------++const REVENUE_ANIM_KEY = '__ppDashboardRevenueAnimated';++const RevenueTrendChart = () => {+ const styles = useStyles();+ const svgRef = useRef<SVGSVGElement>(null);++ useEffect(() => {+ const node = svgRef.current;+ if (!node) return;+ const svg = d3.select(node);+ const w = window as unknown as Record<string, boolean>;++ // Animation guard — skip entirely if already drawn (rule from rules.md Charts)+ if (w[REVENUE_ANIM_KEY] && svg.selectAll('path.revenue-area').size() > 0) return;+ const shouldAnimate = !w[REVENUE_ANIM_KEY];+ w[REVENUE_ANIM_KEY] = true;++ svg.selectAll('*').remove();++ const rect = node.getBoundingClientRect();+ const width = rect.width || 400;+ const height = rect.height || 260;+ const margin = { top: 16, right: 16, bottom: 28, left: 56 };+ const innerW = width - margin.left - margin.right;+ const innerH = height - margin.top - margin.bottom;++ const g = svg.append('g').attr('transform', `translate(${margin.left},${margin.top})`);++ const x = d3.scalePoint<string>().domain(revenueByMonth.map(d => d.month)).range([0, innerW]);+ const y = d3.scaleLinear()+ .domain([0, (d3.max(revenueByMonth, d => d.revenue) ?? 0) * 1.1])+ .range([innerH, 0]);++ g.append('g')+ .attr('transform', `translate(0,${innerH})`)+ .call(d3.axisBottom(x))+ .attr('color', tokens.colorNeutralForeground2);+ g.append('g')+ .call(d3.axisLeft(y).ticks(4).tickFormat(d => formatCurrency(d as number)))+ .attr('color', tokens.colorNeutralForeground2);++ const areaGen = d3.area<MonthRevenue>()+ .x(d => x(d.month) ?? 0)+ .y0(innerH)+ .y1(d => y(d.revenue))+ .curve(d3.curveMonotoneX);++ const lineGen = d3.line<MonthRevenue>()+ .x(d => x(d.month) ?? 0)+ .y(d => y(d.revenue))+ .curve(d3.curveMonotoneX);++ const area = g.append('path')+ .datum(revenueByMonth)+ .attr('class', 'revenue-area')+ .attr('fill', tokens.colorBrandBackground2)+ .attr('d', areaGen);++ const line = g.append('path')+ .datum(revenueByMonth)+ .attr('fill', 'none')+ .attr('stroke', tokens.colorBrandStroke1)+ .attr('stroke-width', 2)+ .attr('d', lineGen);++ if (shouldAnimate) {+ area.attr('opacity', 0).transition().duration(700).attr('opacity', 1);+ const totalLen = (line.node() as SVGPathElement).getTotalLength();+ line.attr('stroke-dasharray', `${totalLen} ${totalLen}`)+ .attr('stroke-dashoffset', totalLen)+ .transition()+ .duration(900)+ .attr('stroke-dashoffset', 0);+ }+ }, []);++ return <svg ref={svgRef} className={styles.chartSvg} role="img" aria-label="Revenue trend by month" />;+};++// ---------- Customer segments chart (donut) ----------++const SEGMENTS_ANIM_KEY = '__ppDashboardSegmentsAnimated';++const CustomerSegmentsChart = () => {+ const styles = useStyles();+ const svgRef = useRef<SVGSVGElement>(null);++ useEffect(() => {+ const node = svgRef.current;+ if (!node) return;+ const svg = d3.select(node);+ const w = window as unknown as Record<string, boolean>;+ if (w[SEGMENTS_ANIM_KEY] && svg.selectAll('path.arc').size() > 0) return;+ const shouldAnimate = !w[SEGMENTS_ANIM_KEY];+ w[SEGMENTS_ANIM_KEY] = true;++ svg.selectAll('*').remove();+ const rect = node.getBoundingClientRect();+ const width = rect.width || 400;+ const height = rect.height || 260;+ const radius = Math.min(width, height) / 2 - 8;++ const g = svg.append('g').attr('transform', `translate(${width / 2},${height / 2})`);++ const palette = [+ tokens.colorBrandBackground,+ tokens.colorPaletteBlueBorderActive,+ tokens.colorPalettePurpleBorderActive,+ tokens.colorPaletteTealBorderActive,+ ];++ const pie = d3.pie<Segment>().value(d => d.value).sort(null);+ const arc = d3.arc<d3.PieArcDatum<Segment>>().innerRadius(radius * 0.55).outerRadius(radius);++ const arcs = g.selectAll('path.arc')+ .data(pie(customerSegments))+ .enter()+ .append('path')+ .attr('class', 'arc')+ .attr('fill', (_, i) => palette[i % palette.length])+ .attr('stroke', tokens.colorNeutralBackground1)+ .attr('stroke-width', 2);++ if (shouldAnimate) {+ arcs.transition()+ .duration(800)+ .attrTween('d', function (d) {+ const i = d3.interpolate({ ...d, endAngle: d.startAngle }, d);+ return (t) => arc(i(t)) ?? '';+ });+ } else {+ arcs.attr('d', arc);+ }++ // Labels (segment name + percentage)+ const total = d3.sum(customerSegments, d => d.value);+ g.selectAll('text.segment-label')+ .data(pie(customerSegments))+ .enter()+ .append('text')+ .attr('class', 'segment-label')+ .attr('transform', d => `translate(${arc.centroid(d)})`)+ .attr('text-anchor', 'middle')+ .attr('fill', tokens.colorNeutralForegroundOnBrand)+ .attr('font-size', '12px')+ .attr('font-weight', 600)+ .text(d => `${d.data.name} ${Math.round((d.data.value / total) * 100)}%`);+ }, []);++ return <svg ref={svgRef} className={styles.chartSvg} role="img" aria-label="Customer segments distribution" />;+};++// ---------- Main component ----------++const GeneratedComponent = (props: { dataApi?: unknown; pageInput?: { data?: Record<string, unknown> } }) => {+ const { pageInput } = props;+ // pageInput is destructured per rules but unused on a mock dashboard.+ void pageInput;+ const styles = useStyles();++ return (+ <div className={styles.root}>+ <Text as="h1" size={700} weight="semibold" className={styles.pageTitle}>+ Sales Dashboard+ </Text>++ <section className={styles.kpiRow} aria-label="Key performance indicators">+ <KpiCard+ icon={<ArrowTrendingRegular />}+ label="Revenue (YTD)"+ value={formatCurrency(kpis.revenue.value)}+ deltaPct={kpis.revenue.deltaPct}+ />+ <KpiCard+ icon={<PeopleRegular />}+ label="Active customers"+ value={formatNumber(kpis.customers.value)}+ deltaPct={kpis.customers.deltaPct}+ />+ <KpiCard+ icon={<ShoppingBagRegular />}+ label="Avg order"+ value={formatCurrency(kpis.avgOrder.value)}+ deltaPct={kpis.avgOrder.deltaPct}+ />+ </section>++ <section className={styles.chartsRow} aria-label="Detailed metrics">+ <Card className={styles.chartCard}>+ <CardHeader header={<Text weight="semibold">Revenue trend</Text>} description="Monthly recurring revenue, last 8 months" />+ <RevenueTrendChart />+ </Card>+ <Card className={styles.chartCard}>+ <CardHeader header={<Text weight="semibold">Customer segments</Text>} description="Active customers by tier" />+ <CustomerSegmentsChart />+ </Card>+ </section>+ </div>+ );+};++export default GeneratedComponent;diff --git a/plugins/model-apps/samples/9-data-caching.tsx b/plugins/model-apps/samples/9-data-caching.tsxdeleted file mode 100644index 203e77aa4..000000000--- a/plugins/model-apps/samples/9-data-caching.tsx+++ /dev/null@@ -1,83 +0,0 @@-/**- * Data Caching Across Navigations- *- * The genpage platform re-evaluates the module script on every navigation,- * resetting module-level variables. These patterns persist data on `window`- * so return visits render instantly without a loading spinner.- *- * Naming convention: window.__pp<EntityName>Cache to avoid collisions.- * Always use a single batched state object ({ records, loading, error })- * to avoid intermediate renders in React 17.- */--// =============================================================================-// 1. LIST PAGE — array cache-// =============================================================================-// Use when a page shows a list/grid of records and the user may navigate-// away (e.g., to a detail page) and return.--// Module-level: read from window on eval (survives navigation)-let _recordsCache: MyRow[] | null = (window as any).__ppMyEntityCache ?? null;--// In component:-const [{ records, loading, error }, setData] = useState<{- records: MyRow[];- loading: boolean;- error: string | null;-}>({ records: _recordsCache ?? [], loading: _recordsCache === null, error: null });--useEffect(() => {- if (!dataApi) { setData(prev => ({ ...prev, loading: false })); return; }- if (_recordsCache !== null) return; // already cached — skip fetch, no spinner- (async () => {- try {- const result = await dataApi.queryTable("myentity", { select: [...] });- _recordsCache = result.rows;- (window as any).__ppMyEntityCache = result.rows; // persist through navigation- setData({ records: result.rows, loading: false, error: null });- } catch (err) {- if (_recordsCache === null) {- setData({ records: [], loading: false, error: "Unable to load records." });- }- }- })();-}, [dataApi]);---// =============================================================================-// 2. DETAIL PAGE — per-record Map cache-// =============================================================================-// Use when a page receives a recordId via pageInput and displays a single-// record. The Map keyed by recordId caches multiple detail views.--// Module-level: IIFE re-attaches to the existing window Map on module re-eval-const _detailCache: Map<string, MyRow> = (() => {- if (!(window as any).__ppMyEntityDetailCache) {- (window as any).__ppMyEntityDetailCache = new Map<string, MyRow>();- }- return (window as any).__ppMyEntityDetailCache;-})();--// In component:-const recordId = pageInput?.recordId;-const cachedRecord = recordId ? (_detailCache.get(recordId) ?? null) : null;--const [{ record, loading, error }, setData] = useState({- record: cachedRecord, loading: !!recordId && cachedRecord === null, error: null as string | null,-});--useEffect(() => {- if (!dataApi || !recordId) return;- if (_detailCache.has(recordId)) return; // cached — no spinner- (async () => {- try {- const row = await dataApi.retrieveRow("myentity", { id: recordId, select: [...] });- _detailCache.set(recordId, row);- setData({ record: row, loading: false, error: null });- } catch (err) {- if (!_detailCache.has(recordId)) {- setData({ record: null, loading: false, error: "Unable to load record." });- }- }- })();-}, [dataApi, recordId]);diff --git a/plugins/model-apps/samples/9-list-with-caching.tsx b/plugins/model-apps/samples/9-list-with-caching.tsxnew file mode 100644index 000000000..cb91e9640--- /dev/null+++ b/plugins/model-apps/samples/9-list-with-caching.tsx@@ -0,0 +1,240 @@+import { useEffect, useState } from 'react';+import type {+ TableRow,+ ReadableTableRow,+ GeneratedComponentProps,+} from './RuntimeTypes';+import {+ makeStyles,+ tokens,+ Text,+ Spinner,+ Button,+ DataGrid,+ DataGridHeader,+ DataGridHeaderCell,+ DataGridBody,+ DataGridRow,+ DataGridCell,+ TableCellLayout,+ createTableColumn,+ SearchBox,+} from '@fluentui/react-components';+import { SearchRegular } from '@fluentui/react-icons';++// Sample: list page with data caching (Rule 15).+// Demonstrates:+// - Rule 14: SINGLE batched setData({records, loading, error}) — no separate setState+// - Rule 15: window cache + inline async IIFE + cache guard+// - No useCallback for dataApi (it gets a new ref each render — would re-fire)+// - Cross-page navigation via Xrm.Navigation.navigateTo to a sibling generative page+// - PAGEREF_ placeholder for the detail page (multi-page-build pattern)+// - DataGrid with createTableColumn + columnSizingOptions++type ContactRow = TableRow<{+ readonly contactid: string;+ fullname?: string;+ emailaddress1?: string;+ telephone1?: string;+ jobtitle?: string;+}>;++type ReadableContact = ReadableTableRow<ContactRow>;++// ---------- Module-level cache ----------+// Initialise from window so the data survives module re-evaluation on+// back-navigation. Cache key = entity logical name. The window object persists+// for the browser session; module-level `let` does not.+const CACHE_KEY = '__ppContactListCache';+const winAny = window as unknown as Record<string, ReadableContact[] | undefined>;+let cache: ReadableContact[] | null = winAny[CACHE_KEY] ?? null;++// ---------- Styles ----------++const useStyles = makeStyles({+ root: {+ display: 'flex',+ flexDirection: 'column',+ gap: tokens.spacingVerticalM,+ padding: tokens.spacingHorizontalXL,+ width: '100%',+ boxSizing: 'border-box',+ },+ header: {+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'space-between',+ gap: tokens.spacingHorizontalM,+ },+ spinnerWrap: {+ display: 'flex',+ justifyContent: 'center',+ padding: tokens.spacingVerticalXXL,+ },+ errorBanner: {+ padding: tokens.spacingHorizontalM,+ backgroundColor: tokens.colorStatusDangerBackground2,+ color: tokens.colorStatusDangerForeground2,+ borderRadius: tokens.borderRadiusMedium,+ },+});++// ---------- Component ----------++const GeneratedComponent = (props: GeneratedComponentProps) => {+ const { dataApi, pageInput } = props;+ void pageInput; // list page doesn't take input; destructure anyway per rules+ const styles = useStyles();++ const [data, setData] = useState<{ records: ReadableContact[]; loading: boolean; error: string | null }>(+ () => ({+ records: cache ?? [],+ loading: cache === null,+ error: null,+ }),+ );+ const [search, setSearch] = useState('');++ useEffect(() => {+ // Cache guard — already loaded, skip fetch entirely.+ if (cache !== null) return;++ // Inline async IIFE — no useCallback. dataApi gets a new object ref each+ // render, so a useCallback would recreate and re-fire this effect.+ (async () => {+ try {+ const result = await dataApi.queryTable('contact', {+ select: ['contactid', 'fullname', 'emailaddress1', 'telephone1', 'jobtitle'],+ orderBy: 'fullname asc',+ pageSize: 100,+ });+ cache = result.rows as ReadableContact[];+ winAny[CACHE_KEY] = cache;+ setData({ records: cache, loading: false, error: null });+ } catch (err) {+ const message = err instanceof Error ? err.message : 'Failed to load contacts.';+ setData({ records: [], loading: false, error: message });+ }+ })();+ }, [dataApi]);++ const filtered = data.records.filter((c) => {+ if (!search) return true;+ const term = search.toLowerCase();+ return (+ (c.fullname?.toLowerCase().includes(term) ?? false) ||+ (c.emailaddress1?.toLowerCase().includes(term) ?? false) ||+ (c.jobtitle?.toLowerCase().includes(term) ?? false)+ );+ });++ const columns = [+ createTableColumn<ReadableContact>({+ columnId: 'fullname',+ renderHeaderCell: () => 'Name',+ renderCell: (item) => <TableCellLayout>{item.fullname ?? '—'}</TableCellLayout>,+ }),+ createTableColumn<ReadableContact>({+ columnId: 'jobtitle',+ renderHeaderCell: () => 'Title',+ renderCell: (item) => <TableCellLayout>{item.jobtitle ?? '—'}</TableCellLayout>,+ }),+ createTableColumn<ReadableContact>({+ columnId: 'email',+ renderHeaderCell: () => 'Email',+ renderCell: (item) => <TableCellLayout>{item.emailaddress1 ?? '—'}</TableCellLayout>,+ }),+ createTableColumn<ReadableContact>({+ columnId: 'phone',+ renderHeaderCell: () => 'Phone',+ renderCell: (item) => <TableCellLayout>{item.telephone1 ?? '—'}</TableCellLayout>,+ }),+ ];++ const openDetail = (contactId: string) => {+ const xrm = (window as unknown as { Xrm?: { Navigation?: { navigateTo: (opts: unknown) => unknown } } }).Xrm;+ // Navigate to the sibling detail page. In a multi-page build the+ // pageId starts as a "PAGEREF_<filename>" placeholder; the skill's+ // Phase 6.5 fix-up substitutes the real GUID after first upload.+ // Custom IDs go in `data`, NOT `recordId` — `recordId` is reserved+ // for OOB record context and may not arrive reliably.+ xrm?.Navigation?.navigateTo({+ pageType: 'generative',+ pageId: 'PAGEREF_10-detail-with-pageinput',+ entityName: 'contact',+ recordId: contactId,+ });+ };++ if (data.loading) {+ return (+ <div className={styles.root}>+ <div className={styles.spinnerWrap}>+ <Spinner labelPosition="below" label="Loading contacts…" />+ </div>+ </div>+ );+ }++ return (+ <div className={styles.root}>+ <header className={styles.header}>+ <Text as="h1" size={700} weight="semibold">+ Contacts+ </Text>+ <SearchBox+ placeholder="Search by name, email, title"+ value={search}+ onChange={(_, d) => setSearch(d.value ?? '')}+ contentBefore={<SearchRegular />}+ aria-label="Search contacts"+ />+ </header>++ {data.error && (+ <div role="alert" className={styles.errorBanner}>+ {data.error}+ </div>+ )}++ <DataGrid+ items={filtered}+ columns={columns}+ getRowId={(row) => row.contactid}+ resizableColumns+ columnSizingOptions={{+ fullname: { idealWidth: 220, minWidth: 160 },+ jobtitle: { idealWidth: 200, minWidth: 140 },+ email: { idealWidth: 240, minWidth: 180 },+ phone: { idealWidth: 160, minWidth: 120 },+ }}+ aria-label="Contacts list"+ >+ <DataGridHeader>+ <DataGridRow>+ {({ renderHeaderCell }) => <DataGridHeaderCell>{renderHeaderCell()}</DataGridHeaderCell>}+ </DataGridRow>+ </DataGridHeader>+ <DataGridBody<ReadableContact>>+ {({ item }) => (+ <DataGridRow<ReadableContact> key={item.contactid}>+ {({ renderCell, columnId }) =>+ columnId === 'fullname' ? (+ <DataGridCell>+ <Button appearance="transparent" onClick={() => openDetail(item.contactid)}>+ {item.fullname ?? '—'}+ </Button>+ </DataGridCell>+ ) : (+ <DataGridCell>{renderCell(item)}</DataGridCell>+ )+ }+ </DataGridRow>+ )}+ </DataGridBody>+ </DataGrid>+ </div>+ );+};++export default GeneratedComponent;diff --git a/plugins/model-apps/scripts/add-column.js b/plugins/model-apps/scripts/add-column.jsnew file mode 100644index 000000000..b9d6940c0--- /dev/null+++ b/plugins/model-apps/scripts/add-column.js@@ -0,0 +1,222 @@+#!/usr/bin/env node++// Adds a column (attribute) to an existing Dataverse table via Web API.+// Lookups go through create-relationship.js, not this script.+//+// Usage:+// node add-column.js <envUrl> <tableLogicalName> <schemaName> <displayName> <type> [options]+//+// type:+// string — [--max-length 100] [--format Text|Email|Url|Phone|TickerSymbol]+// memo — [--max-length 2000] [--format TextArea|RichText|Email|Url|Phone]+// integer — [--min -2147483648] [--max 2147483647] [--format None|Duration|TimeZone|Language]+// decimal — [--min ...] [--max ...] [--precision 2]+// money — [--min 0] [--max 1000000000000] [--precision 2]+// datetime — [--format DateOnly|DateAndTime] [--behavior UserLocal|DateOnly|TimeZoneIndependent]+// boolean — [--true-label "Yes"] [--false-label "No"] [--default true|false]+// picklist — --options '[{"value":100000000,"label":"Active"}, ...]' (or @options.json)+//+// Common options:+// [--description <text>] [--required-level None|Recommended|ApplicationRequired]+// [--solution <uniqueName>]+//+// Output: { "ok": true, "logicalName": "...", "schemaName": "...", "metadataId": "..." }++const {+ dataverseRequest,+ ensureOk,+ label,+ requiredLevel,+ parseArgs,+ readJsonArg,+ emitResult,+} = require('./lib/dataverse-auth');++function commonFields(schemaName, displayName, flags) {+ return {+ SchemaName: schemaName,+ DisplayName: label(displayName),+ Description: label(flags.description || displayName),+ RequiredLevel: requiredLevel(flags['required-level'] || 'None'),+ };+}++/**+ * Coerces a flag value to a finite number, or throws a useful error.+ * Catches the case where parseArgs treated the next token as boolean=true+ * because it started with --, leaving the user's intended numeric flag with+ * value `true` → Number(true) === 1 silently.+ */+function numericFlag(name, value, fallback) {+ if (value === undefined) return fallback;+ if (value === true || value === false) {+ throw new Error(`--${name} requires a numeric value (got a flag with no argument — check that the next token isn't another --flag)`);+ }+ const n = Number(value);+ if (!Number.isFinite(n)) {+ throw new Error(`--${name} must be a finite number (got "${value}")`);+ }+ return n;+}++function buildAttribute(type, schemaName, displayName, flags) {+ const common = commonFields(schemaName, displayName, flags);++ switch (type) {+ case 'string':+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.StringAttributeMetadata',+ AttributeType: 'String',+ AttributeTypeName: { Value: 'StringType' },+ MaxLength: numericFlag('max-length', flags['max-length'], 100),+ FormatName: { Value: flags.format || 'Text' },+ ...common,+ };+ case 'memo':+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.MemoAttributeMetadata',+ AttributeType: 'Memo',+ AttributeTypeName: { Value: 'MemoType' },+ MaxLength: numericFlag('max-length', flags['max-length'], 2000),+ Format: flags.format || 'TextArea',+ ...common,+ };+ case 'integer':+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.IntegerAttributeMetadata',+ AttributeType: 'Integer',+ AttributeTypeName: { Value: 'IntegerType' },+ Format: flags.format || 'None',+ MinValue: numericFlag('min', flags.min, -2147483648),+ MaxValue: numericFlag('max', flags.max, 2147483647),+ ...common,+ };+ case 'decimal':+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.DecimalAttributeMetadata',+ AttributeType: 'Decimal',+ AttributeTypeName: { Value: 'DecimalType' },+ Precision: numericFlag('precision', flags.precision, 2),+ MinValue: numericFlag('min', flags.min, -100000000000),+ MaxValue: numericFlag('max', flags.max, 100000000000),+ ...common,+ };+ case 'money':+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.MoneyAttributeMetadata',+ AttributeType: 'Money',+ AttributeTypeName: { Value: 'MoneyType' },+ PrecisionSource: 2,+ MinValue: numericFlag('min', flags.min, 0),+ MaxValue: numericFlag('max', flags.max, 1000000000000),+ ...common,+ };+ case 'datetime':+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.DateTimeAttributeMetadata',+ AttributeType: 'DateTime',+ AttributeTypeName: { Value: 'DateTimeType' },+ Format: flags.format || 'DateAndTime',+ DateTimeBehavior: { Value: flags.behavior || 'UserLocal' },+ ...common,+ };+ case 'boolean': {+ const defaultVal = flags.default === 'true';+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.BooleanAttributeMetadata',+ AttributeType: 'Boolean',+ AttributeTypeName: { Value: 'BooleanType' },+ DefaultValue: defaultVal,+ OptionSet: {+ '@odata.type': 'Microsoft.Dynamics.CRM.BooleanOptionSetMetadata',+ TrueOption: {+ Value: 1,+ Label: label(flags['true-label'] || 'Yes'),+ },+ FalseOption: {+ Value: 0,+ Label: label(flags['false-label'] || 'No'),+ },+ },+ ...common,+ };+ }+ case 'picklist': {+ if (!flags.options) throw new Error('picklist requires --options <json|@path>');+ const optionsArr = readJsonArg(flags.options);+ if (!Array.isArray(optionsArr) || optionsArr.length === 0) {+ throw new Error('--options must be a non-empty JSON array of {value,label}');+ }+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.PicklistAttributeMetadata',+ AttributeType: 'Picklist',+ AttributeTypeName: { Value: 'PicklistType' },+ OptionSet: {+ '@odata.type': 'Microsoft.Dynamics.CRM.OptionSetMetadata',+ OptionSetType: 'Picklist',+ IsGlobal: false,+ Options: optionsArr.map((o) => ({+ Value: Number(o.value),+ Label: label(String(o.label)),+ })),+ },+ ...common,+ };+ }+ default:+ throw new Error(`Unsupported column type: ${type} (use create-relationship.js for lookups)`);+ }+}++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 5) {+ process.stderr.write(+ 'Usage: node add-column.js <envUrl> <tableLogicalName> <schemaName> <displayName> <type> [options]\n'+ );+ process.exit(1);+ }++ const [envUrl, tableLogicalName, schemaName, displayName, type] = positional;++ let attribute;+ try {+ attribute = buildAttribute(type, schemaName, displayName, flags);+ } catch (e) {+ emitResult(false, e);+ return;+ }++ try {+ const res = await dataverseRequest(+ envUrl,+ 'POST',+ `EntityDefinitions(LogicalName='${tableLogicalName}')/Attributes`,+ attribute,+ {+ includeHeaders: true,+ extraHeaders: flags.solution+ ? { 'MSCRM.SolutionUniqueName': String(flags.solution) }+ : {},+ }+ );+ ensureOk(res, `Add column ${schemaName} to ${tableLogicalName}`);++ const entityUrl = res.headers && (res.headers['odata-entityid'] || res.headers['OData-EntityId']);+ let metadataId = null;+ if (entityUrl) {+ const m = String(entityUrl).match(/\(([0-9a-f-]{36})\)/i);+ if (m) metadataId = m[1];+ }+ emitResult(true, {+ ok: true,+ schemaName,+ logicalName: schemaName.toLowerCase(),+ metadataId,+ });+ } catch (e) {+ emitResult(false, e);+ }+}++main();diff --git a/plugins/model-apps/scripts/add-to-solution.js b/plugins/model-apps/scripts/add-to-solution.jsnew file mode 100644index 000000000..9a4b5b46b--- /dev/null+++ b/plugins/model-apps/scripts/add-to-solution.js@@ -0,0 +1,64 @@+#!/usr/bin/env node++// Adds an existing Dataverse component (table, attribute, relationship, etc.)+// to a solution via the AddSolutionComponent Web API action.+//+// Usage:+// node add-to-solution.js <envUrl> <solutionUniqueName> <componentId> <componentType>+// [--add-required-components true|false] (default: false)+//+// componentType reference (common ones):+// 1 = Entity (table)+// 2 = Attribute (column)+// 9 = Entity Relationship (1:N / N:N)+// 10 = Entity Relationship Role+// 20 = Role+// 29 = Workflow+// 59 = Chart+// 60 = Form+// 61 = Web Resource+// 62 = Site Map+// 65 = Hierarchy Rule+// 80 = Model-driven App (appmodule)+//+// Output: { "ok": true }++const {+ dataverseRequest,+ ensureOk,+ parseArgs,+ emitResult,+} = require('./lib/dataverse-auth');++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 4) {+ process.stderr.write(+ 'Usage: node add-to-solution.js <envUrl> <solutionUniqueName> <componentId> <componentType> [--add-required-components true|false]\n'+ );+ process.exit(1);+ }+ const [envUrl, solutionUniqueName, componentId, componentTypeRaw] = positional;+ const componentType = Number(componentTypeRaw);+ if (!Number.isFinite(componentType)) {+ emitResult(false, new Error(`componentType must be a number, got "${componentTypeRaw}"`));+ return;+ }++ const body = {+ ComponentId: componentId,+ ComponentType: componentType,+ SolutionUniqueName: solutionUniqueName,+ AddRequiredComponents: flags['add-required-components'] === 'true',+ };++ try {+ const res = await dataverseRequest(envUrl, 'POST', 'AddSolutionComponent', body);+ ensureOk(res, `Add component ${componentId} (type ${componentType}) to solution ${solutionUniqueName}`);+ emitResult(true, { ok: true });+ } catch (e) {+ emitResult(false, e);+ }+}++main();diff --git a/plugins/model-apps/scripts/check-auth.js b/plugins/model-apps/scripts/check-auth.jsnew file mode 100644index 000000000..2c1e935bb--- /dev/null+++ b/plugins/model-apps/scripts/check-auth.js@@ -0,0 +1,200 @@+#!/usr/bin/env node++// Consolidated auth + connectivity pre-flight for the entity-creation flow.+// Runs every check the orchestrator needs in Phase 2a so the agent gets one+// structured result instead of stringing together shell commands.+//+// Usage:+// node check-auth.js [<envUrl>]+//+// If <envUrl> is omitted, the script tries to read it from `pac org who`.+//+// Output (stdout JSON, exit 0 even on auth failure — failures are in the fields):+// {+// "ok": true|false,+// "blocker": null | "az_missing" | "az_not_logged_in" | "pac_not_logged_in"+// | "no_env_url" | "whoami_403" | "whoami_401" | "whoami_error",+// "message": "human-readable next step",+// "azUser": "...",+// "pacUser": "...",+// "envUrl": "...",+// "identitiesMatch": true|false,+// "whoAmI": { "ok": true, "userId": "...", "organizationId": "..." }+// }+//+// Exit code 0 always (so callers can parse stdout). Use `ok` field to gate.++const { execFileSync } = require('child_process');+const { dataverseRequest } = require('./lib/dataverse-auth');++function runQuiet(cmd, args) {+ try {+ return execFileSync(cmd, args, {+ encoding: 'utf8',+ timeout: 15000,+ stdio: ['ignore', 'pipe', 'pipe'],+ shell: process.platform === 'win32',+ }).trim();+ } catch {+ return null;+ }+}++function emit(payload) {+ process.stdout.write(JSON.stringify(payload) + '\n');+ process.exit(0);+}++function buildResult(partial) {+ const base = {+ ok: false,+ blocker: null,+ message: '',+ azUser: null,+ pacUser: null,+ envUrl: null,+ identitiesMatch: false,+ whoAmI: null,+ };+ return Object.assign(base, partial);+}++function normalizeUser(u) {+ return (u || '').trim().toLowerCase();+}++async function main() {+ let envUrl = process.argv[2] || null;++ // 1) az presence + login+ const azVersion = runQuiet('az', ['--version']);+ if (azVersion == null) {+ return emit(+ buildResult({+ blocker: 'az_missing',+ message: 'Azure CLI (`az`) is not installed. Install it from https://aka.ms/azure-cli and run `az login`.',+ })+ );+ }+ const azUser = runQuiet('az', ['account', 'show', '--query', 'user.name', '-o', 'tsv']);+ if (!azUser) {+ return emit(+ buildResult({+ blocker: 'az_not_logged_in',+ message: 'Azure CLI is installed but not logged in. Run `az login` with the same identity as your active `pac auth` profile.',+ })+ );+ }++ // 2) pac user + env URL+ const pacOrg = runQuiet('pac', ['org', 'who']);+ let pacUser = null;+ if (pacOrg) {+ const m = pacOrg.match(/Connected as\s+([^\s\r\n]+)/i);+ if (m) pacUser = m[1];+ if (!envUrl) {+ const urlMatch = pacOrg.match(/Org URL:\s*(https:\/\/[^\s]+)/i);+ if (urlMatch) envUrl = urlMatch[1].replace(/\/+$/, '');+ }+ }+ if (!pacUser) {+ return emit(+ buildResult({+ azUser,+ envUrl,+ blocker: 'pac_not_logged_in',+ message: 'PAC CLI is not logged in. Run `pac auth create --environment <url>` to authenticate.',+ })+ );+ }+ if (!envUrl) {+ return emit(+ buildResult({+ azUser,+ pacUser,+ blocker: 'no_env_url',+ message: 'Could not determine the Dataverse environment URL. Pass it as the first argument or set the active pac profile to an env.',+ })+ );+ }++ const identitiesMatch = normalizeUser(azUser) === normalizeUser(pacUser);++ // 3) WhoAmI — authoritative test+ let whoRes;+ try {+ whoRes = await dataverseRequest(envUrl, 'GET', 'WhoAmI', null, { timeout: 30000 });+ } catch (e) {+ return emit(+ buildResult({+ azUser,+ pacUser,+ envUrl,+ identitiesMatch,+ blocker: 'whoami_error',+ message: `WhoAmI probe failed: ${e.message}`,+ })+ );+ }++ if (whoRes.status === 401) {+ return emit(+ buildResult({+ azUser,+ pacUser,+ envUrl,+ identitiesMatch,+ blocker: 'whoami_401',+ message: 'Dataverse rejected the token (401). Run `az login` again to refresh.',+ })+ );+ }+ if (whoRes.status === 403) {+ const hint = identitiesMatch+ ? `WhoAmI returned 403 even though az and pac identities match (${azUser}). The user may need to be added to the env directly.`+ : `WhoAmI returned 403. az is signed in as "${azUser}" but pac is using "${pacUser}". Run \`az login --username ${pacUser}\` so both clients use the same identity.`;+ return emit(+ buildResult({+ azUser,+ pacUser,+ envUrl,+ identitiesMatch,+ whoAmI: { ok: false, status: 403, message: whoRes.data?.error?.message || '' },+ blocker: 'whoami_403',+ message: hint,+ })+ );+ }+ if (whoRes.status < 200 || whoRes.status >= 300) {+ return emit(+ buildResult({+ azUser,+ pacUser,+ envUrl,+ identitiesMatch,+ whoAmI: { ok: false, status: whoRes.status, message: whoRes.data?.error?.message || '' },+ blocker: 'whoami_error',+ message: `WhoAmI returned unexpected status ${whoRes.status}.`,+ })+ );+ }++ return emit({+ ok: true,+ blocker: null,+ message: identitiesMatch+ ? `Ready (az + pac both signed in as ${azUser}, env ${envUrl}).`+ : `Ready, but az ("${azUser}") and pac ("${pacUser}") use different identities. WhoAmI passed so this works for now — but if entity creation later returns 403, run \`az login --username ${pacUser}\` to align them.`,+ azUser,+ pacUser,+ envUrl,+ identitiesMatch,+ whoAmI: {+ ok: true,+ userId: whoRes.data?.UserId,+ organizationId: whoRes.data?.OrganizationId,+ },+ });+}++main();diff --git a/plugins/model-apps/scripts/create-record.js b/plugins/model-apps/scripts/create-record.jsnew file mode 100644index 000000000..38e50ab02--- /dev/null+++ b/plugins/model-apps/scripts/create-record.js@@ -0,0 +1,186 @@+#!/usr/bin/env node++// Creates one or many records in a Dataverse table via Web API.+// Single record -> POST /<entitySet>+// Many records -> OData $batch (multipart/mixed); default 100 per batch, max 1000+//+// Usage:+// node create-record.js <envUrl> <entitySet> --body <json|@path>+// [--batch-size 100] (records per $batch, default 100, max 1000)+//+// <body> may be:+// - a single JSON object (one record)+// - a JSON array of objects (bulk — uses $batch)+//+// <entitySet> is the entity SET name (plural collection), e.g. "accounts", "cr69c_candidates".+// Use OData @odata.bind syntax for lookups:+// {"new_name":"X","[email protected]":"/accounts(GUID)"}+//+// Output (single): { "ok": true, "count": 1, "ids": ["<guid>"] }+// Output (bulk): { "ok": true, "count": N, "ids": [...], "errors": [{index, status, message}, ...] }+//+// Exit codes: 0 if all succeed, 1 if any error.++const {+ dataverseRequest,+ ensureOk,+ parseArgs,+ readJsonArg,+ emitResult,+ getAuthToken,+ makeRequest,+} = require('./lib/dataverse-auth');++function extractIdFromHeader(headers) {+ if (!headers) return null;+ const loc = headers['odata-entityid'] || headers['OData-EntityId'] || headers.location;+ if (!loc) return null;+ const m = String(loc).match(/\(([0-9a-f-]{36})\)/i);+ return m ? m[1] : null;+}++async function createSingle(envUrl, entitySet, record) {+ const res = await dataverseRequest(envUrl, 'POST', entitySet, record, { includeHeaders: true });+ ensureOk(res, `Create record in ${entitySet}`);+ return extractIdFromHeader(res.headers);+}++function parseBatchResponse(rawBody) {+ // Split into HTTP parts by the "HTTP/1.1 NNN ..." status line.+ // We don't try to parse multipart headers — Dataverse responses always include the+ // status line + headers + blank line + body for each part.+ const parts = rawBody.split(/HTTP\/1\.1 /).slice(1);+ return parts.map((part) => {+ const statusMatch = part.match(/^(\d{3})/);+ const status = statusMatch ? Number(statusMatch[1]) : 0;+ // Split header block from body at the first blank line+ const blank = part.indexOf('\r\n\r\n');+ const headers = blank >= 0 ? part.slice(0, blank) : part;+ const body = blank >= 0 ? part.slice(blank + 4) : '';+ // Strip trailing boundary markers+ const cleanBody = body.replace(/\r?\n--[^\r\n]+(--)?\r?\n?$/g, '').trim();+ return { status, headers, body: cleanBody };+ });+}++async function createBatch(envUrl, entitySet, records, batchSize = 100) {+ const cleanUrl = envUrl.replace(/\/+$/, '');+ const all = { ids: [], errors: [] };++ for (let chunkStart = 0; chunkStart < records.length; chunkStart += batchSize) {+ const chunk = records.slice(chunkStart, chunkStart + batchSize);+ const batchId = `batch_${Date.now()}_${chunkStart}`;+ const changesetId = `changeset_${Date.now()}_${chunkStart}`;++ const lines = [];+ lines.push(`--${batchId}`);+ lines.push(`Content-Type: multipart/mixed; boundary=${changesetId}`);+ lines.push('');++ chunk.forEach((record, idx) => {+ const contentId = chunkStart + idx + 1;+ lines.push(`--${changesetId}`);+ lines.push('Content-Type: application/http');+ lines.push('Content-Transfer-Encoding: binary');+ lines.push(`Content-ID: ${contentId}`);+ lines.push('');+ lines.push(`POST ${cleanUrl}/api/data/v9.2/${entitySet} HTTP/1.1`);+ lines.push('Content-Type: application/json; type=entry');+ lines.push('');+ lines.push(JSON.stringify(record));+ });++ lines.push(`--${changesetId}--`);+ lines.push(`--${batchId}--`);+ lines.push('');++ const body = lines.join('\r\n');++ let token = getAuthToken(cleanUrl);+ if (!token) throw new Error("Failed to get Azure CLI token. Run 'az login' first.");++ const res = await makeRequest({+ url: `${cleanUrl}/api/data/v9.2/$batch`,+ method: 'POST',+ headers: {+ Authorization: `Bearer ${token}`,+ Accept: 'application/json',+ 'OData-MaxVersion': '4.0',+ 'OData-Version': '4.0',+ 'Content-Type': `multipart/mixed; boundary=${batchId}`,+ },+ body,+ timeout: 120000,+ });++ if (res.error) throw new Error(`Batch failed: ${res.error}`);+ if (res.statusCode >= 400) {+ throw new Error(`Batch HTTP ${res.statusCode}: ${res.body.slice(0, 500)}`);+ }++ const parts = parseBatchResponse(res.body);+ parts.forEach((part, idx) => {+ if (part.status >= 200 && part.status < 300) {+ const locMatch = part.headers.match(/OData-EntityId:\s*([^\r\n]+)/i);+ const id = locMatch ? (locMatch[1].match(/\(([0-9a-f-]{36})\)/i) || [])[1] : null;+ if (id) all.ids.push(id);+ } else if (part.status > 0) {+ let msg = part.body;+ try { msg = JSON.parse(part.body).error.message; } catch { /* keep raw */ }+ all.errors.push({ index: chunkStart + idx, status: part.status, message: msg });+ }+ });+ }+ return all;+}++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 2 || flags.body === undefined) {+ process.stderr.write(+ 'Usage: node create-record.js <envUrl> <entitySet> --body <json|@path> [--batch-size 100]\n'+ );+ process.exit(1);+ }+ const [envUrl, entitySet] = positional;++ // Sanity-check entitySet — must be a plural entity collection name+ // (lowercase letters / digits / underscore, starting with a letter). This+ // prevents an accidental path-segment injection from a malformed input.+ if (!/^[a-z][a-z0-9_]+$/.test(entitySet)) {+ process.stderr.write(+ `<entitySet> must be a Dataverse collection name (lowercase letters, digits, underscores; e.g. "accounts", "cr69c_candidates"). Got "${entitySet}".\n`,+ );+ process.exit(1);+ }++ const parsed = readJsonArg(flags.body);+ const rawBatchSize = flags['batch-size'] === undefined ? 100 : Number(flags['batch-size']);+ if (!Number.isInteger(rawBatchSize) || rawBatchSize < 1 || rawBatchSize > 1000) {+ process.stderr.write(+ `--batch-size must be an integer in [1, 1000] (got "${flags['batch-size']}").\n`,+ );+ process.exit(1);+ }+ const batchSize = rawBatchSize;++ try {+ if (Array.isArray(parsed)) {+ const result = await createBatch(envUrl, entitySet, parsed, batchSize);+ const allOk = result.errors.length === 0;+ emitResult(allOk, {+ ok: allOk,+ count: result.ids.length,+ ids: result.ids,+ errors: result.errors,+ });+ } else {+ const id = await createSingle(envUrl, entitySet, parsed);+ emitResult(true, { ok: true, count: 1, ids: id ? [id] : [] });+ }+ } catch (e) {+ emitResult(false, e);+ }+}++main();diff --git a/plugins/model-apps/scripts/create-relationship.js b/plugins/model-apps/scripts/create-relationship.jsnew file mode 100644index 000000000..002db2b0d--- /dev/null+++ b/plugins/model-apps/scripts/create-relationship.js@@ -0,0 +1,155 @@+#!/usr/bin/env node++// Creates a Dataverse relationship via Web API.+// POST /RelationshipDefinitions with the full metadata payload+// - 1:N (lookup): @odata.type = OneToManyRelationshipMetadata + embedded Lookup attribute+// - N:N (many-to-many): @odata.type = ManyToManyRelationshipMetadata+//+// Usage (1:N / lookup):+// node create-relationship.js 1n <envUrl> <schemaName> <referencedTable> <referencingTable>+// <lookupSchemaName> <lookupDisplayName>+// [--lookup-required None|Recommended|ApplicationRequired] (default: None)+// [--cascade-delete Cascade|RemoveLink|Restrict|NoCascade] (default: RemoveLink)+// [--cascade-assign Cascade|NoCascade] (default: NoCascade)+// [--cascade-share Cascade|NoCascade] (default: NoCascade)+// [--cascade-unshare Cascade|NoCascade] (default: NoCascade)+// [--cascade-reparent Cascade|NoCascade] (default: NoCascade)+// [--solution <uniqueName>]+//+// Usage (N:N):+// node create-relationship.js nn <envUrl> <schemaName> <entity1> <entity2>+// [--intersect <name>] (default: <schemaName>)+// [--solution <uniqueName>]+//+// schemaName MUST include a publisher prefix (e.g. "cr69c_candidate_cr69c_skill").+//+// Output: { "ok": true, "kind": "1n"|"nn", "schemaName": "...", "metadataId": "..." }++const {+ dataverseRequest,+ ensureOk,+ label,+ requiredLevel,+ parseArgs,+ emitResult,+} = require('./lib/dataverse-auth');++// Relationships are created by POSTing the full metadata to /RelationshipDefinitions.+// For 1:N the body must include an embedded `Lookup` attribute (LookupAttributeMetadata)+// describing the lookup column that will be created on the referencing table.+function build1NPayload(args, flags) {+ const [schemaName, referencedTable, referencingTable, lookupSchemaName, lookupDisplayName] = args;+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.OneToManyRelationshipMetadata',+ SchemaName: schemaName,+ ReferencedEntity: referencedTable,+ ReferencingEntity: referencingTable,+ AssociatedMenuConfiguration: {+ Behavior: 'UseCollectionName',+ Group: 'Details',+ Label: label(lookupDisplayName),+ Order: 10000,+ },+ CascadeConfiguration: {+ Assign: flags['cascade-assign'] || 'NoCascade',+ Share: flags['cascade-share'] || 'NoCascade',+ Unshare: flags['cascade-unshare'] || 'NoCascade',+ Reparent: flags['cascade-reparent'] || 'NoCascade',+ Delete: flags['cascade-delete'] || 'RemoveLink',+ Merge: 'NoCascade',+ },+ Lookup: {+ '@odata.type': 'Microsoft.Dynamics.CRM.LookupAttributeMetadata',+ AttributeType: 'Lookup',+ AttributeTypeName: { Value: 'LookupType' },+ SchemaName: lookupSchemaName,+ DisplayName: label(lookupDisplayName),+ Description: label(`Lookup to ${referencedTable}`),+ RequiredLevel: requiredLevel(flags['lookup-required'] || 'None'),+ },+ };+}++function buildNNPayload(args, flags) {+ const [schemaName, entity1, entity2] = args;+ const intersectName = flags.intersect || schemaName.toLowerCase();+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.ManyToManyRelationshipMetadata',+ SchemaName: schemaName,+ Entity1LogicalName: entity1,+ Entity2LogicalName: entity2,+ Entity1AssociatedMenuConfiguration: {+ Behavior: 'UseCollectionName',+ Group: 'Details',+ Order: 10000,+ },+ Entity2AssociatedMenuConfiguration: {+ Behavior: 'UseCollectionName',+ Group: 'Details',+ Order: 10000,+ },+ IntersectEntityName: intersectName,+ };+}++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 2) {+ process.stderr.write(+ 'Usage:\n' ++ ' node create-relationship.js 1n <envUrl> <schemaName> <referencedTable> <referencingTable> <lookupSchemaName> <lookupDisplayName> [options]\n' ++ ' node create-relationship.js nn <envUrl> <schemaName> <entity1> <entity2> [options]\n'+ );+ process.exit(1);+ }+ const kind = positional[0];+ const envUrl = positional[1];+ const args = positional.slice(2);++ let body, schemaName;+ if (kind === '1n') {+ if (args.length < 5) {+ emitResult(false, new Error('1n requires: schemaName referencedTable referencingTable lookupSchemaName lookupDisplayName'));+ return;+ }+ body = build1NPayload(args, flags);+ schemaName = args[0];+ } else if (kind === 'nn') {+ if (args.length < 3) {+ emitResult(false, new Error('nn requires: schemaName entity1 entity2'));+ return;+ }+ body = buildNNPayload(args, flags);+ schemaName = args[0];+ } else {+ emitResult(false, new Error(`Unknown relationship kind: ${kind} (use "1n" or "nn")`));+ return;+ }++ try {+ const res = await dataverseRequest(envUrl, 'POST', 'RelationshipDefinitions', body, {+ includeHeaders: true,+ extraHeaders: flags.solution+ ? { 'MSCRM.SolutionUniqueName': String(flags.solution) }+ : {},+ });+ ensureOk(res, `Create ${kind} relationship ${schemaName}`);++ const entityUrl = res.headers && (res.headers['odata-entityid'] || res.headers['OData-EntityId']);+ let metadataId = null;+ if (entityUrl) {+ const m = String(entityUrl).match(/\(([0-9a-f-]{36})\)/i);+ if (m) metadataId = m[1];+ }+ emitResult(true, {+ ok: true,+ kind,+ schemaName,+ metadataId,+ });+ } catch (e) {+ emitResult(false, e);+ }+}++main();diff --git a/plugins/model-apps/scripts/create-solution.js b/plugins/model-apps/scripts/create-solution.jsnew file mode 100644index 000000000..37f113c27--- /dev/null+++ b/plugins/model-apps/scripts/create-solution.js@@ -0,0 +1,129 @@+#!/usr/bin/env node++// Creates a Dataverse solution via Web API.+// Solutions are containers for tables, columns, relationships, model-driven apps,+// and other customizations. Every new component lands in exactly one solution.+//+// Usage:+// node create-solution.js <envUrl> <uniqueName> <friendlyName>+// [--description <text>]+// [--version 1.0.0.0]+// [--publisher <uniqueName>] (default: env's Default Publisher)+//+// uniqueName must be alphanumeric (camelCase or PascalCase), starting with a letter.+// No hyphens, no spaces, no underscores at the start. Returns lower-case in API+// responses regardless of what you submit.+//+// Output: { "ok": true, "solutionId": "...", "uniqueName": "...", "publisherUniqueName": "...", "publisherPrefix": "..." }++const {+ dataverseRequest,+ ensureOk,+ parseArgs,+ emitResult,+} = require('./lib/dataverse-auth');++async function findPublisher(envUrl, uniqueName) {+ // Explicit publisher requested → resolve by uniquename.+ if (uniqueName) {+ const res = await dataverseRequest(+ envUrl,+ 'GET',+ `publishers?$select=publisherid,uniquename,customizationprefix&$filter=uniquename eq '${uniqueName.replace(/'/g, "''")}'&$top=1`,+ );+ ensureOk(res, `Lookup publisher '${uniqueName}'`);+ return res.data?.value?.[0] || null;+ }++ // No publisher specified → resolve the env's default publisher via the+ // organization record (authoritative; doesn't depend on friendly-name format+ // or env hostname). The organization table has exactly one row.+ try {+ const orgRes = await dataverseRequest(+ envUrl,+ 'GET',+ "organizations?$select=_defaultpublisherid_value&$top=1",+ );+ const defaultPublisherId = orgRes.data?.value?.[0]?._defaultpublisherid_value;+ if (defaultPublisherId) {+ const pubRes = await dataverseRequest(+ envUrl,+ 'GET',+ `publishers(${defaultPublisherId})?$select=publisherid,uniquename,customizationprefix`,+ );+ if (pubRes.status === 200 && pubRes.data?.publisherid) {+ return {+ publisherid: pubRes.data.publisherid,+ uniquename: pubRes.data.uniquename,+ customizationprefix: pubRes.data.customizationprefix,+ };+ }+ }+ } catch {+ // Fall through to the broad fallback below if the organization probe fails.+ }++ // Last-resort fallback — any non-readonly publisher. Used only if the+ // authoritative organization lookup above didn't return anything (rare).+ const fb = await dataverseRequest(+ envUrl,+ 'GET',+ "publishers?$select=publisherid,uniquename,customizationprefix&$filter=isreadonly eq false&$top=1",+ );+ return fb.data?.value?.[0] || null;+}++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 3) {+ process.stderr.write(+ 'Usage: node create-solution.js <envUrl> <uniqueName> <friendlyName> [--description <text>] [--version 1.0.0.0] [--publisher <uniqueName>]\n'+ );+ process.exit(1);+ }+ const [envUrl, uniqueName, friendlyName] = positional;++ if (!/^[A-Za-z][A-Za-z0-9_]*$/.test(uniqueName)) {+ emitResult(false, new Error(`uniqueName "${uniqueName}" must be alphanumeric (start with a letter, no spaces or hyphens)`));+ return;+ }++ try {+ const publisher = await findPublisher(envUrl, flags.publisher);+ if (!publisher) {+ emitResult(false, new Error('No publisher found in this environment. Specify --publisher <uniqueName>.'));+ return;+ }++ const body = {+ uniquename: uniqueName,+ friendlyname: friendlyName,+ description: flags.description || `${friendlyName} (created by /genpage)`,+ version: flags.version || '1.0.0.0',+ '[email protected]': `/publishers(${publisher.publisherid})`,+ };++ const res = await dataverseRequest(envUrl, 'POST', 'solutions', body, { includeHeaders: true });+ ensureOk(res, `Create solution ${uniqueName}`);++ const entityUrl = res.headers && (res.headers['odata-entityid'] || res.headers['OData-EntityId']);+ let solutionId = null;+ if (entityUrl) {+ const m = String(entityUrl).match(/\(([0-9a-f-]{36})\)/i);+ if (m) solutionId = m[1];+ }++ emitResult(true, {+ ok: true,+ solutionId,+ uniqueName,+ friendlyName,+ publisherUniqueName: publisher.uniquename,+ publisherPrefix: publisher.customizationprefix,+ });+ } catch (e) {+ emitResult(false, e);+ }+}++main();diff --git a/plugins/model-apps/scripts/create-table.js b/plugins/model-apps/scripts/create-table.jsnew file mode 100644index 000000000..47c324781--- /dev/null+++ b/plugins/model-apps/scripts/create-table.js@@ -0,0 +1,117 @@+#!/usr/bin/env node++// Creates a Dataverse custom table (entity) via Web API.+//+// Usage:+// node create-table.js <envUrl> <schemaName> <displayName> <displayCollectionName>+// [--description <text>]+// [--primary-name <"PrimaryNameDisplayLabel">] (default: "Name")+// [--primary-name-logical <new_name>] (default: <prefix>_name)+// [--primary-name-max-length <n>] (default: 100)+// [--ownership user|organization] (default: user)+// [--has-activities true|false] (default: false)+// [--has-notes true|false] (default: false)+// [--solution <uniqueName>] (assigns publisher/solution context)+//+// schemaName MUST include the publisher prefix and PascalCase suffix+// (e.g. "cr69c_Candidate"). The logical name is derived as lowercase.+//+// Output (stdout): { "ok": true, "logicalName": "...", "schemaName": "...", "metadataId": "..." }+// Exit codes: 0 success, 1 failure.++const {+ dataverseRequest,+ ensureOk,+ label,+ requiredLevel,+ parseArgs,+ emitResult,+} = require('./lib/dataverse-auth');++function buildPrimaryNameAttribute(prefix, options) {+ const logical = options['primary-name-logical'] || `${prefix}_name`;+ const schemaName = logical+ .split('_')+ .map((p, i) => (i === 0 ? p : p.charAt(0).toUpperCase() + p.slice(1)))+ .join('_');+ const displayLabel = options['primary-name'] || 'Name';+ const maxLength = Number(options['primary-name-max-length'] || 100);++ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.StringAttributeMetadata',+ AttributeType: 'String',+ AttributeTypeName: { Value: 'StringType' },+ SchemaName: schemaName,+ DisplayName: label(displayLabel),+ Description: label(`Primary name for ${displayLabel}`),+ RequiredLevel: requiredLevel('ApplicationRequired'),+ MaxLength: maxLength,+ FormatName: { Value: 'Text' },+ IsPrimaryName: true,+ };+}++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 4) {+ process.stderr.write(+ 'Usage: node create-table.js <envUrl> <schemaName> <displayName> <displayCollectionName> [options]\n'+ );+ process.exit(1);+ }++ const [envUrl, schemaName, displayName, displayCollectionName] = positional;++ const prefixMatch = schemaName.match(/^([a-z][a-z0-9]+)_/i);+ if (!prefixMatch) {+ emitResult(false, new Error(`schemaName "${schemaName}" must include a publisher prefix (e.g. "new_Candidate")`));+ }+ const prefix = prefixMatch[1].toLowerCase();++ const body = {+ '@odata.type': 'Microsoft.Dynamics.CRM.EntityMetadata',+ SchemaName: schemaName,+ DisplayName: label(displayName),+ DisplayCollectionName: label(displayCollectionName),+ Description: label(flags.description || displayName),+ OwnershipType: flags.ownership === 'organization' ? 'OrganizationOwned' : 'UserOwned',+ HasActivities: flags['has-activities'] === 'true',+ HasNotes: flags['has-notes'] === 'true',+ IsActivity: false,+ Attributes: [buildPrimaryNameAttribute(prefix, flags)],+ };++ try {+ const res = await dataverseRequest(+ envUrl,+ 'POST',+ 'EntityDefinitions?$select=LogicalName',+ body,+ {+ includeHeaders: true,+ extraHeaders: flags.solution+ ? { 'MSCRM.SolutionUniqueName': String(flags.solution) }+ : {},+ }+ );+ ensureOk(res, `Create table ${schemaName}`);++ const entityUrl = res.headers && (res.headers['odata-entityid'] || res.headers['OData-EntityId']);+ let metadataId = null;+ if (entityUrl) {+ const m = String(entityUrl).match(/\(([0-9a-f-]{36})\)/i);+ if (m) metadataId = m[1];+ }++ emitResult(true, {+ ok: true,+ schemaName,+ logicalName: schemaName.toLowerCase(),+ metadataId,+ });+ } catch (e) {+ emitResult(false, e);+ }+}++main();diff --git a/plugins/model-apps/scripts/dataverse-request.js b/plugins/model-apps/scripts/dataverse-request.jsnew file mode 100644index 000000000..b8414f77b--- /dev/null+++ b/plugins/model-apps/scripts/dataverse-request.js@@ -0,0 +1,65 @@+#!/usr/bin/env node++// General-purpose Dataverse OData Web API wrapper with built-in auth + retry.+// Use this as an escape hatch when a higher-level operation script+// (create-table.js / add-column.js / create-relationship.js / create-record.js /+// add-to-solution.js) does not cover what you need.+//+// Usage:+// node dataverse-request.js <envUrl> <method> <apiPath> [--body <json|@path>] [--include-headers]+//+// Arguments:+// envUrl - Dataverse environment URL (https://org.crm.dynamics.com)+// method - GET | POST | PATCH | DELETE+// apiPath - Path after /api/data/v9.2/ (e.g. "EntityDefinitions(LogicalName='account')")+//+// Options:+// --body <json|@path> Inline JSON or @filepath to a JSON file+// --include-headers Include response headers (useful for OData-EntityId on POST)+// --timeout <ms> Override default 60s timeout+//+// Output (stdout, JSON):+// { "status": 200, "data": { ... } }+// With --include-headers: { "status": 200, "data": { ... }, "headers": { ... } }+//+// Exit codes:+// 0 - Request completed (check status field for HTTP result)+// 1 - Fatal error (no token, invalid args, network failure after retries)++const { dataverseRequest, parseArgs, readJsonArg } = require('./lib/dataverse-auth');++async function main() {+ const { positional, flags } = parseArgs(process.argv.slice(2));+ if (positional.length < 3) {+ process.stderr.write(+ 'Usage: node dataverse-request.js <envUrl> <method> <apiPath> [--body <json|@path>] [--include-headers] [--timeout <ms>]\n'+ );+ process.exit(1);+ }++ const [envUrl, methodRaw, apiPath] = positional;+ const method = methodRaw.toUpperCase();+ const body = flags.body !== undefined ? readJsonArg(flags.body) : null;+ const includeHeaders = flags['include-headers'] === true;++ let timeout = undefined;+ if (flags.timeout !== undefined) {+ const parsed = Number(flags.timeout);+ if (!Number.isFinite(parsed) || parsed <= 0) {+ process.stderr.write(`--timeout must be a positive number (got "${flags.timeout}")\n`);+ process.exit(1);+ }+ timeout = parsed;+ }++ try {+ const res = await dataverseRequest(envUrl, method, apiPath, body, { includeHeaders, timeout });+ process.stdout.write(JSON.stringify(res) + '\n');+ process.exit(0);+ } catch (e) {+ process.stderr.write(e.message + '\n');+ process.exit(1);+ }+}++main();diff --git a/plugins/model-apps/scripts/lib/dataverse-auth.js b/plugins/model-apps/scripts/lib/dataverse-auth.jsnew file mode 100644index 000000000..61f16c4e4--- /dev/null+++ b/plugins/model-apps/scripts/lib/dataverse-auth.js@@ -0,0 +1,276 @@+#!/usr/bin/env node++// Shared helpers for talking to the Dataverse Web API from model-apps scripts.+// Uses Azure CLI (`az account get-access-token`) for auth — same MSAL cache that pac CLI uses.+// All operation scripts (create-table.js, add-column.js, etc.) import from this module.++const { execFileSync } = require('child_process');++/**+ * Gets an Azure CLI access token for the given Dataverse environment URL.+ * Returns null if `az` is missing, the user isn't logged in, or the resource is unreachable.+ * @param {string} envUrl - e.g. "https://aurorabapenv4ab3f.crmtest.dynamics.com"+ * @returns {string|null}+ */+function getAuthToken(envUrl) {+ try {+ const out = execFileSync(+ 'az',+ ['account', 'get-access-token', '--resource', envUrl, '--query', 'accessToken', '-o', 'tsv'],+ { encoding: 'utf8', timeout: 30000, stdio: ['ignore', 'pipe', 'pipe'], shell: process.platform === 'win32' }+ );+ return out.trim() || null;+ } catch {+ return null;+ }+}++/**+ * Makes a raw HTTPS request and resolves with `{ statusCode, body, headers? }` or `{ error }`.+ * @param {object} options+ * @param {string} options.url+ * @param {string} [options.method='GET']+ * @param {object} [options.headers={}]+ * @param {string} [options.body=null]+ * @param {boolean} [options.includeHeaders=false]+ * @param {number} [options.timeout=60000]+ * @returns {Promise<{statusCode: number, body: string, headers?: object} | {error: string}>}+ */+function makeRequest({ url, method = 'GET', headers = {}, body = null, includeHeaders = false, timeout = 60000 }) {+ return new Promise((resolve) => {+ const https = require('https');+ const http = require('http');+ const u = new URL(url);+ const mod = u.protocol === 'https:' ? https : http;+ const req = mod.request(+ {+ method,+ headers,+ hostname: u.hostname,+ port: u.port || undefined,+ path: u.pathname + u.search,+ timeout,+ },+ (res) => {+ let data = '';+ res.on('data', (chunk) => (data += chunk));+ res.on('end', () => {+ const result = { statusCode: res.statusCode, body: data };+ if (includeHeaders) result.headers = res.headers;+ resolve(result);+ });+ }+ );+ req.on('error', (e) => resolve({ error: e.message }));+ req.on('timeout', () => {+ req.destroy();+ resolve({ error: 'Request timed out' });+ });+ if (body) req.write(body);+ req.end();+ });+}++/**+ * Makes a Dataverse Web API request with built-in auth, retry, and JSON handling.+ * Retries up to 2 times: refreshes token on 401, backs off on 429/500/502/503.+ * @param {string} envUrl - Dataverse environment URL (no trailing slash needed)+ * @param {string} method - GET, POST, PATCH, DELETE+ * @param {string} apiPath - Path after /api/data/v9.2/ (e.g. "EntityDefinitions")+ * @param {object|string|null} [body=null] - Request body (object → JSON.stringify)+ * @param {object} [opts={}]+ * @param {boolean} [opts.includeHeaders=false] - Include response headers in result+ * @param {object} [opts.extraHeaders={}] - Extra request headers (e.g. Prefer)+ * @param {number} [opts.timeout=60000]+ * @returns {Promise<{status: number, data: any, headers?: object}>}+ */+async function dataverseRequest(envUrl, method, apiPath, body = null, opts = {}) {+ const cleanUrl = envUrl.replace(/\/+$/, '');+ const url = `${cleanUrl}/api/data/v9.2/${apiPath}`;+ const bodyStr = body == null ? null : typeof body === 'string' ? body : JSON.stringify(body);+ const { includeHeaders = false, extraHeaders = {}, timeout = 60000 } = opts;++ let token = getAuthToken(cleanUrl);+ if (!token) {+ throw new Error(`Failed to get Azure CLI token for ${cleanUrl}. Run 'az login' first.`);+ }++ const maxRetries = 2;+ for (let attempt = 0; attempt <= maxRetries; attempt++) {+ const headers = {+ Authorization: `Bearer ${token}`,+ Accept: 'application/json',+ 'OData-MaxVersion': '4.0',+ 'OData-Version': '4.0',+ ...extraHeaders,+ };+ if (bodyStr) headers['Content-Type'] = 'application/json; charset=utf-8';++ const res = await makeRequest({ url, method, headers, body: bodyStr, includeHeaders, timeout });++ if (res.error) {+ if (attempt < maxRetries) continue;+ throw new Error(`Request failed: ${res.error}`);+ }++ if (res.statusCode === 401 && attempt < maxRetries) {+ token = getAuthToken(cleanUrl);+ if (!token) throw new Error("Token refresh failed. Run 'az login' again.");+ continue;+ }++ if ([429, 500, 502, 503].includes(res.statusCode) && attempt < maxRetries) {+ await new Promise((r) => setTimeout(r, 2000 * (attempt + 1)));+ continue;+ }++ let data = null;+ if (res.body) {+ try { data = JSON.parse(res.body); } catch { data = res.body; }+ }+ const out = { status: res.statusCode, data };+ if (includeHeaders) out.headers = res.headers;+ return out;+ }+ throw new Error('Unreachable retry loop');+}++/**+ * Throws if the response is not 2xx. Returns the response untouched on success.+ * Pulls Dataverse's structured error message out of `data.error.message` when present.+ */+function ensureOk(res, context) {+ if (res.status >= 200 && res.status < 300) return res;+ const msg = res?.data?.error?.message || (typeof res.data === 'string' ? res.data : JSON.stringify(res.data));+ throw new Error(`${context} failed: HTTP ${res.status} — ${msg}`);+}++/**+ * Builds a Dataverse verbose Label object.+ * @param {string} text+ * @param {number} [lang=1033]+ */+function label(text, lang = 1033) {+ return {+ '@odata.type': 'Microsoft.Dynamics.CRM.Label',+ LocalizedLabels: [{ '@odata.type': 'Microsoft.Dynamics.CRM.LocalizedLabel', Label: text, LanguageCode: lang }],+ };+}++/**+ * Standard RequiredLevel block.+ * @param {'None'|'ApplicationRequired'|'Recommended'|'SystemRequired'} level+ */+function requiredLevel(level = 'None') {+ return {+ Value: level,+ CanBeChanged: true,+ ManagedPropertyLogicalName: 'canmodifyrequirementlevelsettings',+ };+}++/**+ * Discovers the publisher prefix for the default solution in this env.+ * Falls back to "new" if the query fails.+ * @param {string} envUrl+ * @returns {Promise<string>}+ */+async function getDefaultPublisherPrefix(envUrl) {+ try {+ const res = await dataverseRequest(+ envUrl,+ 'GET',+ "solutions?$select=uniquename&$filter=uniquename eq 'Default'&$expand=publisherid($select=customizationprefix)&$top=1"+ );+ const prefix = res?.data?.value?.[0]?.publisherid?.customizationprefix;+ return prefix || 'new';+ } catch {+ return 'new';+ }+}++/**+ * Parses CLI args. Accepts both space-separated (`--flag value`) and+ * equals-separated (`--flag=value`) forms, plus bare boolean flags (`--bool`).+ * <positional> [--flag value] [--flag=value] [--bool]+ * Returns { positional: [...], flags: { key: value } }. Repeated --flag overwrites.+ * For `--flag=value`, only the first `=` is treated as the separator so values+ * containing `=` (e.g. OData filters) are preserved.+ */+function parseArgs(argv) {+ const positional = [];+ const flags = {};+ for (let i = 0; i < argv.length; i++) {+ const arg = argv[i];+ if (arg.startsWith('--')) {+ const body = arg.slice(2);+ const eq = body.indexOf('=');+ if (eq !== -1) {+ flags[body.slice(0, eq)] = body.slice(eq + 1);+ continue;+ }+ const next = argv[i + 1];+ if (next === undefined || next.startsWith('--')) {+ flags[body] = true;+ } else {+ flags[body] = next;+ i++;+ }+ } else {+ positional.push(arg);+ }+ }+ return { positional, flags };+}++/** Reads a JSON value either inline or from a file via @path syntax. */+function readJsonArg(raw) {+ if (raw == null) return null;+ if (typeof raw !== 'string') return raw;+ if (raw.startsWith('@')) {+ const fs = require('fs');+ return JSON.parse(fs.readFileSync(raw.slice(1), 'utf8'));+ }+ return JSON.parse(raw);+}++/**+ * Writes a result to stdout and exits.+ * ok=true → JSON payload to stdout, exit 0+ * ok=false + Error → message to stderr, exit 1+ * ok=false + object → JSON payload to stdout (caller can parse partial-failure+ * details like `errors: [...]`), short note to stderr, exit 1+ * ok=false + string → string to stderr, exit 1+ */+function emitResult(ok, payload) {+ if (ok) {+ process.stdout.write(JSON.stringify(payload) + '\n');+ process.exit(0);+ }+ if (payload instanceof Error) {+ process.stderr.write(payload.message + '\n');+ } else if (payload !== null && typeof payload === 'object') {+ // Partial failure (e.g., bulk insert with some errors). Emit the structured+ // payload to stdout so callers can parse `errors`, and exit 1 so shells+ // still treat it as a failure.+ process.stdout.write(JSON.stringify(payload) + '\n');+ const n = Array.isArray(payload.errors) ? payload.errors.length : 'unknown';+ process.stderr.write(`Operation completed with ${n} error(s); see stdout JSON\n`);+ } else {+ process.stderr.write(String(payload) + '\n');+ }+ process.exit(1);+}++module.exports = {+ getAuthToken,+ makeRequest,+ dataverseRequest,+ ensureOk,+ label,+ requiredLevel,+ getDefaultPublisherPrefix,+ parseArgs,+ readJsonArg,+ emitResult,+};diff --git a/plugins/model-apps/scripts/regenerate-verified-icons.js b/plugins/model-apps/scripts/regenerate-verified-icons.jsnew file mode 100644index 000000000..370db1e17--- /dev/null+++ b/plugins/model-apps/scripts/regenerate-verified-icons.js@@ -0,0 +1,64 @@+#!/usr/bin/env node+/**+ * Regenerate references/verified-icons.txt from the @fluentui/react-icons package.+ *+ * Run this after bumping the @fluentui/react-icons version pin or whenever the+ * icon set changes. The output is committed to the plugin so page-builder agents+ * can read it without an npm install at runtime.+ *+ * Usage:+ * node scripts/regenerate-verified-icons.js+ *+ * Requirements:+ * - node (any LTS)+ * - npm (for the one-time install in a temp dir)+ * - Network access to npm registry+ */+const { execFileSync } = require('child_process');+const fs = require('fs');+const os = require('os');+const path = require('path');++// Pinned to an exact version so the committed verified-icons.txt is reproducible.+// To regenerate after a bump, change this constant and re-run this script.+const ICON_PKG = '@fluentui/[email protected]';+const OUTPUT = path.join(__dirname, '..', 'references', 'verified-icons.txt');++// Install into a fresh temp dir to avoid polluting the plugin tree.+const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'verify-icons-'));+console.log(`Installing ${ICON_PKG} into ${tmpDir}...`);++// On Windows, npm is a shim invoked through cmd. execFile needs shell:true there.+const npmShellOpts = { cwd: tmpDir, stdio: 'inherit', shell: process.platform === 'win32' };++try {+ execFileSync('npm', ['init', '-y'], { ...npmShellOpts, stdio: 'ignore' });+ execFileSync('npm', ['install', ICON_PKG, '--no-save', '--silent'], npmShellOpts);++ // Load the module from the temp dir and enumerate exports.+ const iconsPath = path.join(tmpDir, 'node_modules', '@fluentui', 'react-icons');+ const icons = require(iconsPath);++ // Keep unsized variants only: NameRegular or NameFilled (no trailing digits).+ const names = Object.keys(icons)+ .filter((n) => /^[A-Z][A-Za-z0-9]+(?:Regular|Filled)$/.test(n))+ .filter((n) => !/[0-9]+(?:Regular|Filled)$/.test(n))+ .sort();++ const header = [+ '# Fluent UI V9 verified icon names',+ `# Generated from ${ICON_PKG}`,+ `# Regenerate with: node scripts/regenerate-verified-icons.js`,+ `# Total: ${names.length} unsized icons (Regular + Filled variants only)`,+ '',+ ].join('\n');++ fs.writeFileSync(OUTPUT, header + names.join('\n') + '\n', 'utf8');+ console.log(`Wrote ${names.length} icon names to ${OUTPUT}`);+} finally {+ try {+ fs.rmSync(tmpDir, { recursive: true, force: true });+ } catch (e) {+ console.warn(`Failed to clean up ${tmpDir}: ${e.message}`);+ }+}diff --git a/plugins/model-apps/scripts/tests/add-column.test.js b/plugins/model-apps/scripts/tests/add-column.test.jsnew file mode 100644index 000000000..c46c5a3d1--- /dev/null+++ b/plugins/model-apps/scripts/tests/add-column.test.js@@ -0,0 +1,40 @@+'use strict';+// Tests the attribute-payload builder used by add-column.js by re-implementing+// the same buildAttribute function. We do this rather than exporting it from the+// script because the script is intentionally a thin CLI wrapper.++const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');++// Pull the buildAttribute body out of add-column.js so the test stays in lockstep.+// If the helper diverges, fix it here too.+const scriptPath = path.join(__dirname, '..', 'add-column.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('add-column.js contains buildAttribute for all supported types', () => {+ const types = ['string', 'memo', 'integer', 'decimal', 'money', 'datetime', 'boolean', 'picklist'];+ for (const t of types) {+ assert.match(scriptSrc, new RegExp(`case '${t}':`), `missing case '${t}'`);+ }+});++test('add-column.js rejects unsupported types', () => {+ assert.match(scriptSrc, /Unsupported column type/);+});++test('add-column.js uses common-fields builder', () => {+ assert.match(scriptSrc, /function commonFields\(/);+ assert.match(scriptSrc, /SchemaName: schemaName/);+ assert.match(scriptSrc, /DisplayName: label\(displayName\)/);+});++test('add-column.js picklist requires options', () => {+ assert.match(scriptSrc, /picklist requires --options/);+});++test('add-column.js boolean has true/false labels', () => {+ assert.match(scriptSrc, /TrueOption:/);+ assert.match(scriptSrc, /FalseOption:/);+});diff --git a/plugins/model-apps/scripts/tests/add-to-solution.test.js b/plugins/model-apps/scripts/tests/add-to-solution.test.jsnew file mode 100644index 000000000..4ae080388--- /dev/null+++ b/plugins/model-apps/scripts/tests/add-to-solution.test.js@@ -0,0 +1,35 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');+const { spawnSync } = require('node:child_process');++const scriptPath = path.join(__dirname, '..', 'add-to-solution.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('add-to-solution.js posts to AddSolutionComponent', () => {+ assert.match(scriptSrc, /AddSolutionComponent/);+});++test('add-to-solution.js builds canonical request body', () => {+ assert.match(scriptSrc, /ComponentId: componentId/);+ assert.match(scriptSrc, /ComponentType: componentType/);+ assert.match(scriptSrc, /SolutionUniqueName: solutionUniqueName/);+});++test('add-to-solution.js: missing args exits 1 with usage', () => {+ const res = spawnSync(process.execPath, [scriptPath], { encoding: 'utf8' });+ assert.equal(res.status, 1);+ assert.match(res.stderr, /Usage:/);+});++test('add-to-solution.js: non-numeric componentType exits 1', () => {+ const res = spawnSync(+ process.execPath,+ [scriptPath, 'https://example.crm.dynamics.com', 'MySolution', 'guid', 'not-a-number'],+ { encoding: 'utf8' }+ );+ assert.equal(res.status, 1);+ assert.match(res.stderr, /componentType must be a number/);+});diff --git a/plugins/model-apps/scripts/tests/check-auth.test.js b/plugins/model-apps/scripts/tests/check-auth.test.jsnew file mode 100644index 000000000..1394ceeb8--- /dev/null+++ b/plugins/model-apps/scripts/tests/check-auth.test.js@@ -0,0 +1,46 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');++const scriptPath = path.join(__dirname, '..', 'check-auth.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('check-auth.js enumerates all blocker codes', () => {+ for (const code of [+ 'az_missing',+ 'az_not_logged_in',+ 'pac_not_logged_in',+ 'no_env_url',+ 'whoami_403',+ 'whoami_401',+ 'whoami_error',+ ]) {+ assert.match(scriptSrc, new RegExp(`['"]${code}['"]`), `missing blocker code: ${code}`);+ }+});++test('check-auth.js exits 0 even on failure (output drives gating)', () => {+ // The emit() helper always exits 0.+ assert.match(scriptSrc, /process\.exit\(0\)/);+ assert.doesNotMatch(scriptSrc, /process\.exit\(1\)/);+});++test('check-auth.js calls az account show and pac org who', () => {+ assert.match(scriptSrc, /'account', 'show'/);+ assert.match(scriptSrc, /'org', 'who'/);+});++test('check-auth.js runs WhoAmI through dataverseRequest', () => {+ assert.match(scriptSrc, /dataverseRequest\([^,]+,\s*'GET',\s*'WhoAmI'/);+});++test('check-auth.js compares identities case-insensitively', () => {+ assert.match(scriptSrc, /normalizeUser/);+ assert.match(scriptSrc, /toLowerCase/);+});++test('check-auth.js: 403 hint mentions az login --username when identities differ', () => {+ assert.match(scriptSrc, /az login --username \$\{pacUser\}/);+});diff --git a/plugins/model-apps/scripts/tests/create-record.test.js b/plugins/model-apps/scripts/tests/create-record.test.jsnew file mode 100644index 000000000..d685f5a7f--- /dev/null+++ b/plugins/model-apps/scripts/tests/create-record.test.js@@ -0,0 +1,78 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');+const { spawnSync } = require('node:child_process');++const scriptPath = path.join(__dirname, '..', 'create-record.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('create-record.js supports single + batch', () => {+ assert.match(scriptSrc, /createSingle/);+ assert.match(scriptSrc, /createBatch/);+});++test('create-record.js uses $batch endpoint with multipart/mixed', () => {+ assert.match(scriptSrc, /\/api\/data\/v9\.2\/\$batch/);+ assert.match(scriptSrc, /multipart\/mixed/);+});++test('create-record.js: missing args exits 1 with usage', () => {+ const res = spawnSync(process.execPath, [scriptPath], { encoding: 'utf8' });+ assert.equal(res.status, 1);+ assert.match(res.stderr, /Usage:/);+});++test('create-record.js: parseBatchResponse splits on HTTP/1.1 marker', () => {+ // Smoke check the response splitter shape (we don't execute it here, just verify the regex pattern is present).+ assert.match(scriptSrc, /split\(\/HTTP\\\/1\\\.1 \//);+});++function runWithBatchSize(batchSize) {+ return spawnSync(+ process.execPath,+ [scriptPath, 'https://example.crm.dynamics.com', 'accounts', '--body', '[]', '--batch-size', String(batchSize)],+ { encoding: 'utf8' },+ );+}++test('create-record.js: rejects non-numeric --batch-size', () => {+ const res = runWithBatchSize('abc');+ assert.equal(res.status, 1);+ assert.match(res.stderr, /--batch-size/);+});++test('create-record.js: rejects --batch-size 0', () => {+ const res = runWithBatchSize(0);+ assert.equal(res.status, 1);+ assert.match(res.stderr, /--batch-size/);+});++test('create-record.js: rejects negative --batch-size', () => {+ const res = runWithBatchSize(-5);+ assert.equal(res.status, 1);+ assert.match(res.stderr, /--batch-size/);+});++test('create-record.js: rejects fractional --batch-size', () => {+ const res = runWithBatchSize('2.5');+ assert.equal(res.status, 1);+ assert.match(res.stderr, /--batch-size/);+});++test('create-record.js: rejects --batch-size above 1000', () => {+ const res = runWithBatchSize(1001);+ assert.equal(res.status, 1);+ assert.match(res.stderr, /--batch-size/);+});++test('create-record.js: accepts valid --batch-size (empty array no-op)', () => {+ // With --body '[]', createBatch loop body never executes (no auth, no network).+ // The script should exit 0 with count=0.+ const res = runWithBatchSize(100);+ assert.equal(res.status, 0, `expected exit 0, got ${res.status}. stderr: ${res.stderr}`);+ const parsed = JSON.parse(res.stdout.trim());+ assert.equal(parsed.ok, true);+ assert.equal(parsed.count, 0);+});diff --git a/plugins/model-apps/scripts/tests/create-relationship.test.js b/plugins/model-apps/scripts/tests/create-relationship.test.jsnew file mode 100644index 000000000..ea5ec5854--- /dev/null+++ b/plugins/model-apps/scripts/tests/create-relationship.test.js@@ -0,0 +1,37 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');+const { spawnSync } = require('node:child_process');++const scriptPath = path.join(__dirname, '..', 'create-relationship.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('create-relationship.js posts to RelationshipDefinitions for both 1n and nn', () => {+ assert.match(scriptSrc, /RelationshipDefinitions/);+ assert.match(scriptSrc, /OneToManyRelationshipMetadata/);+ assert.match(scriptSrc, /ManyToManyRelationshipMetadata/);+});++test('create-relationship.js builds OneToManyRelationshipMetadata payload', () => {+ assert.match(scriptSrc, /OneToManyRelationshipMetadata/);+ assert.match(scriptSrc, /CascadeConfiguration/);+});++test('create-relationship.js builds ManyToManyRelationshipMetadata payload', () => {+ assert.match(scriptSrc, /ManyToManyRelationshipMetadata/);+ assert.match(scriptSrc, /IntersectEntityName/);+});++test('create-relationship.js: missing args exits 1 with usage', () => {+ const res = spawnSync(process.execPath, [scriptPath], { encoding: 'utf8' });+ assert.equal(res.status, 1);+ assert.match(res.stderr, /Usage:/);+});++test('create-relationship.js: unknown kind exits 1', () => {+ const res = spawnSync(process.execPath, [scriptPath, 'foo', 'https://example.crm.dynamics.com'], { encoding: 'utf8' });+ assert.equal(res.status, 1);+ assert.match(res.stderr, /Unknown relationship kind/);+});diff --git a/plugins/model-apps/scripts/tests/create-solution.test.js b/plugins/model-apps/scripts/tests/create-solution.test.jsnew file mode 100644index 000000000..7f9666de6--- /dev/null+++ b/plugins/model-apps/scripts/tests/create-solution.test.js@@ -0,0 +1,50 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');+const { spawnSync } = require('node:child_process');++const scriptPath = path.join(__dirname, '..', 'create-solution.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('create-solution.js posts to /solutions', () => {+ assert.match(scriptSrc, /'POST', 'solutions'/);+});++test('create-solution.js binds publisher via @odata.bind', () => {+ assert.match(scriptSrc, /'[email protected]':/);+});++test('create-solution.js looks up env default publisher when --publisher omitted', () => {+ assert.match(scriptSrc, /findPublisher\(envUrl, flags\.publisher\)/);+ // Authoritative lookup: organizations._defaultpublisherid_value -> publisher record+ assert.match(scriptSrc, /_defaultpublisherid_value/);+ assert.match(scriptSrc, /publishers\(\$\{defaultPublisherId\}\)/);+});++test('create-solution.js: missing args exits 1 with usage', () => {+ const res = spawnSync(process.execPath, [scriptPath], { encoding: 'utf8' });+ assert.equal(res.status, 1);+ assert.match(res.stderr, /Usage:/);+});++test('create-solution.js: rejects unique names with hyphens or spaces', () => {+ const res = spawnSync(+ process.execPath,+ [scriptPath, 'https://example.crm.dynamics.com', 'has-hyphen', 'Friendly'],+ { encoding: 'utf8' }+ );+ assert.equal(res.status, 1);+ assert.match(res.stderr, /alphanumeric/);+});++test('create-solution.js: rejects unique names starting with digit', () => {+ const res = spawnSync(+ process.execPath,+ [scriptPath, 'https://example.crm.dynamics.com', '1Solution', 'Friendly'],+ { encoding: 'utf8' }+ );+ assert.equal(res.status, 1);+ assert.match(res.stderr, /alphanumeric/);+});diff --git a/plugins/model-apps/scripts/tests/create-table.test.js b/plugins/model-apps/scripts/tests/create-table.test.jsnew file mode 100644index 000000000..a4b008a0a--- /dev/null+++ b/plugins/model-apps/scripts/tests/create-table.test.js@@ -0,0 +1,37 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');+const path = require('node:path');+const fs = require('node:fs');+const { spawnSync } = require('node:child_process');++const scriptPath = path.join(__dirname, '..', 'create-table.js');+const scriptSrc = fs.readFileSync(scriptPath, 'utf8');++test('create-table.js requires schemaName with publisher prefix', () => {+ assert.match(scriptSrc, /must include a publisher prefix/);+});++test('create-table.js builds primary name attribute as IsPrimaryName: true', () => {+ assert.match(scriptSrc, /IsPrimaryName: true/);+});++test('create-table.js posts to EntityDefinitions', () => {+ assert.match(scriptSrc, /EntityDefinitions\?\$select=LogicalName/);+});++test('create-table.js: missing args prints usage and exits 1', () => {+ const res = spawnSync(process.execPath, [scriptPath], { encoding: 'utf8' });+ assert.equal(res.status, 1);+ assert.match(res.stderr, /Usage:/);+});++test('create-table.js: bad schemaName (no prefix) exits 1', () => {+ const res = spawnSync(+ process.execPath,+ [scriptPath, 'https://example.crm.dynamics.com', 'NoPrefix', 'Display', 'Displays'],+ { encoding: 'utf8' }+ );+ assert.equal(res.status, 1);+ assert.match(res.stderr, /publisher prefix/);+});diff --git a/plugins/model-apps/scripts/tests/dataverse-auth.test.js b/plugins/model-apps/scripts/tests/dataverse-auth.test.jsnew file mode 100644index 000000000..27ce802f8--- /dev/null+++ b/plugins/model-apps/scripts/tests/dataverse-auth.test.js@@ -0,0 +1,116 @@+'use strict';+const { test } = require('node:test');+const assert = require('node:assert/strict');++const { parseArgs, readJsonArg, label, requiredLevel } = require('../lib/dataverse-auth');++test('parseArgs: positional only', () => {+ const { positional, flags } = parseArgs(['a', 'b', 'c']);+ assert.deepEqual(positional, ['a', 'b', 'c']);+ assert.deepEqual(flags, {});+});++test('parseArgs: mix of positional and flags', () => {+ const { positional, flags } = parseArgs(['a', '--foo', 'bar', 'b', '--baz']);+ assert.deepEqual(positional, ['a', 'b']);+ assert.deepEqual(flags, { foo: 'bar', baz: true });+});++test('parseArgs: bool flag followed by another flag treats first as bool', () => {+ const { flags } = parseArgs(['--x', '--y', '1']);+ assert.deepEqual(flags, { x: true, y: '1' });+});++test('parseArgs: repeated flag overwrites', () => {+ const { flags } = parseArgs(['--foo', '1', '--foo', '2']);+ assert.equal(flags.foo, '2');+});++test('parseArgs: --key=value form', () => {+ const { positional, flags } = parseArgs(['x', '--foo=bar', '--baz=qux', 'y']);+ assert.deepEqual(positional, ['x', 'y']);+ assert.deepEqual(flags, { foo: 'bar', baz: 'qux' });+});++test('parseArgs: --key=value with empty value', () => {+ const { flags } = parseArgs(['--foo=']);+ assert.equal(flags.foo, '');+});++test('parseArgs: --key=value preserves additional = signs in value', () => {+ const { flags } = parseArgs(['--query=a=b=c']);+ assert.equal(flags.query, 'a=b=c');+});++test('parseArgs: mixed --key=value and --key value forms', () => {+ const { flags } = parseArgs(['--foo=bar', '--baz', 'qux']);+ assert.deepEqual(flags, { foo: 'bar', baz: 'qux' });+});++test('readJsonArg: inline JSON', () => {+ assert.deepEqual(readJsonArg('{"a":1}'), { a: 1 });+});++test('readJsonArg: file path with @ prefix', () => {+ const fs = require('node:fs');+ const path = require('node:path');+ const os = require('node:os');+ const tmp = path.join(os.tmpdir(), `dv-auth-test-${Date.now()}.json`);+ fs.writeFileSync(tmp, JSON.stringify({ from: 'file' }));+ try {+ assert.deepEqual(readJsonArg('@' + tmp), { from: 'file' });+ } finally {+ fs.unlinkSync(tmp);+ }+});++test('readJsonArg: null and undefined pass through', () => {+ assert.equal(readJsonArg(null), null);+ assert.equal(readJsonArg(undefined), null);+});++test('label: builds Dataverse verbose Label object', () => {+ const out = label('Hello');+ assert.equal(out['@odata.type'], 'Microsoft.Dynamics.CRM.Label');+ assert.equal(out.LocalizedLabels.length, 1);+ assert.equal(out.LocalizedLabels[0].Label, 'Hello');+ assert.equal(out.LocalizedLabels[0].LanguageCode, 1033);+});++test('label: respects custom language code', () => {+ const out = label('Bonjour', 1036);+ assert.equal(out.LocalizedLabels[0].LanguageCode, 1036);+});++test('requiredLevel: defaults to None and is mutable', () => {+ const out = requiredLevel();+ assert.equal(out.Value, 'None');+ assert.equal(out.CanBeChanged, true);+});++test('requiredLevel: respects argument', () => {+ assert.equal(requiredLevel('ApplicationRequired').Value, 'ApplicationRequired');+});++test('emitResult: partial-failure object writes JSON to stdout (not [object Object])', () => {+ // Spawn a tiny script that calls emitResult(false, {errors:[...]}) and+ // verify that stdout contains the JSON payload — not the literal string+ // "[object Object]". Regression guard for the bulk-insert failure path.+ const { spawnSync } = require('node:child_process');+ const path = require('node:path');+ const libPath = path.join(__dirname, '..', 'lib', 'dataverse-auth.js');+ const code = `+ const { emitResult } = require(${JSON.stringify(libPath)});+ emitResult(false, { ok: false, count: 0, ids: [], errors: [{ index: 0, status: 400, message: 'bad row' }] });+ `;+ const res = spawnSync(process.execPath, ['-e', code], { encoding: 'utf8' });+ assert.equal(res.status, 1, 'expected exit 1');+ assert.doesNotMatch(res.stdout, /\[object Object\]/, 'stdout must not be [object Object]');+ const parsed = JSON.parse(res.stdout.trim());+ assert.equal(parsed.ok, false);+ assert.equal(parsed.errors.length, 1);+ assert.equal(parsed.errors[0].index, 0);+ assert.equal(parsed.errors[0].status, 400);+ assert.equal(parsed.errors[0].message, 'bad row');+ assert.match(res.stderr, /Operation completed with 1 error/);+});diff --git a/plugins/model-apps/skills/genpage/SKILL.md b/plugins/model-apps/skills/genpage/SKILL.mdindex 782a08291..e3c27e907 100644--- a/plugins/model-apps/skills/genpage/SKILL.md+++ b/plugins/model-apps/skills/genpage/SKILL.md@@ -1,12 +1,12 @@---name: genpage-version: 1.0.0-description: Creates, updates, and deploys Power Apps generative pages for model-driven apps using React v17, TypeScript, and Fluent UI V9. Completes workflow from requirements to deployment. Uses PAC CLI to deploy the page code. Use it when user asks to build, retrieve, or update a page in an existing Microsoft Power Apps model-driven app. Use it when user mentions "generative page", "page in a model-driven", or "genux".+version: 2.1.0+description: Creates, updates, and deploys Power Apps generative pages for model-driven apps using React v17, TypeScript, and Fluent UI V9. Orchestrates specialist agents for planning, entity creation, and code generation. Use it when user asks to build, retrieve, or update a page in an existing Microsoft Power Apps model-driven app. Use it when user mentions "generative page", "page in a model-driven", or "genux".author: Microsoft Corporation-argument-hint: "[optional: page description or 'deploy' or 'update']"+argument-hint: "<page description> | edit"user-invocable: truemodel: sonnet-allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, AskUserQuestion, TaskCreate, TaskUpdate, TaskList+allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, Task, AskUserQuestion, TaskCreate, TaskUpdate, TaskList---# Power Apps Generative Pages Builder@@ -15,9 +15,29 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, AskUserQuestion, T**Keywords:** power apps, generative pages, genux, model-driven, dataverse, react, fluent ui, pac cli**Aliases:** /genpage, /gen-page, /genux+## Overview++This skill orchestrates four specialist agents across the create and edit flows:++**Create flow:**+1. **`genpage-planner`** — validates prerequisites, gathers requirements, detects what+ entities and apps exist, presents a plan for approval, writes `genpage-plan.md`+2. **`genpage-entity-builder`** — creates Dataverse entities (tables, columns,+ relationships, choices, sample data) via the plugin's Node.js Web API scripts+3. **`genpage-page-builder`** — generates one complete `.tsx` file per page; multiple+ builders run in parallel for multi-page requests++**Edit flow:**++4. **`genpage-edit-planner`** — reads the downloaded page artifacts, gathers change+ requirements, presents an edit plan, writes `genpage-edit-plan.md`++You (the skill) coordinate the agents and own app creation, RuntimeTypes generation,+deployment, browser verification, and the inline application of planned edits.+## References-- **Code generation rules**: [genpage-rules-reference.md](../../references/genpage-rules-reference.md)+- **Code generation rules**: [rules.md](../../references/rules.md)- **Troubleshooting**: [troubleshooting.md](../../references/troubleshooting.md)- **Sample pages**: [samples/](../../samples/)@@ -36,372 +56,383 @@ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, WebFetch, AskUserQuestion, T## Instructions-Follow these steps in order for every `/genpage` invocation.--### Step 1: Validate Prerequisites--Run these checks (first invocation per session only). Run each command separately — do not chain with `&&`:--```powershell-node --version+Follow these phases in order for every `/genpage` invocation.++### Phase 0: Create Working Directory++Derive a short folder name from the user's requirements:++1. Extract the page name or a 2-4 word summary from `$ARGUMENTS`+2. Convert to kebab-case (e.g., "Candidate Tracker" → `candidate-tracker`)+3. Create the folder: `mkdir -p <folder-name>`+4. Resolve its absolute path — this is the **working directory** for all subsequent phases++### Phase 1: Plan++> **⚠️ CRITICAL — you MUST invoke `genpage-planner` via the `Task` tool. You MUST+> NOT inline the planner's questions yourself with `AskUserQuestion`.**+>+> The planner is not optional or skippable. It runs:+> 1. Prerequisite validation (`node --version`, `pac help` version >= 2.7.0)+> 2. Auth verification (`pac auth list`, environment selection)+> 3. The structured "Create new / Edit existing" question (via `AskUserQuestion`+> inside the planner subagent, not here)+> 4. Language detection (`pac model list-languages`) — only on new-page path+> 5. Entity existence detection (`pac model list-tables --search`)+> 6. App detection (`pac model list`) with proper selection prompts+> 7. Plan-mode presentation and approval+> 8. Writes `genpage-plan.md` to the working directory+>+> Reasons to **NEVER** ask "new or edit?" yourself before invoking the planner:+> - You would skip prereq + auth (the planner is the only thing that runs them)+> - The structured question gives the user labeled options; an inline free-text+> prompt forces them to guess+> - The planner returns `{ "action": "edit" }` as a contract — your inline+> question can't produce that signal cleanly+>+> Even if `$ARGUMENTS` looks like it tells you the intent, **still invoke the+> planner**. Pass the intent in the prompt — the planner uses it to skip its+> own Question 1 if appropriate, but the prereq/auth/env steps still run.++#### Steps++1. Invoke `genpage-planner` via `Task` with the prompt below.+2. Wait for it to finish (it returns a summary).+3. If the return includes `{ "action": "edit" }`, jump to the **Edit Flow** section.+4. Otherwise the planner has written `genpage-plan.md`. Proceed to Phase 2.++#### Invocation prompt++Pass a prompt that includes:++- The user's requirements: `$ARGUMENTS`+- The working directory (absolute path from Phase 0)+- The plugin root path: `${CLAUDE_PLUGIN_ROOT}`++Example:++> You are the genpage-planner agent. Plan generative page(s) for the following requirements:+>+> [paste $ARGUMENTS here verbatim, or "no arguments provided — gather from user"]+>+> Working directory: [absolute path from Phase 0]+> Plugin root: ${CLAUDE_PLUGIN_ROOT}+>+> Follow the instructions in your agent file. Validate prereqs, confirm auth, ask+> the new/edit question via AskUserQuestion, then proceed accordingly. Write+> genpage-plan.md to the working directory if creating. Return the page list,+> entity status, app selection, and any `{ "action": "edit" }` signal when complete.++### Phase 2: Create Entities (Conditional)++Read `genpage-plan.md` from the working directory. Check the **Entity Creation Required**+section.++**If the section literally says "No entity creation required — all entities already exist":**+Skip to Phase 3.++**If entities need creating:**++#### 2a. Pre-flight: az + pac + Dataverse++Entity creation runs through the plugin's Node.js Web API scripts using `az` for+auth, and the `az` and `pac` identities should normally match. Run the+consolidated pre-flight:++```bash+node "${CLAUDE_PLUGIN_ROOT}/scripts/check-auth.js"```-```powershell-pac help+It returns a single JSON object:++```json+{+ "ok": true | false,+ "blocker": null | "az_missing" | "az_not_logged_in" | "pac_not_logged_in"+ | "no_env_url" | "whoami_403" | "whoami_401" | "whoami_error",+ "message": "human-readable next step",+ "azUser": "...", "pacUser": "...", "envUrl": "...",+ "identitiesMatch": true | false,+ "whoAmI": { "ok": true, "userId": "...", "organizationId": "..." }+}```-`pac help` output includes the version number. Verify the version is **>= 2.3.1**. If the version is older, instruct the user to update: `dotnet tool update --global Microsoft.PowerApps.CLI.Tool`.+- **`ok: true` and `identitiesMatch: true`** → proceed to 2b.+- **`ok: true` and `identitiesMatch: false`** → proceed to 2b but surface the+ `message` to the user as an inline warning ("az is X, pac is Y — WhoAmI works+ for now, but if entity creation later returns 403, run the suggested+ `az login --username` to align them").+- **`ok: false`** → show the `message` field to the user verbatim and+ **stop the workflow**. The script already includes a fix-it command for every+ blocker (run `az login`, etc.).-If either command fails, inform the user and provide installation instructions. Do NOT proceed until prerequisites are met. See [troubleshooting.md](../../references/troubleshooting.md) if issues arise.+Capture `envUrl` from the result — Phase 2b passes it to the entity-builder.-### Step 2: Authenticate and Select Environment+#### 2b. Invoke entity-builder-Check PAC CLI authentication:+Invoke the `genpage-entity-builder` agent via the `Task` tool. Pass in the prompt:+- Path to `genpage-plan.md`+- Working directory (absolute path)+- Plugin root: `${CLAUDE_PLUGIN_ROOT}`+- Dataverse env URL (from `pac org who`)-```powershell-pac auth list-```+The entity-builder reads `Solution` and `Publisher Prefix` directly from the+plan's `## Environment` — no need to re-thread them here.-**If no profiles:** Ask user to authenticate:-```powershell-pac auth create --environment https://your-env.crm.dynamics.com-```-Wait for user to complete browser sign-in, then re-verify.+Wait for completion. The builder writes a transactional log at+`<working-dir>/entity-creation-log.md` for recovery on failure.-**If one profile:** Confirm it's active (has `*` marker). If not, activate it:-```powershell-pac auth select --index 1-```--**If multiple profiles:** Show the list, ask which environment to use, then:-```powershell-pac auth select --index <user-chosen-index>-```+### Phase 3: App Creation/Selection-Report: "Working with environment: [name]" and proceed.+Read `genpage-plan.md` for the app decision and the `Solution` line in+`## Environment`.-#### Detect Configured Languages (New Pages Only)--When creating a **new** page, detect configured languages after confirming the active environment. Skip this for edit flows — the existing page already has its localization set up.+**If "create new":**```powershell-pac model list-languages+pac model create --name "App Name" --solution "<Solution unique name>" --publish```-Note the output. If multiple languages are configured (or any non-English language), localization will be included in the generated code. Include the detected languages when reporting the environment to the user, e.g.:-> "Working with environment: [name] — Languages: English (1033), Arabic (1025), French (1036)"--### Step 3: Gather Requirements (Interactive)--Ask these questions one at a time:--1. **"Create a new generative page or edit an existing one?"** (use `AskUserQuestion`)- - If new: continue to next question- - If edit: ask for the app and page to edit, download it with `pac model genpage download --app-id <app-id> --page-id <page-id> --output-directory ./output-dir`, then ask what changes to make-2. **"Describe the page you'd like to build"** (use `AskUserQuestion`) — present two example descriptions as options and let the user type their own via the "Other" option:- - **Option 1:** "Build a page showing Account records as a gallery of cards using modern look & feel. All cards should have fixed size and tall enough to fit 4 lines of titles. Include name, entityimage on the top and, website, email, phone number. Make the component fill 100% of the space. Make the gallery scrollable. Use data from the Account table. Make each card clickable to open the Account record in a new window. The target URL should be current location path with following query string parameters: pagetype=entityrecord&etn=[entityname]&id=[recordid] where entityname is account and id is accountid."- - **Option 2:** "Design a vertically scrollable checklist interface for Task records using a clean, flat layout. Each task should be a row with a left-aligned checkbox, subject in bold and right-aligned due date and priority. Use neutral tones for background and soft color tags for priority (e.g., red for High, gray for Low). Completed tasks should show a strikethrough and reduced opacity. Allow inline editing of due date with a date picker. On hover, rows should highlight with another background. Clicking a task opens the Task record in a new window using: pagetype=entityrecord&etn=[entityname]&id=[recordid] where entityname is task and id is related record id."- - **Other (Recommended):** User types their own description-3. **"Will the page use Dataverse entities or mock data?"** (use `AskUserQuestion`)- - If entities: ask which entities and fields (use logical names — singular, lowercase)- - If mock data: confirm you'll generate realistic sample data-4. **"Any specific requirements?"** (use `AskUserQuestion`) — styling, features (search, filtering, sorting), accessibility, responsive behavior, interactions+**`--solution` is mandatory.** `pac model create` errors out with+`"The given solution name is not valid: ()"` if you omit it — its claimed+"active solution" fallback does not work in practice.-If the user provided a description with the `/genpage` command, acknowledge it and skip question 2. If the selected description already specifies a data source (e.g., Option 1 mentions Account table, Option 2 mentions Task records), skip question 3 as well.+**`--publish` is mandatory.** Without it the new appmodule stays in draft and+the genux runtime URL errors with "app not published".-### Step 4: Plan and Confirm+- Use the plan's `Solution` value verbatim. The planner always writes one+ (default fallback is literally `Default`).+- If the plan is somehow missing `Solution`, pass `--solution Default` —+ every Dataverse env has a built-in "Default Solution" by that unique name.-Present a clear plan:+Store the new app-id for Phase 6.-```-I'll create a [page type] with:-- Data: [entities or mock data with specifics]-- Features: [list key features]-- Components: [Fluent UI components to use]-- Layout: [responsive design approach]-- Localization: [list detected languages] (translations, RTL support if applicable, user format settings)--Does this plan look good? Any changes needed?-```--Only include the Localization line when multiple languages were detected in Step 2, or any non-English language was configured.--Wait for confirmation before proceeding. If changes requested, revise and re-confirm.+**If existing app-id:** Use it directly. `pac model create` is not called, so+the `Solution` line is informational only for this phase.-### Step 5: Generate Schema and Verify Columns (Dataverse Pages Only)+### Phase 4: Generate RuntimeTypes (Conditional)-**CRITICAL — DO THIS BEFORE WRITING ANY CODE.** Column name hallucination is the #1 source of runtime errors. Never guess column names.--If the page uses Dataverse entities, generate the TypeScript schema NOW:+If any page uses Dataverse entities, generate the TypeScript schema:```powershell-pac model genpage generate-types --data-sources "entity1,entity2" --output-file RuntimeTypes.ts+pac model genpage generate-types --data-sources "entity1,entity2,..." --output-file <working-dir>/RuntimeTypes.ts```-> **Windows + Bash**: Always use forward slashes in file paths (e.g., `D:/temp/RuntimeTypes.ts`). Backslashes like `\t` or `\R` are consumed as escape sequences by bash, producing wrong paths.+> **Windows + Bash**: Always use forward slashes in file paths (e.g., `D:/temp/RuntimeTypes.ts`).-After generating, **read the RuntimeTypes.ts file** and:-1. Identify the actual column names available on each entity-2. Note which columns are readonly vs writable-3. Note the enum/choice set names and values-4. Use ONLY these verified column names when generating code in the next step+After generating, read the RuntimeTypes.ts file to verify it generated correctly.-> **NEVER guess or assume column names.** Custom entities (e.g., `cr69c_candidate`) have unpredictable column names (e.g., `cr69c_fullname` not `cr69c_name`). The only way to know the real names is to read them from the generated schema.+**For mock data pages only:** Skip this phase.-If schema generation fails, see [troubleshooting.md](../../references/troubleshooting.md). Do NOT generate code with guessed column names.-**For mock data pages:** Skip this step.+### Phase 5: Build Pages (Parallel)-### Step 6: Read Code Generation Rules and Samples+Read `genpage-plan.md` and extract the pages table.-Before generating code, read the comprehensive rules reference:+#### 5a. Validate the plan before dispatch-**[genpage-rules-reference.md](../../references/genpage-rules-reference.md)** — Full code generation rules, DataAPI types, layout patterns, common errors.+Before invoking any builders, verify:+- At least one page exists in the `## Pages` table+- Every page has a `### [Page Name]` subsection in `## Per-Page Specifications`+- **All filenames in the `## Pages` table are unique.** If any are duplicated,+ rewrite the plan appending `-1`, `-2`, etc. before dispatch. Duplicate filenames+ cause silent last-writer-wins data loss under parallel execution.-Also read a relevant sample for reference:+See `${CLAUDE_PLUGIN_ROOT}/references/plan-schema.md` for the full contract.-| Sample | Use When |-|--------|----------|-| [1-account-grid.tsx](../../samples/1-account-grid.tsx) | DataGrid with Dataverse entities |-| [2-wizard-multi-step.tsx](../../samples/2-wizard-multi-step.tsx) | Multi-step wizard flow |-| [3-poa-revocation-wizard.tsx](../../samples/3-poa-revocation-wizard.tsx) | Complex wizard with forms |-| [4-account-crud-dataverse.tsx](../../samples/4-account-crud-dataverse.tsx) | Full CRUD operations |-| [5-file-upload.tsx](../../samples/5-file-upload.tsx) | File upload pattern |-| [6-navigation-sidebar.tsx](../../samples/6-navigation-sidebar.tsx) | Sidebar navigation layout |-| [7-comprehensive-form.tsx](../../samples/7-comprehensive-form.tsx) | Complex form with validation |-| [8-responsive-cards.tsx](../../samples/8-responsive-cards.tsx) | Card-based responsive layout |-| [9-data-caching.tsx](../../samples/9-data-caching.tsx) | Caching data across navigations |+#### 5b. Single-page fast path (skip Task dispatch when N=1)-### Step 7: Generate Code+**If the plan's Pages table contains exactly one row**, do NOT dispatch a Task+subagent. Inline the page-builder workflow directly in the orchestrator:-Generate complete TypeScript following ALL rules in [genpage-rules-reference.md](../../references/genpage-rules-reference.md). **For Dataverse pages, use ONLY the column names verified from RuntimeTypes.ts in Step 5.** Output in this format:+1. Read `${CLAUDE_PLUGIN_ROOT}/references/rules.md`+2. Read the sample listed in the plan's `## Relevant Samples`+3. If the plan's Per-Page Specification has `Needs caching: true`, also read+ `${CLAUDE_PLUGIN_ROOT}/references/data-caching.md`+4. If the plan's `## Environment` indicates non-English languages, also read+ `${CLAUDE_PLUGIN_ROOT}/references/localization.md`+5. Read `genpage-plan.md` (already in working directory) and `RuntimeTypes.ts`+ if Data mode is dataverse+6. Write the `.tsx` file to `<working-dir>/<filename>.tsx` following all rules+7. After writing, Grep every named import from `@fluentui/react-icons` against+ `${CLAUDE_PLUGIN_ROOT}/references/verified-icons.txt` (one Grep per name).+ Rewrite any unverified names with the closest verified alternative; do not+ load the full icon list into context+8. Proceed to Phase 6-**Agent Thoughts:** Step-by-step reasoning and approach-**Summary:** Non-technical bulleted list of what was built-**Final Code:** Complete, ready-to-run TypeScript (no placeholders)+This saves ~5-15s of Task overhead and ~3K tokens that would otherwise be+duplicated in a subagent context.-**Localization:** If multiple languages were detected in Step 2, the generated code **must** follow the Localization rules in [genpage-rules-reference.md](../../references/genpage-rules-reference.md). This includes language detection boilerplate, a translations dictionary for all detected languages, a `translate()` helper for all user-visible text, RTL support if any RTL languages (Arabic, Hebrew) were detected, and user formatting settings from `usersettings`.+#### 5c. Multi-page: invoke page-builders in parallel-Save the code to a `.tsx` file (e.g., `account-dashboard.tsx`).+**If the plan's Pages table contains 2+ rows**, invoke a `genpage-page-builder`+agent via the `Task` tool per page. **Fire all invocations in a single message**+for parallel execution.-### Component Template+For each page, pass a prompt that includes:-```typescript-import {useEffect, useState} from 'react';-import type {- TableRow,- DataColumnValue,- RowKeyDataColumnValue,- QueryTableOptions,- ReadableTableRow,- ExtractFields,- GeneratedComponentProps-} from "./RuntimeTypes";+- Page name (e.g., "Candidate Tracker")+- Target file name (e.g., "candidate-tracker.tsx")+- Absolute path to `genpage-plan.md`+- Data mode (see below) — either a RuntimeTypes path or an explicit mock flag+- Working directory+- Plugin root: `${CLAUDE_PLUGIN_ROOT}`-// Additional imports: @fluentui/react-components, @fluentui/react-icons, d3, etc.+**For Dataverse pages**, include the RuntimeTypes line:-// Utility functions as separate top-level functions+> You are the genpage-page-builder agent. Generate the **[Page Name]** page.+>+> - Target file: [filename].tsx+> - Plan document: [absolute path to genpage-plan.md]+> - Data mode: **dataverse**+> - RuntimeTypes: [absolute path to RuntimeTypes.ts]+> - Working directory: [absolute path from Phase 0]+> - Plugin root: ${CLAUDE_PLUGIN_ROOT}+>+> Follow the instructions in your agent file. Write [filename].tsx and return your+> result when done.-// Sub-components as separate top-level functions+**For mock data pages**, omit the RuntimeTypes line and set `Data mode: mock`:-const GeneratedComponent = (props: GeneratedComponentProps) => {- const { dataApi, pageInput } = props;- // Component implementation-}+> You are the genpage-page-builder agent. Generate the **[Page Name]** page.+>+> - Target file: [filename].tsx+> - Plan document: [absolute path to genpage-plan.md]+> - Data mode: **mock**+> - Working directory: [absolute path from Phase 0]+> - Plugin root: ${CLAUDE_PLUGIN_ROOT}+>+> Follow the instructions in your agent file. Write [filename].tsx and return your+> result when done.-export default GeneratedComponent;-```+Wait for all page-builder tasks to complete before proceeding.-### DataAPI Quick Reference+### Phase 6: Deploy-```typescript-// Query with pagination-const result = await dataApi.queryTable("account", {- select: ["name", "revenue"],- filter: `contains(name,'test')`,- orderBy: `name asc`,- pageSize: 50-});+For each `.tsx` file produced, deploy to Power Apps.-// Load more rows-if (result.hasMoreRows && result.loadMoreRows) {- const nextPage = await result.loadMoreRows();-}+**Copy the upload commands below exactly — `--app-id`, `--code-file`, `--prompt`, `--agent-message` are all required and must use these exact flag names.**-// Create, Update, Retrieve-await dataApi.createRow("account", { name: "New Account" });-await dataApi.updateRow("account", "record-id", { name: "Updated" });-const row = await dataApi.retrieveRow("account", { id: "record-id", select: ["name"] });+#### `--prompt` semantics-// Access formatted values (for enums, lookups, dates, etc.)-const formatted = row["[email protected]"];+- **First upload** (`--add-to-sitemap`, no `--page-id`): full page description+ from plan's `## User Requirements`.+- **Any subsequent upload** (`--page-id`, no `--add-to-sitemap`): delta only —+ the changes in this upload, written like a commit message, never a+ re-statement of the original.-// Lookup fields: raw value is a GUID — use formatted value for display name-const contactGuid = row._primarycontactid_value; // GUID-const contactName = row["_primarycontactid_value@OData.Community.Display.V1.FormattedValue"]; // Display name+Applies in Phase 6 updates, Phase 6.5 PAGEREF re-uploads, Phase 7.5 fix+re-deploys, and the entire edit flow.-// Get enum choices-const choices = await dataApi.getChoices("account-statecode");-```--**DataAPI Rules:**-- ONLY use `dataApi` when TableRegistrations are provided — never assume tables/fields exist-- **NEVER guess column names** — always verify from RuntimeTypes.ts generated in Step 5-- **Lookup fields** (e.g., `_primarycontactid_value`) return a GUID. Always use the `@OData.Community.Display.V1.FormattedValue` annotation for display-- Use entity logical names — singular lowercase (e.g., `"account"`)-- Only reference columns that exist in the generated schema-- If no types provided, use mocked sample data-- Always wrap async `dataApi` calls in try-catch-- DataGrid: use `createTableColumn`, enable sorting by default--See [genpage-rules-reference.md](../../references/genpage-rules-reference.md) for full DataAPI type definitions and examples.--### Step 8: Save and Deploy--After showing code, ALWAYS ask:-> "Would you like to publish this page to Power Apps?"--If yes, follow this deployment workflow. **Copy the upload commands below exactly — `--app-id`, `--code-file`, `--prompt`, `--agent-message` are all required and must use these exact flag names.**--**For Dataverse entity pages** (schema already generated in Step 5):--```powershell-pac model list-```--**CRITICAL:** Ask the user: "Which app would you like to publish this page to? Please provide the app-id or app name from the list above."-- **NEVER** choose a default app or assume an app-id-- **ACCEPT BOTH** app-id (GUID) or app name — if user provides an app name, run `pac model list` to look up the corresponding app-id-- **WAIT** for user response before proceeding+#### For Dataverse entity pages (first upload — create):```powershellpac model genpage upload `- --app-id <user-provided-app-id-or-name> `- --code-file page-name.tsx `+ --app-id <app-id> `+ --code-file <working-dir>/<file>.tsx `--name "Page Display Name" `--data-sources "entity1,entity2" `- --prompt "User's original request summary" `+ --prompt "<Full page description from plan's ## User Requirements>" `--model "<current-model-id>" `- --agent-message "The agent's response message describing what was built and any relevant details" `+ --agent-message "Description of what was built and any relevant details" `--add-to-sitemap```-**For mock data pages** (skip schema generation):+**For mock data pages:** Same but omit `--data-sources`.-```powershell-pac model list-# Ask user for app selection, then:-pac model genpage upload `- --app-id <user-provided-app-id-or-name> `- --code-file page-name.tsx `- --name "Page Display Name" `- --prompt "User's original request summary" `- --model "<current-model-id>" `- --agent-message "The agent's response message describing what was built and any relevant details" `- --add-to-sitemap-```+#### For updating existing pages (subsequent upload):-**For updating existing pages** (use `--page-id`, omit `--add-to-sitemap`):+Use `--page-id`, omit `--add-to-sitemap`, and **scope `--prompt` to the delta only**:```powershellpac model genpage upload `- --app-id <app-id-or-name> `+ --app-id <app-id> `--page-id <page-id> `- --code-file page-name.tsx `+ --code-file <working-dir>/<file>.tsx `--data-sources "entity1,entity2" `- --prompt "User's original request summary" `+ --prompt "<Only the changes in this upload, e.g. 'Add a search box and sort by company name'>" `--model "<current-model-id>" `- --agent-message "The agent's response message describing what was built and any relevant details"+ --agent-message "Description of what was changed in this upload"```-### Step 9: Verify in Browser--After successful deployment, ask the user (use `AskUserQuestion`):-> "Would you like to verify the page in the browser using Playwright? This will open the page and test interactive elements."+### Phase 6.5: Navigation Fix-Up (Multi-Page Only)++Runs only when the plan has 2+ pages AND any built `.tsx` contains a `PAGEREF_`+token. Page-builders emit `pageId: "PAGEREF_<filename-without-tsx>"` as a+placeholder because GUIDs don't exist until after Phase 6 (see Rule 13). This+phase substitutes the real GUIDs.++#### Steps++1. Build `filename-without-tsx → page-id` map from Phase 6 upload output.+2. **Sort keys by length descending** so `PAGEREF_pet` can't match inside+ `PAGEREF_pet-gallery`.+3. For each `.tsx` in `<working-dir>/*.tsx` (top level only, no recursion),+ replace every quoted `"PAGEREF_<name>"` (must be in double quotes — that's+ the format page-builders emit) with `"<page-id-guid>"`.+4. If a placeholder doesn't match any map key (typo, missing sibling), stop+ and report — never silently ship the literal string.+5. Re-upload only the files that had at least one replacement. Use the update form+ of `pac model genpage upload` (`--page-id`, no `--add-to-sitemap`). Per the+ "`--prompt` semantics" rule in Phase 6, this is an **update**, so `--prompt`+ describes the delta only — not the original page description:++ ```powershell+ pac model genpage upload `+ --app-id <app-id> `+ --page-id <page-id-from-Phase-6> `+ --code-file <working-dir>/<file>.tsx `+ --data-sources "entity1,entity2" `+ --prompt "Resolve cross-page navigation placeholders to real page GUIDs (post-deploy fix-up)" `+ --model "<current-model-id>" `+ --agent-message "Replaced PAGEREF_<name> tokens with actual page IDs returned by Phase 6"+ ```++Pages with no `PAGEREF_` strings need no second upload.++### Phase 7: Verify in Browser (Optional)++After successful deployment, ask the user via `AskUserQuestion`:+> "Would you like to verify the page(s) in the browser using Playwright?"Options: **Yes, verify in browser** / **Skip verification**-If the user chooses to skip, go directly to Step 10.+- If the user picks **Skip verification** → jump to Phase 8.+- If the user picks **Yes** → read `${CLAUDE_PLUGIN_ROOT}/skills/genpage/verify-flow.md`+ for the full Playwright verification workflow (navigate, structural+ verification including below-the-fold, interactive testing, screenshots,+ fix-and-redeploy). The orchestrator only loads that file on demand to keep+ context lean when verification is skipped.-If the user chooses to verify, open the page in the browser using Playwright to verify it works and interactive elements function correctly.+### Phase 8: Summary-#### 9.1 Navigate and Authenticate+Write a `workflow-log.md` file to the working directory summarizing the run:+agents invoked, commands executed, decisions made, files produced. This log is+useful for debugging and required by the eval harness.-Construct the URL from the environment base URL, app-id, and page-id returned by the upload command:+Then present a final summary to the user:```-https://<env>.crm.dynamics.com/main.aspx?appid=<app-id>&pagetype=genux&id=<page-id>-```--1. Use `browser_navigate` to open the constructed URL-2. If you get a "page closed" or "browser closed" error, retry navigation once — Playwright sessions can expire-3. Use `browser_snapshot` to capture the page state. Always snapshot before any clicks — stale refs cause "Ref not found" errors-4. If a sign-in page appears, use `browser_click` on the sign-in option, then `browser_wait_for` for the page to load-5. Use `browser_wait_for` to wait for the genux page content to render (may take a few seconds)--#### 9.2 Structural Verification--Use `browser_snapshot` to take an accessibility snapshot and verify the expected DOM elements are present based on the page type built:--| Page Type | Expected Elements |-|-----------|-------------------|-| Data Grid | Table/grid element with column headers and data rows |-| Form / Wizard | Form fields (inputs, dropdowns) and Next/Back buttons |-| CRUD | Data grid + action buttons (Add, Edit, Delete) |-| Dashboard | Multiple sections/panels with headings |-| Card Layout | Card containers with content |-| File Upload | File input or drop zone element |-| Navigation Sidebar | Nav element with menu items |--If expected elements are missing, note the issue for the fix step (9.5).+## Genpage Complete-#### 9.3 Interactive Testing+| Page | File | Entities | Status |+|------|------|----------|--------|+| [Name] | [file].tsx | [entities or "mock data"] | Deployed |-Test functional interactions based on the page type. **Always take a fresh `browser_snapshot` before each click** to get current element refs. Move on after 2 failed attempts per interaction.--**All page types:**-- Verify at least one button or control responds to a click--**Page-type-specific tests:**--| Page Type | Test Action | Expected Result |-|-----------|-------------|-----------------|-| Data Grid | Click a column header | Sort order changes (arrow indicator appears or flips) |-| Form / Wizard | Click Next button | Step advances to next section |-| Form / Wizard | Click Back button | Returns to previous section |-| CRUD | Click Add/New button | Form or dialog appears |-| Dashboard | Click a tab or section toggle | Content area updates |-| Card Layout | Click an action button on a card | Card responds (expand, navigate, etc.) |-| Navigation Sidebar | Click a menu item | Content area updates to show selected section |--**What NOT to test** (skip these):-- Dataverse data mutations (create/update/delete records) — modifies real data-- File upload dialogs — Playwright cannot interact with native OS file dialogs-- Complex form validation — fragile, requires realistic test data-- Pagination — requires actual Dataverse data to be present--#### 9.4 Visual Confirmation--Use `browser_take_screenshot` to capture a final screenshot for the deployment summary. This screenshot should show the page in its final verified state.+App: [app name] ([app-id])+Screenshots: [if verification was done]+Next steps: Share with team, iterate on design, create additional pages+```-#### 9.5 Fix and Re-deploy-If structural or interactive issues are found:-1. Analyze the snapshot and screenshot for error details-2. Fix the code-3. Re-deploy using Step 8-4. Repeat verification (Steps 9.1–9.4) until the page works correctly+----**Common Playwright issues:**-- "Target page, context or browser has been closed" → retry the navigation-- "Ref not found" → take a fresh `browser_snapshot` before clicking any element-- Sign-in required → Playwright uses the system browser session; if not authenticated, the user must sign in manually first+## Edit Flow-### Step 10: Final Summary+For the edit flow (triggered when the `genpage-planner` returns+`{ "action": "edit" }`), see [edit-flow.md](edit-flow.md) in this folder.-After deployment and verification, provide:-- Confirmation of successful upload-- Screenshot of the page (if browser verification was done)-- How to find the page in the app-- Next steps (share with team, iterate on design)-- Offer to make updates or create additional pages\ No newline at end of file+The edit flow has its own 8 phases (Edit Phase 1-8): discover and select target+app + page via `pac model list` + `pac model genpage list`, download, generate+RuntimeTypes if needed, invoke `genpage-edit-planner`, apply the edit inline,+deploy, verify, summarize.diff --git a/plugins/model-apps/skills/genpage/edit-flow.md b/plugins/model-apps/skills/genpage/edit-flow.mdnew file mode 100644index 000000000..54067f2a1--- /dev/null+++ b/plugins/model-apps/skills/genpage/edit-flow.md@@ -0,0 +1,172 @@+# Edit Flow++The orchestrator follows this flow when the `genpage-planner` returns+`{ "action": "edit" }` in Phase 1 of the create flow. The skill delegates planning+to `genpage-edit-planner`, then applies the edit inline.++> **⚠️ CRITICAL — do NOT hallucinate app or page names.** App names and page+> names are discovered by running `pac model list` and `pac model genpage list+> --app-id <id>`. Never guess them from the repo, the conversation context,+> sample app names, or anywhere else. Always run the commands first, then+> present what the commands returned to the user.++## Edit Phase 1: Discover and Select Target App + Page++The planner has already validated prereqs and confirmed auth.++**CRITICAL — never guess or invent app names or page names.** You must discover+them by running the PAC CLI commands below. Hallucinating page names from context+(repo names, prior conversation, sample apps) is wrong and confuses the user.++### 1a. Discover available apps++```powershell+pac model list+```++This returns the list of model-driven apps in the active environment. Parse the+output for **App ID**, **Display Name**, and **Unique Name** fields.++Behavior by app count:+- **0 apps:** Tell the user "No model-driven apps found in this environment.+ You can't edit a page that doesn't exist — would you like to create one+ instead?" and stop the edit flow.+- **1 app:** Confirm with the user: "Found app **[Display Name]** ([app-id]).+ Use this one?" via `AskUserQuestion` with Yes / Cancel options.+- **N apps:** Present a multi-choice question via `AskUserQuestion`. Each option's+ label is the app's **Display Name** (truncate to <50 chars). The description+ includes the app-id GUID. Always include an "Other" option for the user to+ type an app-id or name directly.++Record the selected `<app-id>`.++### 1b. Discover existing pages in the selected app++```powershell+pac model genpage list --app-id <app-id>+```++This returns the list of generative pages already deployed in the selected app,+including **Page ID** and display name.++Behavior by page count:+- **0 pages:** Tell the user "This app has no generative pages to edit. Did+ you mean to create a new page?" and stop the edit flow.+- **1+ pages:** Present them via `AskUserQuestion`. Each option's label is the+ page's display name; the description includes the page-id GUID.++Record the selected `<page-id>`.++### 1c. Confirm selection++Restate the selection to the user before proceeding:++> "Editing **[page display name]** in app **[app display name]**.+> Continuing to download the existing page code…"++No `AskUserQuestion` here — this is a status update before the next phase.++## Edit Phase 2: Download Existing Page++```powershell+pac model genpage download `+ --app-id <app-id> `+ --page-id <page-id> `+ --output-directory <working-dir>+```++The download creates a `<working-dir>/<page-id>/` folder with fixed filenames:+`page.tsx` (source), `config.json` (entity list + model), `prompt.txt` (original+prompt). Downstream phases operate on `<working-dir>/<page-id>/page.tsx` for+editing and uploading, and read `config.json.dataSources` in Phase 3.++## Edit Phase 3: Generate RuntimeTypes (Conditional)++Read `<working-dir>/<page-id>/config.json`. If `dataSources` is non-empty, the+page uses Dataverse entities — generate the schema:++```powershell+pac model genpage generate-types `+ --data-sources "entity1,entity2" `+ --output-file <working-dir>/RuntimeTypes.ts+```++Pass the exact entity list from `config.json.dataSources`. If `dataSources` is an+empty array, the page is mock-data only — skip this phase.++## Edit Phase 4: Plan the Edit++Invoke the `genpage-edit-planner` agent via the `Task` tool. Pass:++- The user's edit intent: `$ARGUMENTS`+- The working directory (absolute path)+- The plugin root: `${CLAUDE_PLUGIN_ROOT}`+- The app-id and page-id+- The download directory: `<working-dir>/<page-id>/`++The planner reads `page.tsx`, `config.json`, and `prompt.txt` for context, gathers+any clarification from the user, presents the edit plan via plan mode, and writes+`<working-dir>/genpage-edit-plan.md` on approval. Wait for it to finish.++## Edit Phase 5: Apply the Edit++Read `<working-dir>/genpage-edit-plan.md` for the approved change list and+preservation constraints.++Also read:+- `${CLAUDE_PLUGIN_ROOT}/references/rules.md` — all code-gen+ rules still apply to edits (Fluent UI V9 only, makeStyles with tokens, WCAG AA,+ no `100vh`/`100vw`, etc.)+- `<working-dir>/RuntimeTypes.ts` — if generated in Edit Phase 3, for verified+ column names+- `<working-dir>/<page-id>/page.tsx` — the current source++Apply each change from the edit plan using targeted `Edit` operations on+`<working-dir>/<page-id>/page.tsx`. **Preserve the functionality** listed under+"Preservation Constraints" in the plan. Use ONLY verified column names from+RuntimeTypes.ts when the edit touches data access.++Do NOT rewrite the entire file. Use the minimum necessary `Edit` operations.++## Edit Phase 6: Deploy Updated Page++This is an **update** (existing page-id), so `--prompt` must describe the+**delta of changes only** — not a re-statement of the original page description.+See SKILL.md Phase 6 "`--prompt` semantics".++```powershell+pac model genpage upload `+ --app-id <app-id> `+ --page-id <page-id> `+ --code-file <working-dir>/<page-id>/page.tsx `+ --data-sources "entity1,entity2" `+ --prompt "<User's edit request — only the changes, not the full page>" `+ --model "<current-model-id>" `+ --agent-message "Description of what was changed in this upload"+```++Use `--page-id` for updates. Omit `--add-to-sitemap` (the page is already in+the sitemap).+Omit `--data-sources` when `config.json.dataSources` was empty.++## Edit Phase 7: Verify (Optional)++Offer browser verification via `AskUserQuestion` (same flow as Phase 7 in the create flow — see SKILL.md).++## Edit Phase 8: Summary++Write a `workflow-log.md` file to the working directory (same purpose as Phase 8 in+the create flow).++Then present a summary to the user:++```+## Edit Complete++| File | Changes | Status |+|------|---------|--------|+| <page-id>/page.tsx | <N changes> | Deployed |++App: [app name] ([app-id])+Page ID: [page-id]+```diff --git a/plugins/model-apps/skills/genpage/verify-flow.md b/plugins/model-apps/skills/genpage/verify-flow.mdnew file mode 100644index 000000000..b0579ca94--- /dev/null+++ b/plugins/model-apps/skills/genpage/verify-flow.md@@ -0,0 +1,106 @@+# Verify Flow (optional Phase 7)++After Phase 6 deployment, the orchestrator asks the user whether to verify in+the browser via Playwright. **This file is only loaded when the user opts in.**+If they skip, the orchestrator goes straight to Phase 8.++## 7.1 Navigate and Authenticate++Construct the URL from the environment base URL, app-id, and page-id returned by upload:++```+https://<env>.crm.dynamics.com/main.aspx?appid=<app-id>&pagetype=genux&id=<page-id>+```++1. Use `browser_navigate` to open the constructed URL.+2. If you get a "page closed" or "browser closed" error, retry navigation once.+3. Use `browser_snapshot` to capture the page state. Always snapshot before any clicks.+4. If a sign-in page appears, use `browser_click` on the sign-in option, then `browser_wait_for`.+5. Use `browser_wait_for` for the genux page content to render.++## 7.2 Structural Verification (Including Below-the-Fold Content)++Take an initial `browser_snapshot` to capture above-the-fold content.++**Check whether the page extends beyond the viewport:**++```javascript+browser_evaluate(() => ({+ scrollHeight: document.documentElement.scrollHeight,+ clientHeight: document.documentElement.clientHeight+}))+```++**If `scrollHeight > clientHeight`, the page has content below the fold.**+Scroll through to verify all sections render:++1. Scroll to the bottom:+ ```javascript+ browser_evaluate(() => window.scrollTo(0, document.documentElement.scrollHeight))+ ```+2. Take a fresh `browser_snapshot` to capture below-the-fold content.+3. For very tall pages (long lists, multi-section dashboards), scroll+ incrementally and snapshot each section:+ ```javascript+ browser_evaluate(() => window.scrollBy(0, window.innerHeight))+ ```+4. Use `browser_take_screenshot` at each scroll position to capture visuals.++Verify expected DOM elements are present somewhere on the page (not just+above-the-fold):++| Page Type | Expected Elements |+|-----------|-------------------|+| Data Grid | Table/grid element with column headers and data rows |+| Form / Wizard | Form fields (inputs, dropdowns) and Next/Back buttons |+| CRUD | Data grid + action buttons (Add, Edit, Delete) |+| Dashboard | Multiple sections/panels with headings |+| Card Layout | Card containers with content |+| File Upload | File input or drop zone element |+| Navigation Sidebar | Nav element with menu items |++**Scroll back to the top before interactive testing:**+```javascript+browser_evaluate(() => window.scrollTo(0, 0))+```++## 7.3 Interactive Testing++Test interactions based on the page type. **Always take a fresh+`browser_snapshot` before each click.** Move on after 2 failed attempts per+interaction.++| Page Type | Test Action | Expected Result |+|-----------|-------------|-----------------|+| Data Grid | Click a column header | Sort order changes |+| Form / Wizard | Click Next button | Step advances |+| CRUD | Click Add/New button | Form or dialog appears |+| Dashboard | Click a tab or section toggle | Content area updates |+| Card Layout | Click a card action button | Card responds |+| Navigation Sidebar | Click a menu item | Content area updates |++**Skip these:** Dataverse data mutations, file upload dialogs, complex form+validation, pagination.++## 7.4 Visual Confirmation++Use `browser_take_screenshot` to capture the page in its final verified state.++For pages taller than the viewport, capture multiple screenshots by scrolling:+top (`window.scrollTo(0, 0)`), one or more intermediate positions for long+pages, and bottom+(`window.scrollTo(0, document.documentElement.scrollHeight)`). This gives a+complete visual record for the deployment summary.++## 7.5 Fix and Re-deploy++If issues are found: fix the code, re-deploy using the **update form** from+Phase 6 (`--page-id`, no `--add-to-sitemap`). Per the "`--prompt` semantics"+rule, `--prompt` for this re-deploy describes the fix delta only — e.g.+`"Fix sort handler on Name column; correct accidental DataGrid type prop"` —+not a re-statement of the full page description.++**Common Playwright issues:**+- "Target page, context or browser has been closed" → retry the navigation.+- "Ref not found" → take a fresh `browser_snapshot` before clicking any element.+- Sign-in required → user must sign in manually first.