@stacksjs/defaults 0.75.539 → 0.75.542
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/AGENTS.md +2 -0
- package/ai/skills/stacks-actions/SKILL.md +1 -1
- package/ai/skills/stacks-auth/SKILL.md +8 -1
- package/ai/skills/stacks-dashboard/SKILL.md +196 -3
- package/ai/skills/stacks-dependencies/SKILL.md +46 -0
- package/ai/skills/stacks-development/SKILL.md +1 -1
- package/ai/skills/stacks-flow/SKILL.md +7 -0
- package/ai/skills/stacks-hq/SKILL.md +146 -0
- package/ai/skills/stacks-models/SKILL.md +21 -3
- package/ai/skills/stacks-native/CATALOG.md +22 -9
- package/ai/skills/stacks-new-app/SKILL.md +175 -0
- package/ai/skills/stacks-repl/SKILL.md +76 -43
- package/ai/skills/stacks-stx/SKILL.md +6 -2
- package/ai/skills/stacks-upstream/SKILL.md +188 -0
- package/ai/skills/stacks-writing-for-agents/SKILL.md +1 -1
- package/app/Actions/Dashboard/Data/UserIndexAction.ts +20 -2
- package/app/Actions/Dashboard/Models/ModelDestroyAction.ts +48 -12
- package/app/Actions/Dashboard/Models/ModelOptionsAction.ts +103 -0
- package/app/Actions/Dashboard/Models/ModelRelatedAction.ts +42 -0
- package/app/Actions/Dashboard/Models/ModelShowAction.ts +75 -12
- package/app/Actions/Dashboard/Models/ModelStoreAction.ts +7 -1
- package/app/Actions/Dashboard/Models/ModelUpdateAction.ts +16 -2
- package/app/Actions/Dashboard/Models/model-destroy.ts +75 -0
- package/app/Actions/Dashboard/Models/model-options.ts +56 -0
- package/app/Actions/Dashboard/Models/model-related.ts +202 -0
- package/app/Actions/Dashboard/Models/model-relations.ts +172 -0
- package/app/Actions/Dashboard/Models/model-write.ts +240 -51
- package/app/Actions/Dashboard/Users/UserInviteAction.ts +50 -0
- package/app/Actions/Dashboard/Users/user-invitation.ts +110 -0
- package/app/Models/Activity.ts +4 -0
- package/app/Models/AnalyticsEvent.ts +4 -0
- package/app/Models/Automation.ts +4 -0
- package/app/Models/AutomationRun.ts +4 -0
- package/app/Models/Board.ts +4 -1
- package/app/Models/BoardColumn.ts +4 -1
- package/app/Models/Campaign.ts +4 -0
- package/app/Models/CampaignSend.ts +4 -0
- package/app/Models/CampaignVariant.ts +4 -0
- package/app/Models/Card.ts +4 -1
- package/app/Models/CardAttachment.ts +4 -0
- package/app/Models/CommunicationSuppression.ts +4 -0
- package/app/Models/ConsentEvent.ts +4 -0
- package/app/Models/Deployment.ts +1 -0
- package/app/Models/EmailList.ts +4 -0
- package/app/Models/EmailListSubscriber.ts +4 -0
- package/app/Models/Error.ts +4 -0
- package/app/Models/FailedJob.ts +4 -0
- package/app/Models/FeedbackToken.ts +4 -0
- package/app/Models/GdprRequest.ts +4 -0
- package/app/Models/Job.ts +4 -0
- package/app/Models/Log.ts +4 -0
- package/app/Models/MagicLinkToken.ts +4 -0
- package/app/Models/MailPreference.ts +4 -0
- package/app/Models/Notification.ts +4 -0
- package/app/Models/NotificationDelivery.ts +4 -0
- package/app/Models/PersonalAccessToken.ts +4 -0
- package/app/Models/QueryLog.ts +4 -0
- package/app/Models/Referral.ts +4 -0
- package/app/Models/Release.ts +1 -0
- package/app/Models/Request.ts +4 -0
- package/app/Models/SenderDomain.ts +4 -0
- package/app/Models/Site.ts +1 -0
- package/app/Models/SiteDomain.ts +4 -0
- package/app/Models/SocialPost.ts +4 -0
- package/app/Models/StorageItemTask.ts +4 -1
- package/app/Models/Subscriber.ts +4 -0
- package/app/Models/Subscription.ts +4 -0
- package/app/Models/Team.ts +1 -0
- package/app/Models/TeamInvitation.ts +1 -0
- package/app/Models/TeamMember.ts +1 -0
- package/app/Models/UsageEvent.ts +4 -0
- package/app/Models/User.ts +15 -3
- package/functions/dashboard-model-record.test.ts +276 -18
- package/functions/dashboard-model-record.ts +412 -55
- package/functions/data.ts +2 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +5 -5
- package/resources/components/Dashboard/Analytics/AnalyticsHub.stx +1 -1
- package/resources/components/Dashboard/Analytics/CampaignAnalytics.stx +1 -1
- package/resources/components/Dashboard/Analytics/EventAnalytics.stx +1 -1
- package/resources/components/Dashboard/Analytics/SalesAnalytics.stx +1 -1
- package/resources/components/Dashboard/Analytics/WebAnalyticsBreakdown.stx +1 -1
- package/resources/components/Dashboard/App/RequestsOverview.stx +1 -1
- package/resources/components/Dashboard/App/SourceInventory.stx +1 -1
- package/resources/components/Dashboard/Auth/AccessTokens.stx +1 -1
- package/resources/components/Dashboard/Buddy/BuddyAssistant.stx +1 -1
- package/resources/components/Dashboard/Ci/CiDashboard.stx +1 -1
- package/resources/components/Dashboard/Commerce/Delivery/DeliveryPagination.stx +1 -1
- package/resources/components/Dashboard/Commerce/ProductWaitlistDashboard.stx +1 -1
- package/resources/components/Dashboard/Commerce/RestaurantWaitlistDashboard.stx +1 -1
- package/resources/components/Dashboard/Content/BlogDashboard.stx +1 -1
- package/resources/components/Dashboard/DashboardLayout.stx +1 -1
- package/resources/components/Dashboard/Data/DataRecords.stx +43 -22
- package/resources/components/Dashboard/Data/UserInvite.stx +107 -0
- package/resources/components/Dashboard/Email/CapturedMailDashboard.stx +1 -1
- package/resources/components/Dashboard/Email/EmailActivityDashboard.stx +1 -1
- package/resources/components/Dashboard/Email/InboxDashboard.stx +1 -1
- package/resources/components/Dashboard/Email/InboxMessageDetail.stx +2 -2
- package/resources/components/Dashboard/Email/InboxSettingsDashboard.stx +1 -1
- package/resources/components/Dashboard/Home/DashboardHome.stx +6 -1
- package/resources/components/Dashboard/Infrastructure/CloudDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/DnsDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/HealthDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/InsightsDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/LogsDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/MailboxesDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/ServerDetailsDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/ServerlessDashboard.stx +1 -1
- package/resources/components/Dashboard/Infrastructure/ServersDashboard.stx +1 -1
- package/resources/components/Dashboard/Jobs/JobDetail.stx +1 -1
- package/resources/components/Dashboard/Jobs/JobTable.stx +2 -2
- package/resources/components/Dashboard/Kanban/KanbanBoardDashboard.stx +1 -1
- package/resources/components/Dashboard/Kanban/KanbanBoardsDashboard.stx +1 -1
- package/resources/components/Dashboard/Management/PermissionsDashboard.stx +1 -1
- package/resources/components/Dashboard/Marketing/AbandonedCartsDashboard.stx +1 -1
- package/resources/components/Dashboard/Marketing/CampaignsDashboard.stx +1 -1
- package/resources/components/Dashboard/Marketing/MarketingListsDashboard.stx +1 -1
- package/resources/components/Dashboard/Marketing/SocialPostsDashboard.stx +1 -1
- package/resources/components/Dashboard/Models/ModelFieldInputs.stx +125 -0
- package/resources/components/Dashboard/Models/ModelRecordCreate.stx +24 -66
- package/resources/components/Dashboard/Models/ModelRecordDetail.stx +36 -8
- package/resources/components/Dashboard/Models/ModelRecordEdit.stx +36 -32
- package/resources/components/Dashboard/Models/ModelRecordsDashboard.stx +72 -28
- package/resources/components/Dashboard/Models/ModelRelatedPanels.stx +99 -0
- package/resources/components/Dashboard/Models/ModelRelationPicker.stx +247 -0
- package/resources/components/Dashboard/Models/ModelsOverview.stx +1 -1
- package/resources/components/Dashboard/Notifications/NotificationDeliveries.stx +1 -1
- package/resources/components/Dashboard/Notifications/NotificationDeliveryHistory.stx +1 -1
- package/resources/components/Dashboard/Notifications/NotificationDeliveryOverview.stx +1 -1
- package/resources/components/Dashboard/Queries/QueryDashboard.stx +1 -1
- package/resources/components/Dashboard/Queries/QueryDetail.stx +1 -1
- package/resources/components/Dashboard/Queue/QueueDashboard.stx +1 -1
- package/resources/components/Dashboard/Realtime/RealtimeDashboard.stx +1 -1
- package/resources/components/Dashboard/Releases/ReleaseDashboard.stx +1 -1
- package/resources/components/Dashboard/Search/SearchEngineDashboard.stx +1 -1
- package/resources/components/Dashboard/Settings/MailSettingsDashboard.stx +1 -1
- package/resources/components/Dashboard/Settings/SettingsDashboard.stx +1 -1
- package/resources/components/Dashboard/Teams/TeamPeopleDashboard.stx +1 -1
- package/resources/components/Dashboard/UI/Drawer.stx +1 -1
- package/resources/components/Dashboard/UI/Input.stx +3 -2
- package/resources/components/Dashboard/UI/Modal.stx +1 -1
- package/resources/components/Dashboard/UI/Select.stx +8 -4
- package/resources/components/Dashboard/UI/Textarea.stx +18 -12
- package/resources/emails/password-reset.stx +3 -1
- package/routes/dashboard-api.ts +9 -0
- package/scaffold/config/analytics.ts +5 -3
- package/scaffold/resources/components/NextStep.stx +13 -0
- package/scaffold/resources/partials/head.stx +31 -0
- package/scaffold/resources/views/index.stx +23 -47
- package/scaffold/resources/views/layouts/default.stx +23 -0
- package/views/dashboard/data/users/invite.stx +8 -0
- package/views/dashboard/layouts/default.stx +21 -2
|
@@ -20,4 +20,8 @@ export default defineModel({
|
|
|
20
20
|
suppressedAt: { required: true, fillable: true, validation: { rule: schema.timestamp() }, factory: () => new Date().toISOString() },
|
|
21
21
|
liftedAt: { required: false, fillable: false, validation: { rule: schema.timestamp() }, factory: () => null },
|
|
22
22
|
},
|
|
23
|
+
|
|
24
|
+
dashboard: {
|
|
25
|
+
columns: ['recipient', 'channel', 'reason', 'suppressedAt', 'liftedAt'],
|
|
26
|
+
},
|
|
23
27
|
} as const)
|
|
@@ -28,4 +28,8 @@ export default defineModel({
|
|
|
28
28
|
ipAddress: { personal: true, required: false, fillable: true, validation: { rule: schema.string().max(45) }, factory: faker => faker.internet.ip() },
|
|
29
29
|
occurredAt: { required: true, fillable: true, validation: { rule: schema.timestamp() }, factory: () => new Date().toISOString() },
|
|
30
30
|
},
|
|
31
|
+
|
|
32
|
+
dashboard: {
|
|
33
|
+
columns: ['recipient', 'channel', 'action', 'purpose', 'occurredAt'],
|
|
34
|
+
},
|
|
31
35
|
} as const)
|
package/app/Models/Deployment.ts
CHANGED
package/app/Models/EmailList.ts
CHANGED
package/app/Models/Error.ts
CHANGED
package/app/Models/FailedJob.ts
CHANGED
package/app/Models/Job.ts
CHANGED
package/app/Models/Log.ts
CHANGED
package/app/Models/QueryLog.ts
CHANGED
package/app/Models/Referral.ts
CHANGED
|
@@ -16,4 +16,8 @@ export default defineModel({
|
|
|
16
16
|
status: { required: true, default: 'registered', validation: { rule: schema.enum(['registered', 'qualified']) } },
|
|
17
17
|
qualifiedAt: { nullable: true, validation: { rule: schema.date() } },
|
|
18
18
|
},
|
|
19
|
+
|
|
20
|
+
dashboard: {
|
|
21
|
+
columns: ['code', 'status', 'referrerId', 'referredUserId', 'qualifiedAt'],
|
|
22
|
+
},
|
|
19
23
|
} as const)
|
package/app/Models/Release.ts
CHANGED
package/app/Models/Request.ts
CHANGED
|
@@ -144,4 +144,8 @@ export default defineModel({
|
|
|
144
144
|
factory: faker => faker.helpers.maybe(() => faker.lorem.sentence(), { probability: 0.2 }),
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
|
+
|
|
148
|
+
dashboard: {
|
|
149
|
+
columns: ['method', 'path', 'statusCode', 'durationMs', 'ipAddress', 'createdAt'],
|
|
150
|
+
},
|
|
147
151
|
} as const)
|
|
@@ -21,4 +21,8 @@ export default defineModel({
|
|
|
21
21
|
verifiedAt: { required: false, fillable: true, validation: { rule: schema.timestamp() }, factory: () => null },
|
|
22
22
|
lastCheckedAt: { required: false, fillable: true, validation: { rule: schema.timestamp() }, factory: () => null },
|
|
23
23
|
},
|
|
24
|
+
|
|
25
|
+
dashboard: {
|
|
26
|
+
columns: ['domain', 'status', 'team', 'verifiedAt', 'lastCheckedAt'],
|
|
27
|
+
},
|
|
24
28
|
} as const)
|
package/app/Models/Site.ts
CHANGED
package/app/Models/SiteDomain.ts
CHANGED
package/app/Models/SocialPost.ts
CHANGED
package/app/Models/Subscriber.ts
CHANGED
package/app/Models/Team.ts
CHANGED
package/app/Models/TeamMember.ts
CHANGED
package/app/Models/UsageEvent.ts
CHANGED
|
@@ -21,4 +21,8 @@ export default defineModel({
|
|
|
21
21
|
metadata: { required: false, fillable: true, validation: { rule: schema.json() }, factory: () => JSON.stringify({}) },
|
|
22
22
|
occurredAt: { required: true, fillable: true, validation: { rule: schema.timestamp() }, factory: () => new Date().toISOString() },
|
|
23
23
|
},
|
|
24
|
+
|
|
25
|
+
dashboard: {
|
|
26
|
+
columns: ['meter', 'quantity', 'team', 'occurredAt'],
|
|
27
|
+
},
|
|
24
28
|
} as const)
|
package/app/Models/User.ts
CHANGED
|
@@ -77,10 +77,13 @@ export default defineModel({
|
|
|
77
77
|
order: 2,
|
|
78
78
|
fillable: true,
|
|
79
79
|
validation: {
|
|
80
|
-
rule
|
|
80
|
+
// The same floor registration applies. This rule said five while its
|
|
81
|
+
// message said three, so "Ava" could sign up and then could not have
|
|
82
|
+
// a letter of her name corrected. The ceiling is the column's.
|
|
83
|
+
rule: schema.string().required().min(2).max(100),
|
|
81
84
|
message: {
|
|
82
|
-
min: 'Name must have a minimum of
|
|
83
|
-
max: 'Name must have a maximum of
|
|
85
|
+
min: 'Name must have a minimum of 2 characters',
|
|
86
|
+
max: 'Name must have a maximum of 100 characters',
|
|
84
87
|
},
|
|
85
88
|
},
|
|
86
89
|
|
|
@@ -157,5 +160,14 @@ export default defineModel({
|
|
|
157
160
|
},
|
|
158
161
|
dashboard: {
|
|
159
162
|
highlight: true,
|
|
163
|
+
// The list is for telling accounts apart. The two-factor step, the
|
|
164
|
+
// billing id and the rest are on the account's own page.
|
|
165
|
+
columns: ['name', 'email', 'emailVerifiedAt', 'createdAt'],
|
|
166
|
+
// Operators add, edit and remove accounts from the dashboard. Not through
|
|
167
|
+
// `useApi` above: a generated PATCH would let any signed-in caller change
|
|
168
|
+
// their own email and password outside the flows that verify them.
|
|
169
|
+
// `store` is by invitation: no form can supply a password, so the account
|
|
170
|
+
// is created and its holder is mailed a link to choose one.
|
|
171
|
+
writes: ['store', 'update', 'destroy'],
|
|
160
172
|
},
|
|
161
173
|
} as const)
|