iaso
iaso copied to clipboard
IA-2938 update polio plugin
Explain what problem this PR is resolving
Related JIRA tickets : IA-2938
Self proofreading checklist
- [X] Did I use eslint and black formatters
- [X] Is my code clear enough and well documented
- [X] Are my typescript files well typed
- [ ] New translations have been added or updated if new strings have been introduced in the frontend
- [ ] My migrations file are included
- [ ] Are there enough tests
- [ ] Documentation has been included (for new feature)
Doc
Some doc in the code
Changes
- Split
config.jsand convert to TS:- use
routes,menuandurlsfiles, like in the main iaso codebase
- use
- Move all permissions in constants
- Update
useRoutesanduseRedirectionsto use redirections from plugin - Update routes, links, buttons and filters:
- remove redux from filters and redirections
- use
LinkButtonwhere applicable - Remove all
routerandparamsprops from route elements
- Improve overall TS typing
How to test
Test all links, filters and redirections in polio
Notes
⚠️depends on https://github.com/BLSQ/bluesquare-components/tree/IA-2850_react-router_update_dev