Add EnterpriseAppShell-ShadcnUI sample - #452
Open
Marcus Castro (MarcusCastroMSFT) wants to merge 1 commit into
Open
Add EnterpriseAppShell-ShadcnUI sample#452Marcus Castro (MarcusCastroMSFT) wants to merge 1 commit into
Marcus Castro (MarcusCastroMSFT) wants to merge 1 commit into
Conversation
A production-shaped starter for enterprise apps on Power Apps Code Apps: React 19, TypeScript, Vite 7, Tailwind CSS v4 and shadcn/ui, with 14 example apps wired into a real application shell (sidebar, hash routing, derived breadcrumbs, theming, suspense skeletons, error boundary). Apps are registered in a single module registry, so removing one is deleting a folder and one line. Also adds the sample to the root README table.
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new sample,
samples/EnterpriseAppShell-ShadcnUI— a production-shaped starter for building enterprise applications on Power Apps Code Apps.The gap it fills:
templates/startergives you a correctly configured, minimal code app and leaves the application design to you. This sample takes the opposite bet — the shell is already built, and fourteen worked example apps show how a page is put together, so the first thing you do is delete rather than assemble.What's in it
src/app/plus one line insrc/app/modules.ts. Routes, sidebar entry and breadcrumbs are all derived from it, so removing an app is two actions and adding one is three. That constraint is what the whole structure is built around..github/copilot-instructions.md,CLAUDE.mdorAGENTS.md.Stack
React 19 · TypeScript 5.9 (strict,
verbatimModuleSyntax) · Vite 7 · Tailwind CSS v4 · shadcn/ui · react-router 8 (HashRouter) · @tanstack/react-table · recharts · dnd kit (@dnd-kit) · maplibre-gl · sonner · zod ·@microsoft/power-appsVerification
Run from
samples/EnterpriseAppShell-ShadcnUIafter this branch was assembled:npm cinpx tsc -b --noEmit --forcenpm run lintnpm run builddist/producedThe 8 lint errors are
react-refresh/only-export-componentsin shadcn vendor files plus tworeact-hooks/set-state-in-effectinherited from the shadcn dashboard block. They are called out explicitly in the sample README so contributors don't "fix" vendor code.Notes
power.config.jsonis not committed — it holds a tenant-specific environment GUID, andpa app initwrites it. This matches the direction of Modernize Power Apps code app samples #448 /ergonza/removePowerConfigFromSample.npm run devworks with no Power Platform connection at all. The README documents the Dataverse and SharePoint paths for swapping it out.VITE_MAPBOX_TOKENin.env.exampleis optional.package-lock.jsonis included, matchingtanstack-app.README.mdgains one row in the/samplestable.A Fluent UI sibling of this sample is planned, so the two can be compared side by side.
Checklist
samples/in its own folderREADME.mdwith screenshots, setup, andpaCLI stepsnpm ci