Skip to content

Commit 3eed89b

Browse files
authored
Merge pull request #947 from objectstack-ai/copilot/fix-help-page-markdown-rendering
2 parents 1464f4c + 12ae136 commit 3eed89b

2 files changed

Lines changed: 35 additions & 12 deletions

File tree

apps/console/src/__tests__/BrowserSimulation.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { MemoryRouter } from 'react-router-dom';
55
import '@object-ui/fields'; // Ensure fields are registered for ObjectForm tests
66
import '@object-ui/plugin-dashboard'; // Ensure dashboard component is registered
77
import '@object-ui/plugin-report'; // Ensure report component is registered
8+
import '@object-ui/plugin-markdown'; // Ensure markdown component is registered
89

910
// -----------------------------------------------------------------------------
1011
// SYSTEM INTEGRATION TEST: Console Application

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)