@wix/agent-skills 1.35.0 → 1.35.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Draft Template — the starting point for every dashboard page
|
|
2
2
|
|
|
3
|
-
**Start here for any Dashboard Page request, before writing a shell, provider, or router
|
|
3
|
+
**Start here for any Dashboard Page request, before writing a shell, provider, or router.** Page templates ship inside the installed `@wix/patterns`. This file covers finding and placing their files in a Wix CLI app; the package's `Page Templates.md` chooses the template and explains its wiring.
|
|
4
4
|
|
|
5
5
|
Go through [WIX_PATTERNS_DOCS.md § Prerequisites](../WIX_PATTERNS_DOCS.md#prerequisites) first for `<pkgRoot>`; every path below is relative to it.
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ One call lists every page template with its files, plus the guide that chooses b
|
|
|
12
12
|
node <pkgRoot>/bin/patterns-lookup.cjs --templates
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Add known symbols to the same call (`--templates Table useTableCollection`). Without the script, probe the Templates entries in `<pkgRoot>/dist/docs/index.json` once.
|
|
16
16
|
|
|
17
17
|
**No `Templates` entries means the install predates them — upgrade `@wix/patterns`.** Do not rebuild a page from memory or from an older copy of this skill instead: the templates exist so the shell, provider nesting and router wiring come from the package.
|
|
18
18
|
|
|
@@ -53,6 +53,8 @@ Then copy **every** file `--templates` lists for it into the generated folder (`
|
|
|
53
53
|
|
|
54
54
|
- **Theme the entry file.** In it, replace the template's `WixDesignSystemProvider` and its `@wix/design-system/styles.global.css` import with the app's `BusinessManagerTheme` — written once per app ([BUSINESS_MANAGER_THEME.md § 2](../BUSINESS_MANAGER_THEME.md#2-the-wrapper--write-this-file-once-per-app)), kept in the entry file so it sits above `WixPatternsProvider`. **Business Manager passes none of the redesign through the extension's iframe**, so the bare provider renders the pre-redesign look while `tsc`, `wix build` and `wix preview` all pass.
|
|
55
55
|
|
|
56
|
+
**If the page needs tabs:** Start from a Patterns template. When tabs navigate between different sections, use WDS `Tabs`, reuse the template’s provider and router, and keep Patterns components for managing each section’s entities. Adapt the routes and navigation together so opening an entity and returning selects the correct section. When tabs only filter the same entity list, pass Patterns `TabsFilter` to the Table’s `tabs` prop.
|
|
57
|
+
|
|
56
58
|
## 4. Replace the data file
|
|
57
59
|
|
|
58
60
|
Each template's data file (`items-api.ts`, `settings-api.ts`) is an in-memory stand-in with the signatures the pages call. Replace the bodies, keep the signatures:
|
|
@@ -79,7 +81,7 @@ npm dedupe
|
|
|
79
81
|
find node_modules -path '*@wix/patterns/package.json' -not -path '*/dist/*'
|
|
80
82
|
```
|
|
81
83
|
|
|
82
|
-
More than one
|
|
84
|
+
More than one copy breaks shared context despite passing `tsc` and build. Align the versions with the second install command above, then check again.
|
|
83
85
|
|
|
84
86
|
### Turning `query.search` into a query
|
|
85
87
|
|
|
@@ -476,12 +476,14 @@ If a call fails after publishing, inspect the current snapshot before retrying:
|
|
|
476
476
|
the write may have succeeded and only its subsequent verification failed.
|
|
477
477
|
Avoid repeating a mutation merely because the last call returned an error.
|
|
478
478
|
|
|
479
|
-
Give the
|
|
480
|
-
|
|
481
|
-
`https://manage.wix.com/dashboard/{metaSiteId}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
479
|
+
Give the user two links, each on its own line and named for what it is: the
|
|
480
|
+
live site, `{siteUrl}`, and the site's dashboard,
|
|
481
|
+
`https://manage.wix.com/dashboard/{metaSiteId}`. Every publish and every edit
|
|
482
|
+
closes with both. Then what changed, what was verified, any missing assets, and
|
|
483
|
+
[domain connection](../domains/domain-search-purchase-and-connect.md) options:
|
|
484
|
+
a domain bought through Wix, or one the user already owns. For an unclaimed
|
|
485
|
+
anonymous site, give the live URL and private save link instead, not a
|
|
486
|
+
dashboard link.
|
|
485
487
|
|
|
486
488
|
## Connect a backend
|
|
487
489
|
|