Skip to content

Commit 88c4e0a

Browse files
authored
feat(templates): add a Welcome portal page template for an employee intranet home (not ready yet) (#11928)
* feat(templates): add a Portal page template for an employee intranet home (not ready yet) * test(cli): the no-icon-set search golden counts the portal template * fix(templates): the portal template declares the icons it imports Courses and the help card use icons that have Astryx icon definitions. * chore: re-run review * fix(templates): rename the portal template to welcome-portal "Portal" also names the React overlay technique, so a bare template id of `portal` answered overlay questions in search and component lookups. --------- Co-authored-by: Joey Farina <josephfarina@users.noreply.github.com>
1 parent f7e46c8 commit 88c4e0a

9 files changed

Lines changed: 594 additions & 2 deletions

File tree

‎.changeset/portal-template.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/cli': patch
3+
---
4+
5+
[feat] Add a Welcome portal page template (`welcome-portal`) for an employee intranet home: a greeting with a search box that narrows the destination cards, a "Start here" onboarding checklist with progress, and a rail of favorites, recent pages, announcements and help. It is not ready yet, so `astryx build` does not start it.
6+
7+
@josephfarina

‎apps/docsite/src/components/templateComponents.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ export const TEMPLATE_LOADERS: Record<string, () => Promise<TemplateModule>> = {
132132
import('../../../../packages/cli/assets/templates/pages/table-page/page'),
133133
'table-tree': () =>
134134
import('../../../../packages/cli/assets/templates/pages/table-tree/page'),
135+
'welcome-portal': () =>
136+
import('../../../../packages/cli/assets/templates/pages/welcome-portal/page'),
135137
'work-item-detail': () =>
136138
import('../../../../packages/cli/assets/templates/pages/work-item-detail/page'),
137139
};

‎apps/sandbox/scripts/next-export-routes.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@
859859
"/templates/useTreeFocusHookUsage/",
860860
"/templates/useTruncationHookUsage/",
861861
"/templates/useTypeaheadHookUsage/",
862+
"/templates/welcome-portal/",
862863
"/templates/work-item-detail/",
863864
"/themes/",
864865
"/tools/"

‎internal/shadcn-registry/routes.lock.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5736,6 +5736,11 @@
57365736
"path": "templates/theme-showcase",
57375737
"aliases": []
57385738
},
5739+
{
5740+
"name": "template-welcome-portal",
5741+
"path": "templates/welcome-portal",
5742+
"aliases": []
5743+
},
57395744
{
57405745
"name": "template-work-item-detail",
57415746
"path": "templates/work-item-detail",

0 commit comments

Comments
 (0)