InvenTree/InvenTree
Oliver ec2a66e7a5
Request column names from server when loading table (#6375)
* Request column names from server when loading table

- As these are translated by the server, we can make use of them on the client side!
- Reduces duplication of translated titles

* Move tables up one level

* Cache translated table column names

* Clear table column cache whenever we change locale context

* Fix cache behavioue

* Enforce titleCase for table column names

* Refactor BuildOrder table

* Refactor Company table

* Refactor order tables

* More refactoring

- Refactoring more columns

* Update more tables

* Refactor BomTable

* Remove toTitleCase

- We will rely on the server-side translations!

* Remove debug messages

* Update src/frontend/src/tables/InvenTreeTable.tsx

Co-authored-by: Matthias Mair <code@mjmair.com>

* Cleanup

* Update docstring

* Cleanup

* Support nested fields with dot notation

- Powerful code reuse is powerful

* Complete refactor for BuildLine table

- Add some missing field descriptors on the backend

* Cleanup hooks a bit

* Update BomTable

* Allow table filters to make use of the same info

* Add ReferenceColumn helper

* Use queryParams when fetching table OPTIONS

- Required to ensure the same columns are fetched

* More refactoring

* Fix ProjectCodeTable

* Code cleanup

* Fix unused var

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2024-02-02 10:11:37 +11:00
..
build Request column names from server when loading table (#6375) 2024-02-02 10:11:37 +11:00
common Reimplement error-report API endpoint (#6317) 2024-01-22 12:03:58 +00:00
company [PUI] Details Panel components (#6040) 2024-01-31 10:37:42 +11:00
generic [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
InvenTree [PUI] Details Panel components (#6040) 2024-01-31 10:37:42 +11:00
label Move more paths to basic path (#6251) 2024-01-18 17:05:10 +11:00
locale Add support for Slovak (#6351) 2024-01-29 10:56:58 +11:00
order Build order improvements (#6343) 2024-01-29 10:56:34 +11:00
part Request column names from server when loading table (#6375) 2024-02-02 10:11:37 +11:00
plugin Fix urls loading for plugin testing (#6383) 2024-02-02 06:16:47 +11:00
plugins CI updates (#6167) 2024-01-11 00:16:13 +11:00
report Disable cache for report helpers (#6370) 2024-01-31 15:52:01 +11:00
script [CI] Enable python autoformat (#6169) 2024-01-11 11:28:58 +11:00
stock [PUI] Child item table (#6334) 2024-01-24 12:33:34 +00:00
templates Build order improvements (#6343) 2024-01-29 10:56:34 +11:00
users Forms initial data (#6365) 2024-02-01 00:38:59 +11:00
web [PUI] Fix logout (#6284) 2024-01-19 11:30:19 +11:00
config_template.yaml [FR] Add tracing support (#6211) 2024-01-18 17:50:05 +11:00
gunicorn.conf.py [CI] docstrings (#6172) 2024-01-11 14:40:07 +11:00
manage.py [FR] Add tracing support (#6211) 2024-01-18 17:50:05 +11:00