@skaile/forge-layer-data-browser 0.0.0 → 0.1.0
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/CHANGELOG.md +7 -0
- package/README.md +4 -2
- package/app/utils/dataBrowser.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @skaile/forge-layer-data-browser
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6270e62: New package: the data-browser layer of forge-template-app as a versioned Nuxt layer (`extends: ['@skaile/forge-layer-data-browser']`) instead of a copy in each app. The owner's view of every entity `data.describe` exposes at `/data`: a table per entity with search, sort, paging and a filter builder, and a generic row form on the app's `SchemaForm`. It builds on the core of forge-template-app (host contract in the README); an app overrides single files by putting a file at the same path.
|
package/README.md
CHANGED
|
@@ -37,6 +37,7 @@ has all of them; an app that renamed or removed one overrides the layer file tha
|
|
|
37
37
|
| Utils | `applyServerError`, `actionErrorMessage` | `app/utils/formErrors.ts`, `app/composables/useActions.ts` |
|
|
38
38
|
| Components | `AppHeader`, `SchemaForm`, `FormDiscardPrompt`, `FormSaveHint` | `app/components/` |
|
|
39
39
|
| App config | `appShell.nav` entries with `roles` (read by `useAppShell`) | `app/utils/appShell.ts` |
|
|
40
|
+
| Modules | `@vueuse/nuxt` (auto-imports `refDebounced`, `watchDebounced`) | `nuxt.config.ts` `modules` |
|
|
40
41
|
| Actions | `data.describe`, `data.list`, `data.get`, `data.aggregate`, `data.create`, `data.update`, `data.delete`, `me.get` | `server/utils/actions/` |
|
|
41
42
|
|
|
42
43
|
Peers: `nuxt ^4`, `@nuxt/ui ^4.11`, `vue ^3.5`, `@skaile/forge-data ^0.2.1` (types).
|
|
@@ -86,6 +87,7 @@ into the app and keep the rest from the package, so fixes in the other files sti
|
|
|
86
87
|
|
|
87
88
|
## Tests
|
|
88
89
|
|
|
89
|
-
The logic needs the host's model, so its tests
|
|
90
|
-
|
|
90
|
+
The logic needs the host's model, so its tests run in the template against the installed package: today in
|
|
91
|
+
`templates/app/layers/data-browser/test/`, moving to `templates/app/test/app/data-browser.test.ts` when the template
|
|
92
|
+
switches to this package. `bun scripts/check-templates.ts --local app` checks an unpublished change of this
|
|
91
93
|
package against the template.
|
package/app/utils/dataBrowser.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
RelationDescriptor,
|
|
9
9
|
Row,
|
|
10
10
|
} from '@skaile/forge-data'
|
|
11
|
-
// Explicit imports (Nuxt would auto-import them) so the
|
|
11
|
+
// Explicit imports (Nuxt would auto-import them) so the template's unit tests can run this file without Nuxt.
|
|
12
12
|
import { fromDateTimeInput, toDateTimeInput } from '~/utils/format'
|
|
13
13
|
import type { JsonSchema } from '~/utils/jsonSchema'
|
|
14
14
|
import { labelOfKey } from '~/utils/jsonSchema'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skaile/forge-layer-data-browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Nuxt layer for apps built on forge-template-app: the owner's view of every entity data.describe exposes (/data), with a filterable table, a filter builder and a generic row form.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|