Withdraw the ng-org backend, keep the seam that will carry the next two
The participant count is the number of participants INCLUDING those this session cannot see, so it cannot be a count of the participations we are allowed to read. The project derives it: whoever signs up deposits a marker into the event's inbox, and the event OWNER recomputes the field from those deposits. That needs an inbox. @ng-org/refine-providers is CRUD over SHEX shapes and has none, so it cannot carry the model — and the counter it could carry, incremented from a value read back out of a list, races itself and is the one the project's brief declares superseded. Measured, not assumed: optimistic mutations moved one assertion from the seeded value to the written one and left the rest. So the wiring goes and the structure stays. The contract, the registry, the runtime switch and useBackend are untouched; what is gone is the single entry, its three ng-org-specific files and the dependency. What the next backend must answer, the derived count included, is written in types.ts, and the withdrawn implementation stays in this branch's history as the worked example. Two refusals rather than quiet degradations. With no backend the data context falls back to demo data and SAYS so, instead of mounting a connected path that would hand every screen empty lists. And the @data harness refuses to publish its bridge at all: on fixtures those scenarios would assert happily and report green while touching no wallet, which is worse than red.
This commit is contained in:
+7
-8
@@ -22,7 +22,6 @@
|
||||
"dependencies": {
|
||||
"@ng-org/alien-deepsignals": "0.1.2-alpha.13",
|
||||
"@ng-org/orm": "0.1.2-alpha.21",
|
||||
"@ng-org/refine-providers": "0.1.2-alpha.1",
|
||||
"@ng-org/shex-orm": "0.1.2-alpha.9",
|
||||
"@ng-org/web": "0.1.2-alpha.14",
|
||||
"@radix-ui/react-label": "^2.1.7",
|
||||
@@ -42,6 +41,11 @@
|
||||
"@cucumber/cucumber": "^12.5.0",
|
||||
"@cucumber/gherkin": "^29.0.0",
|
||||
"@cucumber/messages": "^26.0.1",
|
||||
"@storybook/addon-a11y": "^10.3.5",
|
||||
"@storybook/addon-docs": "^10.3.5",
|
||||
"@storybook/addon-onboarding": "^10.3.5",
|
||||
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
|
||||
"@storybook/react-webpack5": "^10.3.5",
|
||||
"@types/bun": "latest",
|
||||
"@types/chai": "^5.2.3",
|
||||
"@types/react": "^19",
|
||||
@@ -49,15 +53,10 @@
|
||||
"chai": "^6.2.2",
|
||||
"happy-dom": "^16.6.0",
|
||||
"playwright": "^1.58.2",
|
||||
"storybook": "^10.3.5",
|
||||
"tailwindcss": "^4.1.11",
|
||||
"tsx": "^4.21.0",
|
||||
"tw-animate-css": "^1.4.0",
|
||||
"storybook": "^10.3.5",
|
||||
"@storybook/react-webpack5": "^10.3.5",
|
||||
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
|
||||
"@storybook/addon-a11y": "^10.3.5",
|
||||
"@storybook/addon-docs": "^10.3.5",
|
||||
"@storybook/addon-onboarding": "^10.3.5"
|
||||
"tw-animate-css": "^1.4.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": [
|
||||
|
||||
Reference in New Issue
Block a user