InvenTree/src/frontend
Oliver 8bc750bc06
[React] Settings interface (#5679)
* Add some dummy pages for settings

* Add some placeholder pages for settings

* Refactor 'useInstance' hook

- Allow use without a pk

* Make response status code available

* Cleanup user settings page

* Fill out (empty) panels for system settings

* Update URLs

* Add more user information to "me" API endpoint

* Implement global user context

- User information available globally
- Add placeholder page for plugin settings

* remove debug entry

* Add first-pass implementation of plugins table

* Add icon to plugin table

* plugin table improvements

* Add SettingsContext component

- Allows list of settings to be drilled down through props
- Also provides a way of reloading the settings list

* Update settings page

* Update settings detail API endpoints

- No longer case sensitive

* Display boolean values, and allow them to be edited

- Still some work to be done here
- Need to pass the base URL down through useContext

* Allow editing of non-boolean settings too

- Required some adjustment to existing forms interface

* Fix rendering of choice field within modal

* Display correct value for choice fields

* Expose settings units to API

* Updates

- Display units for setting (if available)
- Rename fieldType to field_type
- React does not like snakeCase props

* Improve form handling

* Add global server settings keys

* Add table for project codes

* Use cache to ensure that settings are not rebuilt too often

* Update api version notes

* Add username helper function to user state

* Remove SettingsContext

- Replace with global state manager
- Does not currently refresh properly

* Remove UserContext

* Update BaseContext

* Cleanup to match master

- Integrated many improvements from current master

* Get settings items working again

- Now integrates nicely with userSettingsState and globalSettingsState

* Improve generation of user name

* Handle user settings too

* url endpoint fix

* Add new table for custom unit management

* Update global settings
2023-10-17 10:28:46 +11:00
..
public Platform UI - React integration (#5011) 2023-07-18 22:45:49 +10:00
src [React] Settings interface (#5679) 2023-10-17 10:28:46 +11:00
tests [P-UI] Home page (#5344) 2023-08-09 22:32:53 +10: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 P UI: Basic UI & Auth setup (#5207) 2023-07-21 08:54:57 +10: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 deps (#5666) 2023-10-05 09:48:53 +11: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 [P_UI] Added django settings for p_ui (#5343) 2023-08-10 20:57:33 +10:00
yarn.lock Bump deps (#5666) 2023-10-05 09:48:53 +11:00