From 8dcc113e8ef881087a556ac7bdd8dffe5cb89915 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:57:08 +0000 Subject: [PATCH 1/3] Initial plan From 8b2110995fab2d8f7bb375f767c63bc7a4d70710 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:00:29 +0000 Subject: [PATCH 2/3] 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> --- examples/crm/src/pages/help.page.ts | 46 +++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/examples/crm/src/pages/help.page.ts b/examples/crm/src/pages/help.page.ts index 5233e75ae..e5438478f 100644 --- a/examples/crm/src/pages/help.page.ts +++ b/examples/crm/src/pages/help.page.ts @@ -7,19 +7,41 @@ export const HelpPage = { name: 'main', components: [ { - type: 'container', + type: 'markdown', properties: { - className: 'prose max-w-3xl mx-auto p-8 text-foreground', - children: [ - { type: 'text', properties: { value: '# CRM Help Guide', className: 'text-3xl font-bold mb-6 block' } }, - { 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' } }, - { type: 'text', properties: { value: '## Navigation', className: 'text-xl font-semibold mb-3 block' } }, - { 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' } }, - { type: 'text', properties: { value: '## View Types', className: 'text-xl font-semibold mb-3 block' } }, - { 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' } }, - { type: 'text', properties: { value: '## Keyboard Shortcuts', className: 'text-xl font-semibold mb-3 block' } }, - { 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' } }, - ] + className: 'max-w-3xl mx-auto p-8', + content: [ + '# CRM Help Guide', + '', + 'Welcome to the CRM application. This guide covers the key features available in your sales workspace.', + '', + '## Navigation', + '', + '- **Dashboard** — KPI metrics, revenue trends, pipeline charts', + '- **Contacts** — Customer and lead management with map view', + '- **Accounts** — Company records with geographic map', + '- **Opportunities** — Sales pipeline with Kanban board', + '- **Projects** — Task tracking with Gantt and Timeline views', + '- **Calendar** — Events and meetings', + '- **Orders & Products** — Sales catalog and order processing', + '', + '## View Types', + '', + 'Each object supports multiple view types. Use the view switcher in the toolbar to change between:', + '', + '- **Grid** — Tabular data with sorting and filtering', + '- **Kanban** — Drag-and-drop board (Opportunities → Pipeline)', + '- **Calendar** — Date-based event view (Events → Calendar)', + '- **Gantt** — Project timeline (Projects → Gantt View)', + '- **Map** — Geographic visualization (Accounts → Map View)', + '- **Gallery** — Visual cards (Products → Product Gallery)', + '', + '## Keyboard Shortcuts', + '', + '- **⌘+K** — Open Command Palette for quick navigation', + '- **⌘+N** — Create new record', + '- Click any record row to open the detail panel', + ].join('\n'), } } ] From 12ae1363401ad47fb64ce156cd51586bc3188e4d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 16:04:59 +0000 Subject: [PATCH 3/3] fix: register markdown plugin in BrowserSimulation tests Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- apps/console/src/__tests__/BrowserSimulation.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/console/src/__tests__/BrowserSimulation.test.tsx b/apps/console/src/__tests__/BrowserSimulation.test.tsx index c212ab51f..235e6d0c5 100644 --- a/apps/console/src/__tests__/BrowserSimulation.test.tsx +++ b/apps/console/src/__tests__/BrowserSimulation.test.tsx @@ -5,6 +5,7 @@ import { MemoryRouter } from 'react-router-dom'; import '@object-ui/fields'; // Ensure fields are registered for ObjectForm tests import '@object-ui/plugin-dashboard'; // Ensure dashboard component is registered import '@object-ui/plugin-report'; // Ensure report component is registered +import '@object-ui/plugin-markdown'; // Ensure markdown component is registered // ----------------------------------------------------------------------------- // SYSTEM INTEGRATION TEST: Console Application