2025-11-01 05:59:22 +00:00
|
|
|
import { api, getHouseholdSlug, fetchApi } from '@/api/client'
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
import type { components } from '@/api/types'
|
2025-10-26 04:13:33 +00:00
|
|
|
import {
|
|
|
|
|
toDate,
|
|
|
|
|
decodeMeal,
|
|
|
|
|
decodeRecipe,
|
|
|
|
|
decodeIngredients,
|
|
|
|
|
decodeShoppingList,
|
|
|
|
|
decodeShoppingListItems,
|
|
|
|
|
decodeListIngredientItems,
|
|
|
|
|
decodeRequestedMealItems,
|
|
|
|
|
decodeIngredient,
|
|
|
|
|
decodeLookup,
|
|
|
|
|
} from '@/domain/decoders'
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
import type {
|
|
|
|
|
Recipe,
|
|
|
|
|
Meal,
|
|
|
|
|
Ingredient,
|
|
|
|
|
ShoppingList,
|
|
|
|
|
ShoppingListItemWithRefs,
|
2025-10-26 04:13:33 +00:00
|
|
|
ListIngredientItemWithRefs,
|
|
|
|
|
RequestedMealItemWithRefs,
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
CurrentShoppingListDTO,
|
|
|
|
|
PurchasedShoppingListDTO,
|
|
|
|
|
ShoppingLookups,
|
|
|
|
|
} from '@/domain/types'
|
|
|
|
|
import { fromOpenApiPage, type Page } from '@/domain/pagination'
|
|
|
|
|
|
2025-11-01 01:22:52 +00:00
|
|
|
import type { PurchaseRequest } from '@/domain/commands'
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
function httpError(response: Response, error: unknown): Error {
|
|
|
|
|
if (error instanceof Error) return error
|
|
|
|
|
if (typeof error === 'string') return new Error(error)
|
|
|
|
|
return new Error(`${response.status} ${response.statusText || 'HTTP error'}`)
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-01 05:59:22 +00:00
|
|
|
function requireSlug(explicit?: string): string {
|
|
|
|
|
const slug = explicit ?? getHouseholdSlug() ?? null
|
|
|
|
|
if (!slug) throw new Error('Missing household slug')
|
|
|
|
|
return slug
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-25 02:18:30 +00:00
|
|
|
// decodeLookup moved to domain/decoders to be reused across SDK and other modules
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
|
|
|
|
|
// Shopping list mapped view types now come from domain/types
|
|
|
|
|
|
|
|
|
|
function attachItemRefs(
|
2025-10-26 04:13:33 +00:00
|
|
|
items: Array<ShoppingListItemWithRefs | ListIngredientItemWithRefs | RequestedMealItemWithRefs> | null | undefined,
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
lookups: ShoppingLookups
|
|
|
|
|
): void {
|
|
|
|
|
if (!Array.isArray(items)) return
|
|
|
|
|
for (const item of items) {
|
2025-10-26 04:13:33 +00:00
|
|
|
// ingredient ref
|
|
|
|
|
if ('ingredientId' in item && item.ingredientId !== undefined && lookups.ingredientsLookup) {
|
|
|
|
|
const v = lookups.ingredientsLookup[String(item.ingredientId)]
|
2025-10-25 02:18:30 +00:00
|
|
|
if (v !== undefined) item.ingredient = v
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
2025-10-26 04:13:33 +00:00
|
|
|
// meal ref (present on all item types)
|
|
|
|
|
if ('mealId' in item && item.mealId !== undefined && lookups.mealsLookup) {
|
|
|
|
|
const v = lookups.mealsLookup[String(item.mealId)]
|
2025-10-25 02:18:30 +00:00
|
|
|
if (v !== undefined) item.meal = v
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
2025-10-26 04:13:33 +00:00
|
|
|
// recipe ref
|
|
|
|
|
if ('recipeId' in item && item.recipeId !== undefined && lookups.recipesLookup) {
|
|
|
|
|
const v = lookups.recipesLookup[String(item.recipeId)]
|
2025-10-25 02:18:30 +00:00
|
|
|
if (v !== undefined) item.recipe = v
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
2025-10-26 04:13:33 +00:00
|
|
|
// list ref
|
|
|
|
|
if ('listId' in item && item.listId !== undefined && lookups.shoppingListLookup) {
|
|
|
|
|
const v = lookups.shoppingListLookup[String(item.listId)]
|
2025-10-25 02:18:30 +00:00
|
|
|
if (v !== undefined) item.list = v
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
2025-10-26 04:13:33 +00:00
|
|
|
if ('createdDate' in item) item.createdDate = toDate(item.createdDate)
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function mapPurchasedShoppingList(dto: components['schemas']['PurchasedShoppingList'] | null | undefined): PurchasedShoppingListDTO | null {
|
|
|
|
|
if (!dto) return null
|
|
|
|
|
|
|
|
|
|
const mealsLookupRaw = dto.mealsLookup
|
|
|
|
|
const recipesLookupRaw = dto.recipesLookup
|
|
|
|
|
const ingredientsLookupRaw = dto.ingredientsLookup
|
|
|
|
|
const listRaw = dto.list
|
|
|
|
|
|
|
|
|
|
const mealsLookup = decodeLookup(mealsLookupRaw, decodeMeal)
|
|
|
|
|
const recipesLookup = decodeLookup(recipesLookupRaw, decodeRecipe)
|
|
|
|
|
const ingredientsLookup = decodeLookup(ingredientsLookupRaw, decodeIngredient)
|
|
|
|
|
|
|
|
|
|
let list: import('@/domain/types').ShoppingListWithRefs | undefined
|
|
|
|
|
if (listRaw) {
|
|
|
|
|
const base = decodeShoppingList(listRaw)
|
|
|
|
|
if (base) {
|
|
|
|
|
const items = Array.isArray(listRaw.items) ? decodeShoppingListItems(listRaw.items) : []
|
|
|
|
|
list = { ...base, items }
|
|
|
|
|
const lookups: ShoppingLookups = {
|
|
|
|
|
...(ingredientsLookup && { ingredientsLookup }),
|
|
|
|
|
...(mealsLookup && { mealsLookup }),
|
|
|
|
|
...(recipesLookup && { recipesLookup }),
|
2025-10-25 02:18:30 +00:00
|
|
|
...(list && { shoppingListLookup: { [String(list.id)]: list } }),
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
attachItemRefs(list.items, lookups)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
...(ingredientsLookup && { ingredientsLookup }),
|
|
|
|
|
...(mealsLookup && { mealsLookup }),
|
|
|
|
|
...(recipesLookup && { recipesLookup }),
|
|
|
|
|
...(list && { list }),
|
2025-10-25 02:18:30 +00:00
|
|
|
// include shoppingListLookup when list exists for consistency with lookups type
|
|
|
|
|
...(list && { shoppingListLookup: { [String(list.id)]: list } }),
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function mapCurrentShoppingList(dto: components['schemas']['CurrentShoppingList'] | null | undefined): CurrentShoppingListDTO | null {
|
|
|
|
|
if (!dto) return null
|
|
|
|
|
|
|
|
|
|
const outstandingRaw = dto.outstandingItems
|
|
|
|
|
const requestedRaw = dto.requestedMeals
|
|
|
|
|
const purchasedRaw = dto.purchasedItems
|
|
|
|
|
|
|
|
|
|
const ingredientsLookupRaw = dto.ingredientsLookup
|
|
|
|
|
const mealsLookupRaw = dto.mealsLookup
|
|
|
|
|
const recipesLookupRaw = dto.recipesLookup
|
|
|
|
|
const shoppingListLookupRaw = dto.shoppingListLookup
|
|
|
|
|
|
|
|
|
|
const ingredientsLookup = decodeLookup(ingredientsLookupRaw, decodeIngredient)
|
|
|
|
|
const mealsLookup = decodeLookup(mealsLookupRaw, decodeMeal)
|
|
|
|
|
const recipesLookup = decodeLookup(recipesLookupRaw, decodeRecipe)
|
|
|
|
|
|
|
|
|
|
let shoppingListLookup: Record<string, ShoppingList> | undefined
|
|
|
|
|
if (shoppingListLookupRaw) {
|
|
|
|
|
shoppingListLookup = decodeLookup(shoppingListLookupRaw, decodeShoppingList)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const dtoOut: CurrentShoppingListDTO = {
|
2025-10-26 04:13:33 +00:00
|
|
|
outstandingItems: decodeListIngredientItems(outstandingRaw ?? []),
|
|
|
|
|
requestedMeals: decodeRequestedMealItems(requestedRaw ?? []),
|
|
|
|
|
purchasedItems: decodeListIngredientItems(purchasedRaw ?? []),
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
...(ingredientsLookup && { ingredientsLookup }),
|
|
|
|
|
...(mealsLookup && { mealsLookup }),
|
|
|
|
|
...(recipesLookup && { recipesLookup }),
|
|
|
|
|
...(shoppingListLookup && { shoppingListLookup }),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const lookups: ShoppingLookups = {
|
|
|
|
|
...(ingredientsLookup && { ingredientsLookup }),
|
|
|
|
|
...(mealsLookup && { mealsLookup }),
|
|
|
|
|
...(recipesLookup && { recipesLookup }),
|
|
|
|
|
...(shoppingListLookup && { shoppingListLookup }),
|
|
|
|
|
}
|
|
|
|
|
attachItemRefs(dtoOut.outstandingItems ?? null, lookups)
|
|
|
|
|
attachItemRefs(dtoOut.requestedMeals ?? null, lookups)
|
|
|
|
|
attachItemRefs(dtoOut.purchasedItems ?? null, lookups)
|
|
|
|
|
|
|
|
|
|
return dtoOut
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function listRecipes(params?: { q?: string | null; cursor?: string | null; limit?: number }): Promise<Page<Recipe>> {
|
|
|
|
|
const query: Record<string, unknown> = {}
|
|
|
|
|
if (params) {
|
|
|
|
|
if (params.q !== undefined) query.q = params.q
|
|
|
|
|
if (params.cursor !== undefined) query.cursor = params.cursor
|
|
|
|
|
if (typeof params.limit === 'number') query.limit = params.limit
|
|
|
|
|
}
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.GET('/api/v1/households/{householdSlug}/recipes', { params: { path: { householdSlug }, query } })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
2025-10-25 02:18:30 +00:00
|
|
|
return fromOpenApiPage(data ?? null, (r) => decodeRecipe(r))
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-01 05:59:22 +00:00
|
|
|
export async function getRecipe(householdSlug: string, id: number | string): Promise<Recipe> {
|
|
|
|
|
const { data, error, response } = await api.GET('/api/v1/households/{householdSlug}/recipes/{recipe_id}', {
|
|
|
|
|
params: { path: { householdSlug: requireSlug(householdSlug), recipe_id: Number(id) } },
|
|
|
|
|
})
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
2025-10-25 02:18:30 +00:00
|
|
|
const mapped = decodeRecipe(data)
|
|
|
|
|
if (!mapped) throw new Error('Recipe not found')
|
|
|
|
|
return mapped
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-01 05:59:22 +00:00
|
|
|
export async function saveRecipe(recipe: components['schemas']['RecipeCreate']): Promise<Recipe | null> {
|
|
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
// Map "Recipe-Input" to "RecipeCreate"
|
|
|
|
|
const body: components['schemas']['RecipeCreate'] = {
|
|
|
|
|
name: recipe.name,
|
|
|
|
|
link: recipe.link,
|
|
|
|
|
serves: recipe.serves,
|
|
|
|
|
imageUrls: recipe.imageUrls ?? [],
|
|
|
|
|
ingredients: recipe.ingredients ?? [],
|
|
|
|
|
}
|
|
|
|
|
const { data, error, response } = await api.POST('/api/v1/households/{householdSlug}/recipes', { params: { path: { householdSlug } }, body })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
return decodeRecipe(data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteRecipe(id: number | string): Promise<void> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { error, response } = await api.DELETE('/api/v1/households/{householdSlug}/recipes/{recipe_id}', { params: { path: { householdSlug, recipe_id: Number(id) } } })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function parseRecipe(url: string): Promise<Recipe | null> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const res = await fetchApi('/api/v1/recipes/parse?url=' + encodeURIComponent(url), { method: 'GET' })
|
|
|
|
|
if (!res.ok) throw httpError(res, null)
|
|
|
|
|
const data = await res.json()
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
return decodeRecipe(data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function parseIngredients(lines: string[]): Promise<Ingredient[]> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const url = '/api/v1/recipes/ingredients/parse?' + new URLSearchParams(lines.map((v) => ['ingredients', v]))
|
|
|
|
|
const res = await fetchApi(url, { method: 'GET' })
|
|
|
|
|
if (!res.ok) throw httpError(res, null)
|
|
|
|
|
const data = await res.json()
|
|
|
|
|
return decodeIngredients(Array.isArray(data) ? data : [])
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function parseProduct(
|
|
|
|
|
ingredient: Pick<components['schemas']['Ingredient'], 'name' | 'line'>,
|
|
|
|
|
url: string
|
|
|
|
|
): Promise<components['schemas']['Product'] | null> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const body = { url, tags: [ingredient.name, ingredient.line] }
|
|
|
|
|
const res = await fetchApi('/api/v1/products', { method: 'POST', body: JSON.stringify(body), headers: { 'Content-Type': 'application/json' } })
|
|
|
|
|
if (!res.ok) throw httpError(res, null)
|
|
|
|
|
return (await res.json()) ?? null
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Persons
|
2025-10-25 02:18:30 +00:00
|
|
|
async function listPersons(params?: { q?: string | null; cursor?: string | null; limit?: number }): Promise<Page<components['schemas']['Person']>> {
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
const query: Record<string, unknown> = {}
|
|
|
|
|
if (params) {
|
|
|
|
|
if (params.q !== undefined) query.q = params.q
|
|
|
|
|
if (params.cursor !== undefined) query.cursor = params.cursor
|
|
|
|
|
if (typeof params.limit === 'number') query.limit = params.limit
|
|
|
|
|
}
|
2025-11-01 05:59:22 +00:00
|
|
|
const url = '/api/v1/persons' + (Object.keys(query).length ? ('?' + new URLSearchParams(query as Record<string, string>)) : '')
|
|
|
|
|
const res = await fetchApi(url, { method: 'GET' })
|
|
|
|
|
if (!res.ok) throw httpError(res, null)
|
|
|
|
|
const data = await res.json()
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
const normalized = Array.isArray(data) ? { items: data } : (data ?? null)
|
|
|
|
|
return fromOpenApiPage<components['schemas']['Person'], components['schemas']['Person']>(normalized, (p) => p)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function getPersonsInHome(): Promise<Page<components['schemas']['Person']>> {
|
|
|
|
|
return listPersons()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function searchPersons(name: string): Promise<Page<components['schemas']['Person']>> {
|
|
|
|
|
return listPersons({ q: name })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Meals
|
|
|
|
|
export async function getUpcomingMeals(from: Date, to: Date): Promise<Meal[]> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.GET('/api/v1/households/{householdSlug}/meals/upcoming', {
|
|
|
|
|
params: { path: { householdSlug }, query: { from: from.toISOString(), to: to.toISOString() } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
const list = Array.isArray(data) ? data : []
|
|
|
|
|
return list
|
|
|
|
|
.map((m) => decodeMeal(m))
|
|
|
|
|
.filter((m): m is Meal => !!m)
|
|
|
|
|
.sort((a, b) => ((a.suggestedDate?.getTime() ?? 0) - (b.suggestedDate?.getTime() ?? 0)))
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-25 02:18:30 +00:00
|
|
|
export async function getMeal(id: number | string): Promise<Meal> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.GET('/api/v1/households/{householdSlug}/meals/{meal_id}', { params: { path: { householdSlug, meal_id: Number(id) } } })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
2025-10-25 02:18:30 +00:00
|
|
|
const mapped = decodeMeal(data)
|
|
|
|
|
if (!mapped) throw new Error('Meal not found')
|
|
|
|
|
return mapped
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-01 06:17:44 +00:00
|
|
|
export async function saveMeal(meal: components['schemas']['MealIn']): Promise<Meal | null> {
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
const hasId = typeof meal.id === 'number' && meal.id >= 0
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (hasId) {
|
2025-11-01 05:59:22 +00:00
|
|
|
const { data, error, response } = await api.PUT('/api/v1/households/{householdSlug}/meals/{meal_id}', {
|
|
|
|
|
params: { path: { householdSlug, meal_id: Number(meal.id) } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
body: meal,
|
|
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
return decodeMeal(data)
|
|
|
|
|
} else {
|
2025-11-01 05:59:22 +00:00
|
|
|
const { data, error, response } = await api.POST('/api/v1/households/{householdSlug}/meals', { params: { path: { householdSlug } }, body: meal })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
return decodeMeal(data)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-25 02:18:30 +00:00
|
|
|
export async function markMealConsumed(mealId: number | string): Promise<Meal> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.POST('/api/v1/households/{householdSlug}/meals/{meal_id}/consumed', {
|
|
|
|
|
params: { path: { householdSlug, meal_id: Number(mealId) } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
2025-10-25 02:18:30 +00:00
|
|
|
const mapped = decodeMeal(data)
|
|
|
|
|
if (!mapped) throw new Error('Meal not found')
|
|
|
|
|
return mapped
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function deleteMeal(mealId: number | string): Promise<void> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { error, response } = await api.DELETE('/api/v1/households/{householdSlug}/meals/{meal_id}', {
|
|
|
|
|
params: { path: { householdSlug, meal_id: Number(mealId) } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Shopping
|
2025-11-01 06:17:44 +00:00
|
|
|
// getMyShoppingList/saveMyShoppingList endpoints removed in v2; keep temporary stubs for legacy UI
|
2025-11-01 07:51:34 +00:00
|
|
|
export async function getMyShoppingList(): Promise<import('@/domain/types').Ingredient[]> {
|
2025-11-01 06:17:44 +00:00
|
|
|
return []
|
|
|
|
|
}
|
2025-11-01 07:51:34 +00:00
|
|
|
export async function saveMyShoppingList(ingredients: import('@/domain/types').Ingredient[]): Promise<import('@/domain/types').Ingredient[]> {
|
2025-11-01 06:17:44 +00:00
|
|
|
return ingredients
|
|
|
|
|
}
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
|
2025-10-25 02:18:30 +00:00
|
|
|
export async function getShoppingList(id: number | string): Promise<import('@/domain/types').ShoppingListWithRefs | null> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.GET('/api/v1/households/{householdSlug}/shopping/{list_id}', { params: { path: { householdSlug, list_id: Number(id) } } })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
const mapped = mapPurchasedShoppingList(data)
|
|
|
|
|
return mapped?.list ?? null
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-25 02:18:30 +00:00
|
|
|
export async function getCurrentShoppingList(): Promise<CurrentShoppingListDTO> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.GET('/api/v1/households/{householdSlug}/shopping/current', { params: { path: { householdSlug } } })
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
if (!response.ok) throw httpError(response, error)
|
2025-10-25 02:18:30 +00:00
|
|
|
const mapped = mapCurrentShoppingList(data)
|
|
|
|
|
if (!mapped) throw new Error('Failed to map current shopping list')
|
|
|
|
|
return mapped
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-01 01:22:52 +00:00
|
|
|
// PurchaseRequest comes from domain/commands
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
|
|
|
|
|
export async function purchaseShoppingList(
|
2025-10-25 02:18:30 +00:00
|
|
|
completedRequests: PurchaseRequest[]
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
): Promise<import('@/domain/types').ShoppingListWithRefs | null> {
|
|
|
|
|
if (!Array.isArray(completedRequests) || completedRequests.length === 0) return null
|
|
|
|
|
// Map incoming requests: if id provided and >= 0, use it; otherwise send identifiers for ingredient/recipe/meal
|
2025-10-26 04:13:33 +00:00
|
|
|
const items: components['schemas']['IngredientPurchaseItemIn'][] = completedRequests.map((i) => ({
|
|
|
|
|
personId: i.personId,
|
|
|
|
|
ingredientId: i.ingredientId ?? -1,
|
|
|
|
|
recipeId: i.type === 'refs' ? i.recipeId ?? null : null,
|
|
|
|
|
mealId: i.type === 'refs' ? i.mealId ?? null : null,
|
|
|
|
|
createdDate: null,
|
|
|
|
|
}))
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
|
|
|
|
|
if (items.length === 0) return null
|
|
|
|
|
|
2025-10-26 04:13:33 +00:00
|
|
|
const body: components['schemas']['PurchaseListIn'] = {
|
2025-11-01 01:22:52 +00:00
|
|
|
// Default to a valid StoreNameOut per updated OpenAPI ("home" | "coles" | "woolworths")
|
|
|
|
|
storeName: 'home',
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
items,
|
|
|
|
|
}
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.POST('/api/v1/households/{householdSlug}/shopping', {
|
|
|
|
|
params: { path: { householdSlug } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
body,
|
|
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
const mapped = mapPurchasedShoppingList(data)
|
|
|
|
|
return mapped?.list ?? null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function requestMeal(mealId: number | string): Promise<void> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { error, response } = await api.POST('/api/v1/households/{householdSlug}/shopping/current/meals/me', {
|
|
|
|
|
params: { path: { householdSlug } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
body: { mealId: Number(mealId) },
|
|
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function unrequestMeal(mealId: number | string): Promise<void> {
|
2025-11-01 05:59:22 +00:00
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { error, response } = await api.DELETE('/api/v1/households/{householdSlug}/shopping/current/meals/{meal_id}', {
|
|
|
|
|
params: { path: { householdSlug, meal_id: Number(mealId) } },
|
Squashed commit of the following:
commit a94394866d9e957693c7380b846cfee98739b8be
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:11:28 2025 +1100
Ran codegen
commit affaa0e4a80edbb5185f06b3a252e1790e349ee3
Author: jableader <jacobdunk@gmail.com>
Date: Mon Oct 20 00:09:36 2025 +1100
Moved shopping.ts into composable
commit 83ced27a549784a35fa2715630d6fdca7f12f4aa
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 23:43:09 2025 +1100
Purchase fixed
commit 2fff14016eedaeb773c0f8b4ee9ccf08a1027449
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:54:36 2025 +1100
typescript migration complete
commit 17651bcc8b0f40ac1579563379c8fc45aba1997d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:38:22 2025 +1100
Removing redundant null checks and type checking
commit 0cc3a508cd5c7d723eb76d665443b4d0fdad493f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 22:30:52 2025 +1100
Moving date to sdk layer
commit 35d1189009b27876dd167f353c04f217b7c2805e
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:42:47 2025 +1100
No components re-parse dates already decoded by the boundary.
commit c4b82a31fad75bd5ec987847847076b537d35a7d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 21:09:03 2025 +1100
Update spec and types
commit 55984bf7c9d51e76eaa6713a3ca86e9a73eb6b03
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 20:22:01 2025 +1100
Disallow casting entirely
commit eb02dc6a7b52048281a87924765d9aab1303150f
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:24:57 2025 +1100
Replaced components[schemas] outside sdk
commit 2f4c1bed56724e4f8a0d586921367604ce127a1a
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 19:06:38 2025 +1100
removed persons.ts
commit ae966db8a330c9f521f3c3cb7417c4f201467661
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:56:27 2025 +1100
Remove casts from sdk
commit 42c253021e504b45963834e56551ded55be377f1
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:38:05 2025 +1100
Remove *Like types
commit b0a4e21f19005fd69c0e9e16edaa9c10b1ca8567
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:32:26 2025 +1100
Defined quantity construct
commit bf4666b89e2d395bdd091ffb6ee66a9cfb866c6d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:27:55 2025 +1100
Moved shopping view-model mapping (DTO → UI groups/meals) into `useShopping` (`mapItemToUI`, `groupsFrom`, `mealsFrom`).
- Refactored `CurrentShoppingListPage.vue` to consume composable helpers (less duplication, no local cast-heavy mapping).
- Refactored `PurchasedShoppingListPage.vue` to consume composable helpers and return typed SDK result; removed casts.
commit e7f84b453509a8fcffbb9923ec001f5be85e67e4
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 18:17:29 2025 +1100
Removing casts, any, unknown and runtime type checking
commit 6346eef4aff4d64b04f7dfa837c5b988645c242c
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:42:14 2025 +1100
domain/decoders.ts: removed casts; `purchaseDate` and `quantity` now trust API shapes.
commit 8b62eb9a9f2c0fe058d2dd37cc80071089379c34
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:36:50 2025 +1100
Plan alignment
commit dd81fd454b8e14874930cfc44828abddffd50c41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 17:10:11 2025 +1100
More cast removals
commit 377d143ffc8596f46a3b32746d3710d99eb257cd
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:53:30 2025 +1100
Type tightening in sdk
commit ce2577f22190b18a52ae0fa4238c6d1beb7e3bb7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:24:51 2025 +1100
All mappers removed/neutralized
commit 177205561a2d44aae2683e046960ef5fe8992255
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:20:34 2025 +1100
Replace ingredientnormalized with ingredient
commit fc75b24977cc89d420dc768fb4dc4ade84ed32c2
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 16:16:03 2025 +1100
More type safety tweaks and changes
commit c35cc2d3d58307290bbc2d5978baa48c1eda97b6
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:46:13 2025 +1100
Update vue-tsc
commit 2cd429804ca34a42c83ea81a3ae68e2cfccb5e36
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 15:28:01 2025 +1100
Ongoing SDK changes to tighten datatypes
commit e11847ae515eadf1bd33e88e154125fe361a5191
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:31:03 2025 +1100
Enforce template type checking
commit 777b8dee7e9ef0807a2b2c039443920671fe9c2d
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:28:52 2025 +1100
Boilerplate Collapse mappers to “decoders” and delete ad‑hoc view types
commit 4169c69d59cc16a24298351c38a60b4d4845f0c9
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:25:04 2025 +1100
Plan updates
commit de65164c91d9dc641ec86424bd4fe40f91bb4ada
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:16:37 2025 +1100
More camelCase changes
commit 4121c2157511f706b4704c5d5f769034d9bce5a0
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 14:00:48 2025 +1100
Remove unused js shims and autoformat project
commit d475565529bd0c12f06f85f0bcbf19c857176fa7
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:59:10 2025 +1100
camelCase conversions and api type propogation
commit 7b3b633a9d21c74977d4de120138fff192faaa78
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:11:22 2025 +1100
Strategise ts improvements
commit 9396e4928abcf9d8a74a656ad21913f95e8e3e41
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 13:06:19 2025 +1100
Linting errors
commit 528fa3bc2f6c42de6de37d9593d2ed31630d0e81
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:59:21 2025 +1100
Recipe search pagination
commit 4993c3e53f540e098f3275715c86754dee9392af
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:33:13 2025 +1100
Removed redundant nonnull check
commit c03d0b582d0a8b17e675cdf9bdab09eac4091d44
Author: jableader <jacobdunk@gmail.com>
Date: Sun Oct 19 12:29:57 2025 +1100
Persons api pagination
commit 67008b4a94a90295ed811594ca0e7f37c80a8305
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:44:32 2025 +1100
ts pages starting to work
commit 0144e7f70d19289007d6b035594786ce573cbc70
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 22:39:17 2025 +1100
More typescript fixes
commit dc429f84b48ca5892c6043db81b89fa6431d872d
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:28:54 2025 +1100
5) API client and codegen guardrails — DONE (scripts) / PARTIAL (CI wiring)
commit 36ba555d9a600ca8cca4c18571e0d96584243556
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:26:30 2025 +1100
Tighten composable and UI types (remove last anys) — DONE
commit 97523a9ef6aa972497e62d63c6f666453bb7eefc
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:24:11 2025 +1100
Align OpenAPI params to remove residual casts, Strengthen MSW tests for the typed client
commit 608f6b751cb982487e90560792aec33317981c60
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:14:11 2025 +1100
ts complete, rerun codegen
commit ca28376ed7bcb4ff4c7669210ce6eebfd9cb6eaa
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 18:09:29 2025 +1100
Document All JS under `src/` is now removed; the source tree is TS-only.
commit ff3338b108bbf094f987302a21f1779d8f23368f
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:59:49 2025 +1100
Ts tests
commit ce4555a279c715f427f9d00c346561efd74705f8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:56:18 2025 +1100
Completed Generate real OpenAPI types and wire them
commit b7304aa7390f33a372acda46c593d6592aabf3f7
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 17:02:27 2025 +1100
DatePicker ts conversion
commit cb6ebdba286d44dbaae522ee29d95aa3ccfb5dc1
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:56:38 2025 +1100
Removed js files
commit 549eefd369499e0a1d35ff88a659c8aecd955a02
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:49:31 2025 +1100
- Utilities converted to TS: `src/dateformats.ts`, `src/units.ts`; imports updated accordingly.
- Router converted to TS: `src/router/index.ts`; legacy `index.js` removed.
commit 6f7731287f4166df5c02164ec4220e370c6d7a35
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:48:58 2025 +1100
alerts ts conversion
commit 4b1baec85a74b75e94d2392fea3b5abee294089c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:27:35 2025 +1100
use v1 api
commit da11976b96d791935cb16c7b1fdb074a2c87f53c
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:18:17 2025 +1100
- Shopping pages converted to TS: `MyShoppingPage.vue`, `CurrentShoppingListPage.vue`, `PurchasedShoppingListPage.vue` (typed refs/computed; stable keys; wired to helpers).
commit acf740380bf53386e12e108ba09a507141176733
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:08:22 2025 +1100
Shopping MyShoppingPage converted to TS with typed refs.
commit 744d7e792d013f0ed04f11280f3351950925beee
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 16:05:19 2025 +1100
Shopping gets types
commit 4e576dca94424383bdf753403d7764e22a28f377
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:57:50 2025 +1100
Error tests
commit ac6ae41b840c30196a370a077e02953c63977908
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:56:20 2025 +1100
More datatypes
commit d7ea6538b1af6144933a2603d330cb17e04809db
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:45:49 2025 +1100
spec updates
commit 0d6cfc1328df8ab4a4baf8f31a7a4e1ea50fd850
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:44:34 2025 +1100
`codegen:check` warns when backend spec is newer than generated types
commit 54bff353b8e7429961364803300b38bc70f963c2
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:42:24 2025 +1100
PersonList ts
commit e5ffcdde7e9538525704581a82606261596d31f5
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:40:53 2025 +1100
MealCard ts
commit 5432d8333c023b0c6e25c9a6ac31519c818e6a58
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:39:29 2025 +1100
ue CLI now serves/builds with TypeScript entry, ESLint configured to parse TS, use ts code
commit aba3fd532550a90adeb957b4ddbb43798bcf9e5a
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:23:16 2025 +1100
composables typescript
commit 28ba44cc951fddfe64c386e77a91c2f46060cfb8
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:19:09 2025 +1100
let the typescriptin begin
commit 98e57e4d65cecdd1ed5ed3fbf6b1ebf46ae6af10
Author: jableader <jacobdunk@gmail.com>
Date: Sat Oct 18 15:13:58 2025 +1100
Added typescript
2025-10-19 13:12:40 +00:00
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
}
|
2025-11-01 01:22:52 +00:00
|
|
|
|
2025-11-01 07:24:35 +00:00
|
|
|
export async function requestIngredient(ingredientId: number): Promise<import('@/domain/types').ListIngredientItemWithRefs> {
|
|
|
|
|
const householdSlug = requireSlug()
|
|
|
|
|
const { data, error, response } = await api.POST('/api/v1/households/{householdSlug}/shopping/current/ingredients', {
|
|
|
|
|
params: { path: { householdSlug } },
|
|
|
|
|
body: { ingredientId },
|
|
|
|
|
})
|
|
|
|
|
if (!response.ok) throw httpError(response, error)
|
|
|
|
|
const [decoded] = decodeListIngredientItems([data as any])
|
|
|
|
|
if (!decoded) throw new Error('Failed to decode requested ingredient item')
|
|
|
|
|
return decoded
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-01 01:22:52 +00:00
|
|
|
// Re-export domain command types for convenience at SDK surface
|
|
|
|
|
export type { PurchaseRequest } from '@/domain/commands'
|