Skip to content

Commit 61d5180

Browse files
engalarclaude
authored andcommitted
feat: WidgetDemo baseline scripts and widget analysis
MDL baseline scripts for reproducible WidgetDemo module generation: - 01-domain-model.mdl: 3 enums, 2 entities, 1 association - 01b-snippet.mdl: ButtonShowcase snippet - 02-showcase-page.mdl: 95-widget showcase (62 native, 33 pluggable) - 03-seed-and-navigate.mdl: seed data microflow + navigation WIDGET_ANALYSIS.md: classification of all 95 widgets by type. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4d40cf6 commit 61d5180

5 files changed

Lines changed: 717 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
-- WidgetDemo: self-contained domain model (no external dependencies)
2+
-- Provides entities and enumerations for the widget showcase page.
3+
4+
CREATE ENUMERATION WidgetDemo.ENUM_Priority (
5+
LOW 'Low',
6+
MEDIUM 'Medium',
7+
HIGH 'High',
8+
CRITICAL 'Critical'
9+
);
10+
11+
CREATE ENUMERATION WidgetDemo.ENUM_Status (
12+
DRAFT 'Draft',
13+
ACTIVE 'Active',
14+
COMPLETED 'Completed',
15+
ARCHIVED 'Archived'
16+
);
17+
18+
CREATE ENUMERATION WidgetDemo.ENUM_Category (
19+
GENERAL 'General',
20+
INPUT 'Input',
21+
DISPLAY 'Display',
22+
STRUCTURE 'Structure',
23+
DATA_DISPLAY 'Data Display'
24+
);
25+
26+
CREATE PERSISTENT ENTITY WidgetDemo.DemoItem (
27+
Title: String(unlimited) NOT NULL,
28+
Description: String(unlimited),
29+
Code: String(unlimited),
30+
Category: Enumeration(WidgetDemo.ENUM_Category) DEFAULT WidgetDemo.ENUM_Category.GENERAL,
31+
Priority: Enumeration(WidgetDemo.ENUM_Priority) DEFAULT WidgetDemo.ENUM_Priority.MEDIUM,
32+
ItemStatus: Enumeration(WidgetDemo.ENUM_Status) DEFAULT WidgetDemo.ENUM_Status.DRAFT,
33+
IsActive: Boolean DEFAULT true,
34+
Score: Integer DEFAULT 0,
35+
Amount: Decimal DEFAULT 0,
36+
DateCreated: DateTime,
37+
DueDate: DateTime,
38+
Progress: Decimal DEFAULT 0,
39+
Rating: Integer DEFAULT 3,
40+
Notes: String(unlimited),
41+
ImageUrl: String(unlimited)
42+
);
43+
44+
CREATE NON-PERSISTENT ENTITY WidgetDemo.Helper (
45+
Attribute: Enumeration(WidgetDemo.ENUM_Category) DEFAULT WidgetDemo.ENUM_Category.GENERAL
46+
);
47+
48+
CREATE ASSOCIATION WidgetDemo.Helper_DemoItem (
49+
FROM WidgetDemo.Helper TO WidgetDemo.DemoItem,
50+
Type: ReferenceSet
51+
);
52+
53+
GRANT WidgetDemo.User ON WidgetDemo.DemoItem (CREATE, DELETE, READ *, WRITE *);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- WidgetDemo: Button showcase snippet (referenced by 02-showcase-page)
2+
3+
CREATE SNIPPET WidgetDemo.SNIPPET_ButtonShowcase {
4+
ACTIONBUTTON btnInfo (Caption: 'Info Button', Action: CLOSE_PAGE, ButtonStyle: Info)
5+
ACTIONBUTTON btnLink (Caption: 'Link Button', Action: CLOSE_PAGE, ButtonStyle: Link)
6+
}

0 commit comments

Comments
 (0)