# microsoft/powerappscodeapps architecture

> Architecture diagram of the GitHub repository microsoft/powerappscodeapps, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/powerappscodeapps
- Repository: https://github.com/microsoft/powerappscodeapps

## Overview

This repository provides Power Apps code-app starting templates and includes two release-planner applications. In the planner, users explore release-plan features, with calendar, timeline, filtering, selection, and copy/share interactions; the full version also mounts a Copilot chat widget. The starter template supplies a React app shell with routing and theme, toast, and query providers, while the Vite template is a minimal counter demo. The README describes broader connector and data-source patterns, but the corresponding sample implementations are not in the supplied tree; planner service internals are likewise unsampled.

Main entry points: [`templates/starter/src/App.tsx`](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/App.tsx) (Starter shell), [`powercat/release-planner/Release Planner/src/App.tsx`](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/App.tsx) (Planner composition), [`powercat/release-planner/Release Planner/src/main.tsx`](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/main.tsx) (Planner entry), [`powercat/release-planner/Release Planner Lite/src/main.tsx`](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/main.tsx) (Lite entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planner["Release Planner"]
  node_planner_entry["Planner entry<br/>[main.tsx]"]
  node_planner_app["Planner composition<br/>[App.tsx]"]
  node_planner_explorer["Release explorer"]
  node_planner_chat["Copilot chat"]
  node_lite_entry["Lite entry<br/>[main.tsx]"]
  node_lite_app["Lite composition<br/>[App.tsx]"]
  node_lite_explorer["Lite explorer"]
end

subgraph group_starter["Starter Template"]
  node_starter_entry["Starter entry<br/>[main.tsx]"]
  node_starter_app["Starter shell<br/>[App.tsx]"]
  node_query_provider["Query provider<br/>[query-provider.tsx]"]
  node_theme_provider["Theme provider<br/>[theme-provider.tsx]"]
  node_sonner_provider["Toast provider"]
  node_router["App router<br/>[router.tsx]"]
  node_home_page["Home page<br/>[home.tsx]"]
  node_layout_page["Page layout<br/>[_layout.tsx]"]
  node_not_found["Not found page<br/>[not-found.tsx]"]
  node_theme_hook["Theme hook<br/>[use-theme.ts]"]
  node_ui_components["UI components"]
end

subgraph group_vite["Minimal Vite Template"]
  node_vite_entry["Vite entry<br/>[main.tsx]"]
  node_vite_app["Counter demo<br/>[App.tsx]"]
end

node_user(("App user"))

node_user -.->|"opens app"| node_planner_entry
node_planner_entry -->|"renders"| node_planner_app
node_planner_app -->|"renders"| node_planner_explorer
node_planner_app -->|"renders"| node_planner_chat
node_user -.->|"opens app"| node_lite_entry
node_lite_entry -->|"renders"| node_lite_app
node_lite_app -->|"renders"| node_lite_explorer
node_user -.->|"opens app"| node_starter_entry
node_starter_entry -->|"renders"| node_starter_app
node_starter_app -->|"wraps"| node_theme_provider
node_starter_app -->|"wraps"| node_sonner_provider
node_starter_app -->|"wraps"| node_query_provider
node_starter_app -->|"routes through"| node_router
node_user -.->|"opens app"| node_vite_entry
node_vite_entry -->|"renders"| node_vite_app

click node_planner_entry "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/main.tsx"
click node_planner_app "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/App.tsx"
click node_planner_explorer "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/ReleasePlansExplorer.tsx"
click node_planner_chat "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/CopilotChatWidget.tsx"
click node_lite_entry "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/main.tsx"
click node_lite_app "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/App.tsx"
click node_lite_explorer "https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/ReleasePlansExplorer.tsx"
click node_starter_entry "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/main.tsx"
click node_starter_app "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/App.tsx"
click node_query_provider "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/providers/query-provider.tsx"
click node_theme_provider "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/providers/theme-provider.tsx"
click node_sonner_provider "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/providers/sonner-provider.tsx"
click node_router "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/router.tsx"
click node_home_page "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/pages/home.tsx"
click node_layout_page "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/pages/_layout.tsx"
click node_not_found "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/pages/not-found.tsx"
click node_theme_hook "https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/hooks/use-theme.ts"
click node_ui_components "https://github.com/microsoft/powerappscodeapps/tree/main/templates/starter/src/components/ui"
click node_vite_entry "https://github.com/microsoft/powerappscodeapps/blob/main/templates/vite/src/main.tsx"
click node_vite_app "https://github.com/microsoft/powerappscodeapps/blob/main/templates/vite/src/App.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_planner_entry,node_planner_app,node_planner_explorer,node_planner_chat,node_lite_entry,node_lite_app,node_lite_explorer,node_user toneBlue
class node_starter_entry,node_starter_app,node_query_provider,node_theme_provider,node_sonner_provider,node_router,node_home_page,node_layout_page,node_not_found,node_theme_hook,node_ui_components toneAmber
class node_vite_entry,node_vite_app toneMint
```

## Components

### Release Planner

- [Planner entry](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/main.tsx): `powercat/release-planner/Release Planner/src/main.tsx`
- [Planner composition](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/App.tsx): `powercat/release-planner/Release Planner/src/App.tsx`
- [Release explorer](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/ReleasePlansExplorer.tsx): `powercat/release-planner/Release Planner/src/ReleasePlansExplorer.tsx`
- [Copilot chat](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner/src/CopilotChatWidget.tsx): `powercat/release-planner/Release Planner/src/CopilotChatWidget.tsx`
- [Lite entry](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/main.tsx): `powercat/release-planner/Release Planner Lite/src/main.tsx`
- [Lite composition](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/App.tsx): `powercat/release-planner/Release Planner Lite/src/App.tsx`
- [Lite explorer](https://github.com/microsoft/powerappscodeapps/blob/main/powercat/release-planner/Release%20Planner%20Lite/src/ReleasePlansExplorer.tsx): `powercat/release-planner/Release Planner Lite/src/ReleasePlansExplorer.tsx`

### Starter Template

- [Starter entry](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/main.tsx): `templates/starter/src/main.tsx`
- [Starter shell](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/App.tsx): `templates/starter/src/App.tsx`
- [Query provider](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/providers/query-provider.tsx): `templates/starter/src/providers/query-provider.tsx`
- [Theme provider](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/providers/theme-provider.tsx): `templates/starter/src/providers/theme-provider.tsx`
- [Toast provider](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/providers/sonner-provider.tsx): `templates/starter/src/providers/sonner-provider.tsx`
- [App router](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/router.tsx): `templates/starter/src/router.tsx`
- [Home page](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/pages/home.tsx): `templates/starter/src/pages/home.tsx`
- [Page layout](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/pages/_layout.tsx): `templates/starter/src/pages/_layout.tsx`
- [Not found page](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/pages/not-found.tsx): `templates/starter/src/pages/not-found.tsx`
- [Theme hook](https://github.com/microsoft/powerappscodeapps/blob/main/templates/starter/src/hooks/use-theme.ts): `templates/starter/src/hooks/use-theme.ts`
- [UI components](https://github.com/microsoft/powerappscodeapps/tree/main/templates/starter/src/components/ui): `templates/starter/src/components/ui`

### Minimal Vite Template

- [Vite entry](https://github.com/microsoft/powerappscodeapps/blob/main/templates/vite/src/main.tsx): `templates/vite/src/main.tsx`
- [Counter demo](https://github.com/microsoft/powerappscodeapps/blob/main/templates/vite/src/App.tsx): `templates/vite/src/App.tsx`

### Other components

- **App user**

## Connections

- App user → Planner entry: opens app
- Planner entry → Planner composition: renders (evidence: `powercat/release-planner/Release Planner/src/main.tsx`)
- Planner composition → Release explorer: renders (evidence: `powercat/release-planner/Release Planner/src/App.tsx`)
- Planner composition → Copilot chat: renders (evidence: `powercat/release-planner/Release Planner/src/App.tsx`)
- App user → Lite entry: opens app
- Lite entry → Lite composition: renders (evidence: `powercat/release-planner/Release Planner Lite/src/main.tsx`)
- Lite composition → Lite explorer: renders (evidence: `powercat/release-planner/Release Planner Lite/src/App.tsx`)
- App user → Starter entry: opens app
- Starter entry → Starter shell: renders (evidence: `templates/starter/src/main.tsx`)
- Starter shell → Theme provider: wraps (evidence: `templates/starter/src/App.tsx`)
- Starter shell → Toast provider: wraps (evidence: `templates/starter/src/App.tsx`)
- Starter shell → Query provider: wraps (evidence: `templates/starter/src/App.tsx`)
- Starter shell → App router: routes through (evidence: `templates/starter/src/App.tsx`)
- App user → Vite entry: opens app
- Vite entry → Counter demo: renders (evidence: `templates/vite/src/main.tsx`)
