Skip to content

Commit 8b21109

Browse files
Copilothotlong
andcommitted
fix: use markdown component for Help page to render formatted content
Replace multiple type:'text' components with a single type:'markdown' component that properly renders Markdown syntax (headers, lists, bold). The markdown plugin is already registered in the console app. Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8dcc113 commit 8b21109

1 file changed

Lines changed: 34 additions & 12 deletions

File tree

examples/crm/src/pages/help.page.ts

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,41 @@ export const HelpPage = {
77
name: 'main',
88
components: [
99
{
10-
type: 'container',
10+
type: 'markdown',
1111
properties: {
12-
className: 'prose max-w-3xl mx-auto p-8 text-foreground',
13-
children: [
14-
{ type: 'text', properties: { value: '# CRM Help Guide', className: 'text-3xl font-bold mb-6 block' } },
15-
{ type: 'text', properties: { value: 'Welcome to the CRM application. This guide covers the key features available in your sales workspace.', className: 'text-muted-foreground mb-6 block' } },
16-
{ type: 'text', properties: { value: '## Navigation', className: 'text-xl font-semibold mb-3 block' } },
17-
{ type: 'text', properties: { value: '- **Dashboard** — KPI metrics, revenue trends, pipeline charts\n- **Contacts** — Customer and lead management with map view\n- **Accounts** — Company records with geographic map\n- **Opportunities** — Sales pipeline with Kanban board\n- **Projects** — Task tracking with Gantt and Timeline views\n- **Calendar** — Events and meetings\n- **Orders & Products** — Sales catalog and order processing', className: 'whitespace-pre-line mb-6 block' } },
18-
{ type: 'text', properties: { value: '## View Types', className: 'text-xl font-semibold mb-3 block' } },
19-
{ type: 'text', properties: { value: 'Each object supports multiple view types. Use the view switcher in the toolbar to change between:\n- **Grid** — Tabular data with sorting and filtering\n- **Kanban** — Drag-and-drop board (Opportunities → Pipeline)\n- **Calendar** — Date-based event view (Events → Calendar)\n- **Gantt** — Project timeline (Projects → Gantt View)\n- **Map** — Geographic visualization (Accounts → Map View)\n- **Gallery** — Visual cards (Products → Product Gallery)', className: 'whitespace-pre-line mb-6 block' } },
20-
{ type: 'text', properties: { value: '## Keyboard Shortcuts', className: 'text-xl font-semibold mb-3 block' } },
21-
{ type: 'text', properties: { value: '- **⌘+K** — Open Command Palette for quick navigation\n- **⌘+N** — Create new record\n- Click any record row to open the detail panel', className: 'whitespace-pre-line block' } },
22-
]
12+
className: 'max-w-3xl mx-auto p-8',
13+
content: [
14+
'# CRM Help Guide',
15+
'',
16+
'Welcome to the CRM application. This guide covers the key features available in your sales workspace.',
17+
'',
18+
'## Navigation',
19+
'',
20+
'- **Dashboard** — KPI metrics, revenue trends, pipeline charts',
21+
'- **Contacts** — Customer and lead management with map view',
22+
'- **Accounts** — Company records with geographic map',
23+
'- **Opportunities** — Sales pipeline with Kanban board',
24+
'- **Projects** — Task tracking with Gantt and Timeline views',
25+
'- **Calendar** — Events and meetings',
26+
'- **Orders & Products** — Sales catalog and order processing',
27+
'',
28+
'## View Types',
29+
'',
30+
'Each object supports multiple view types. Use the view switcher in the toolbar to change between:',
31+
'',
32+
'- **Grid** — Tabular data with sorting and filtering',
33+
'- **Kanban** — Drag-and-drop board (Opportunities → Pipeline)',
34+
'- **Calendar** — Date-based event view (Events → Calendar)',
35+
'- **Gantt** — Project timeline (Projects → Gantt View)',
36+
'- **Map** — Geographic visualization (Accounts → Map View)',
37+
'- **Gallery** — Visual cards (Products → Product Gallery)',
38+
'',
39+
'## Keyboard Shortcuts',
40+
'',
41+
'- **⌘+K** — Open Command Palette for quick navigation',
42+
'- **⌘+N** — Create new record',
43+
'- Click any record row to open the detail panel',
44+
].join('\n'),
2345
}
2446
}
2547
]

0 commit comments

Comments
 (0)