InvenTree/src/frontend
Oliver 7fe8207463
Forms initial data (#6365)
* Use PATCH for edit form

* Add "localhost:8000" server option

* Add initialData property for forms

- Allows user to specify an initial dataset to override default values

* Override field values when constructing form props

* Remove debug messages

* Wrap ApiForm in FormProvider

- Allows lower elements to access all form data without rebuild
- Pass all form data through to adjustFilters routine

* Fixes for RelatedModelField

- Ensure that the saved data are cleared when filters change

* Fix debug message for token creation

* Fix address rendering for modals

* Refactor "address" forms

- Use new "hook" form structure

* Update Contacts table

* Prevent related model fields from fetching on initial form open

- Only fetch when the drop-down is actually opened
- Significantly reduces the number of API calls

* Fix for ChoiceField

- Display label / description / placeholder text

* Fix for DateInput

- Correct conversion of datatype

* Implement "new purchase order" form

- Uses modal form hook
- Supply initial data
- Adjust filters according to selected company

* Add new company from company table

* Edit company from detail page

* More table updates

- StockLocation
- PartCategory

* Update more tables / forms:

- PartParameter table
- PartParameterTemplate table
- Cleanup unused imports

* Update ProjectCode table

* CustomUnits table

* Update RelatedPart table

* Update PartTestTemplate table

* Cleanup PartParameterTable

* Add "IPN" column to PartParameterTable

* Update BuildOrder table

* Update BuildDetail page

* PurchaseOrderLineItem table

* Simplify

- Move fields which are only used in one location

* Create new salesorder with context

- Also consolidate translated strings
- Also improve consistency of inline rendering (with missing image)

* Revert change to RenderInlineModel

* Fix for build table

- Use apiUrl wrapper around ApiEndpoint

* Fix parameter for PurchaseOrderTable

* Adjust server selector

- Only show localhost:8000 if in dev mode

* Tweak URL

* Add extra test to playground

- Check initial value works for nested field

* Cleanup playground

* Cleanup unused vars

* memoize fields

* Fix typo

host -> host

* Fix part editing

* Cleanup unused

* update group table
2024-02-01 00:38:59 +11:00
..
public Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
src Forms initial data (#6365) 2024-02-01 00:38:59 +11:00
tests Squashed commit of the following: (#5785) 2023-10-26 07:55:52 +11:00
.babelrc Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
.eslintrc.cjs Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
.gitignore Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
.linguirc Add support for Slovak (#6351) 2024-01-29 10:56:58 +11:00
.prettierrc Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
index.html P UI: Basic UI & Auth setup (#5207) 2023-07-21 08:54:57 +10:00
netlify.toml [P_UI] Added django settings for p_ui (#5343) 2023-08-10 20:57:33 +10:00
package.json Bump vite from 4.4.12 to 4.5.2 in /src/frontend (#6296) 2024-01-20 02:40:52 +00:00
playwright.config.ts P-UI: Fast language / theme / server selection (#5301) 2023-07-22 22:19:19 +10:00
tsconfig.json Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
tsconfig.node.json Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
vite.config.ts Remove proxy support in vite server (#6359) 2024-01-29 22:18:25 +11:00
yarn.lock Bump vite from 4.4.12 to 4.5.2 in /src/frontend (#6296) 2024-01-20 02:40:52 +00:00