Skip to content

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

3.7 KB
Raw Blame

Workflow Log — Eval 13: Contact list with localization

Phase 0 — Working directory setup

  • Working directory created: contact-localized/
  • Plugin root: D:\Projects\power-platform-skills\plugins\model-apps

Phase 1 — Planner (genpage-planner agent invoked via Task)

Prereq checks

  • node --version → v20.11.0
  • pac help → PAC CLI Version 2.11.0 (> 2.10.0 verified)

Auth check

Entity discovery

  • pac model list-tables --search 'contact' — contact entity exists

Language discovery

  • node "${PLUGIN_ROOT}/scripts/list-languages.js" --env 'https://contosobapenv0002.crm10.dynamics.com' Result: {"ok":true,"baseLanguage":{"lcid":1033,"code":"en-US","name":"English (United States)","rtl":false},"languages":[{"lcid":1033,"code":"en-US","name":"English (United States)","rtl":false},{"lcid":1025,"code":"ar-SA","name":"Arabic (Saudi Arabia)","rtl":true},{"lcid":1036,"code":"fr-FR","name":"French (France)","rtl":false}],"unmapped":[],"summary":["1033 en-US \u2014 RTL: No","1025 ar-SA \u2014 RTL: Yes","1036 fr-FR \u2014 RTL: No"]}
  • Multiple non-English languages detected → planner activates localization code path
  • Arabic detected as RTL language

Discovery questions (AskUserQuestion)

  • Question 1 (new or edit): user answered "Create new page(s)"
  • Question 2 (data source): user answered "Dataverse entity: contact"
  • Question 3 (specific requirements): "Contact list display"
  • Question 4 (app selection): user selected existing app "Sales Hub"

Solution selection

  • Build is code-only → solution selection question SKIPPED
  • Defaults written to plan: Solution: Default, Publisher Prefix: new

Plan presented

  • EnterPlanMode called with plan including Localization section; user approved

Plan written

  • genpage-plan.md written; ## Localization lists detected languages (1033, 1025, 1036) and RTL flag on Arabic
  • references/localization.md loaded conditionally

Phase 2 — Entity creation

  • SKIPPED (contact exists)

Phase 3 — App creation

  • SKIPPED (existing app selected)

Phase 4 — Schema generation

  • pac model genpage generate-types --data-sources 'contact' --output-file contact-localized/RuntimeTypes.ts

Phase 5b — Single-page fast path

  • Plan has 1 page → fast path taken (inlined build, no Task subagent dispatched)
  • Data mode: dataverse
  • Read sample: plugins/model-apps/samples/9-list-with-caching.tsx (Dataverse list pattern)
  • Read ${PLUGIN_ROOT}/references/localization.md (multi-language + RTL pattern)
  • Read ${PLUGIN_ROOT}/references/verified-icons.txt
  • Wrote page.tsx with:
    • Xrm.Utility.getGlobalContext().userSettings.languageId for language detection
    • LOCALE_MAP for 1033/1025/1036 → BCP-47 + isRtl
    • TRANSLATIONS dictionary with en-US, ar-SA, fr-FR entries
    • translate() helper t(key)
    • dir attribute set to rtl when locale.isRtl
    • Logical CSS properties (paddingInlineStart/End, marginInlineStart, paddingBlock)
  • Post-write icon verification: PeopleRegular verified against verified-icons.txt

Phase 6 — Deployment

  • pac model genpage upload --app-id 55555555-4444-5555-6666-777777777777 --code-file contact-localized/page.tsx --data-sources 'contact' --prompt "Build a page showing Contact records with name, email, and phone." --model claude-sonnet --name "Contacts (Localized)" --agent-message "Contact list with en-US/ar-SA/fr-FR translations and RTL support" --add-to-sitemap

Phase 8 — Summary

  • 1 page deployed: page.tsx → "Contacts (Localized)" in Sales Hub
  • Localization: en-US, ar-SA (RTL), fr-FR
  • No entities created