- Oct 21, 2023
-
-
Konrad Mohrfeldt authored
This refactors the existing state helpers (useCopy and useUpdatableState) and unifies them to useUpdateBehaviour, useCopy, useAPIObjectFieldCopy, useRelation and useRelationList. This eliminates a lot of custom code in the show settings page and unifies the behaviour of all input fields and save operations making the experience more consistent and understandable. It also enables us to show the save-in-progress state and errors that occurred during updates for all fields along with customizable debounce and proper v-model support. We also got rid of the remaining uses of useSelectedShow. The show settings page still made use of it despite using a route that provides the relevant show that should be edited.
-
Konrad Mohrfeldt authored
refs #127
-
- Oct 13, 2023
-
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
This is sometimes useful when we don’t want to modify the global page navigation state, but want to use independent lists.
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
This should make the API functions more accessible for callers as there won’t be any loose undefined values that were sometimes needed to skip certain values in certain API endpoints. Instead, every positional argument is now required and all configurable options or extensions are part of the options object.
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
Using the ID type makes type errors more likely because we accept a wider range of types as arguments for API operations than we actually support on a logic level, i.e. when using maps because Map<ID, T>.get('1') !== Map<ID,T>.get(1)
-
Konrad Mohrfeldt authored
Sometimes we want to query the API for certain objects. We can now do that by passing a URLSearchParams object to list operations.
-
Konrad Mohrfeldt authored
All requestInit arguments could have been undefined already, because we declared it as an optional argument, but sometimes it’s nice to explicitly skip the argument with `undefined` which is now possible as well.
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
- Jun 18, 2023
-
-
Konrad Mohrfeldt authored
Pinia store destructuring doesn’t work on the plain store object. One has to use storeToRefs or keep the original store object. see: https://pinia.vuejs.org/core-concepts/
-
- Jun 17, 2023
-
-
Konrad Mohrfeldt authored
refs #146
-
- Jun 16, 2023
-
-
Konrad Mohrfeldt authored
Django rest framework would sometimes return objects like this { "email": ["Gib eine gültige E-Mail Adresse an."] } which we didn’t properly handle.
-
- Jun 09, 2023
-
-
Konrad Mohrfeldt authored
The useServerErrors function returns an object with optional keys. This is fine sometimes but it would be nice to have individual variables containing errors for each field and more importantly we need to display errors than cannot be mapped to an individual form field.
-
Konrad Mohrfeldt authored
Using a string key begs for conflicts.
-
- Jun 08, 2023
-
-
Konrad Mohrfeldt authored
API object attribute names are now: 1. camelCased (#164) 2. use Id / Ids suffix for object references (#172)
-
- Apr 09, 2023
-
-
Konrad Mohrfeldt authored
This can be used in views to parse the error state from steering responses.
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
We have properties like header, that contain objects that need to be merged recursively.
-
- Apr 06, 2023
-
-
Konrad Mohrfeldt authored
We sometimes will want to use these in instanceof checks to narrow down types so they should have been exported in the first place.
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
The type for new or updated data rarely is the same as the one returned from the API as the data will likely include readonly fields that should not be modified.
-
Konrad Mohrfeldt authored
The cached result is usually sufficient and we don’t necessarily need fresh data from the API.
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
API store consumers shouldn’t be able to modify the internal state of the store.
-
- Apr 05, 2023
-
-
Konrad Mohrfeldt authored
Not all API endpoints will have the same behaviour. Some may only allow updates but can’t remove items, others will use a paginated result list instead of a plain result array.
-
Konrad Mohrfeldt authored
Sometimes it’s nice to let the URLBuilder build other URLBuilders.
-
- Feb 28, 2023
-
-
Konrad Mohrfeldt authored
-
Konrad Mohrfeldt authored
-