Setting the file. One moment. Example Patterns · Wix App · wix/skills · Skills Docs(opens in a new tab)
references/auto-patterns-dashboard/example-patterns.json
JSON·278 lines·8 KB
12 "text": "Additional Fees Configuration",
13 "hideTotal": false
14 },
15 "subtitle": {
16 "text": "Manage and configure additional fees for checkout"
17 },
18 "actions": {
19 "primaryActions": {
20 "type": "action",
21 "action": {
22 "item": {
23 "id": "create-additional-fees",
24 "type": "create",
25 "label": "Add New Fee",
26 "collection": {
27 "collectionId": "@mirivo/mirivo-private-app-for-test2011/additional-fees",
28 "entityTypeSource": "cms"
29 },
30 "create": {
31 "mode": "page",
32 "page": {
33 "id": "additional-fees-entity"
34 }
35 }
36 }
37 }
38 }
39 },
40 "components": [
41 {
42 "type": "collection",
43 "layout": [
44 {
45 "type": "Table",
46 "table": {
47 "columns": [
48 {
49 "id": "feeTitle",
50 "name": "Title",
51 "width": "200px",
52 "sortable": true
53 },
54 {
55 "id": "feeAmount",
56 "name": "Amount",
57 "width": "100px",
58 "sortable": true
59 },
60 {
61 "id": "feeType",
62 "name": "Type",
63 "width": "200px",
64 "sortable": true
65 },
66 {
67 "id": "isActive",
68 "name": "Active",
69 "width": "100px",
70 "sortable": true
71 }
72 ],
73 "customColumns": {
74 "enabled": true
75 }
76 }
77 }
78 ],
79 "entityPageId": "additional-fees-entity",
80 "collection": {
81 "collectionId": "@mirivo/mirivo-private-app-for-test2011/additional-fees",
82 "entityTypeSource": "cms"
83 },
84 "toolbarTitle": {
85 "title": "Additional Fees",
86 "subtitle": {
87 "text": "Configure fees applied during checkout process"
88 },
89 "showTotal": true
90 },
91 "filters": {
92 "items": [
93 {
94 "id": "feeAmount-filter",
95 "fieldId": "feeAmount",
96 "displayName": "Fee Amount",
97 "tagLabel": "Fee Amount",
98 "numberConfig": {
99 "allowedDecimals": true
100 }
101 },
102 {
103 "id": "isActive-filter",
104 "fieldId": "isActive",
105 "displayName": "Is Active",
106 "tagLabel": "Is Active"
107 }
108 ]
109 },
110 "emptyState": {
111 "title": "No Additional Fees Configured",
112 "subtitle": "Start by adding your first additional fee for checkout",
113 "addNewCta": {
114 "id": "create-additional-fees",
115 "text": "Create First Fee"
116 }
117 },
118 "actionCell": {
119 "primaryAction": {
120 "item": {
121 "id": "edit-additional-fees",
122 "type": "update",
123 "update": {
124 "mode": "page",
125 "page": {
126 "id": "additional-fees-entity"
127 }
128 }
129 }
130 },
131 "secondaryActions": {
132 "items": [
133 {
134 "id": "delete-additional-fees",
135 "type": "delete",
136 "label": "Delete",
137 "delete": {
138 "mode": "modal",
139 "modal": {
140 "title": {
141 "text": "Remove Additional Fee"
142 },
143 "description": {
144 "text": "Are you sure you want to delete this additional fee? This will remove it from future checkouts."
145 },
146 "feedback": {
147 "successToast": {
148 "text": "Additional fee deleted successfully"
149 },
150 "errorToast": {
151 "text": "Failed to delete additional fee"
152 }
153 }
154 }
155 }
156 }
157 ]
158 }
159 },
160 "bulkActionToolbar": {
161 "primaryActions": [
162 {
163 "type": "action",
164 "action": {
165 "item": {
166 "id": "bulk-delete-additional-fees",
167 "type": "bulkDelete",
168 "bulkDelete": {
169 "mode": "modal",
170 "modal": {
171 "title": {
172 "text": "Remove Multiple Fees"
173 },
174 "description": {
175 "text": "Are you sure you want to delete the selected additional fees? This will remove them from future checkouts."
176 },
177 "feedback": {
178 "successToast": {
179 "text": "Selected additional fees deleted successfully"
180 },
181 "errorToast": {
182 "text": "Failed to delete selected additional fees"
183 }
184 }
185 }
186 }
187 }
188 }
189 }
190 ]
191 }
192 }
193 ]
194 }
195 },
196 {
197 "id": "additional-fees-entity",
198 "type": "entityPage",
199 "entityPage": {
200 "route": {
201 "path": "/additional-fee/:entityId",
202 "params": {
203 "id": "entityId"
204 }
205 },
206 "title": {
207 "text": "Fee Details"
208 },
209 "subtitle": {
210 "text": "View and edit additional fee configuration"
211 },
212 "parentPageId": "additional-fees-collection",
213 "layout": {
214 "main": [
215 {
216 "type": "card",
217 "card": {
218 "title": {
219 "text": "Fee Information"
220 },
221 "subtitle": {
222 "text": "Basic details for the additional fee"
223 },
224 "children": [
225 {
226 "type": "field",
227 "field": {
228 "span": 12,
229 "fieldId": "feeTitle"
230 }
231 },
232 {
233 "type": "field",
234 "field": {
235 "span": 12,
236 "fieldId": "feeAmount"
237 }
238 },
239 {
240 "type": "field",
241 "field": {
242 "span": 12,
243 "fieldId": "feeType"
244 }
245 }
246 ]
247 }
248 }
249 ],
250 "sidebar": [
251 {
252 "type": "card",
253 "card": {
254 "title": {
255 "text": "Fee Status"
256 },
257 "subtitle": {
258 "text": "Activation and usage settings"
259 },
260 "children": [
261 {
262 "type": "field",
263 "field": {
264 "span": 12,
265 "fieldId": "isActive"
266 }
267 }
268 ]
269 }
270 }
271 ]
272 },
273 "collectionId": "@mirivo/mirivo-private-app-for-test2011/additional-fees",
274 "entityTypeSource": "cms"
275 }
276 }
277 ]
278}