Use the new field .status in the search UI
The field .status can have the values: ```{rust} Self::Active => "Aktiv", Self::Obsolete => "Obsolet", Self::Planned => "Geplant", Self::UnderDevelopment => "In Entwicklung", ``` The search UI uses these as follows: * In the search result page: Warn users about datasets that are obsolete * In the details page: * Warn users about datasets that are obsolete * Inform users if a dataset is not active This MR needs to run against metadaten!876 running on localhost with adapted "api-proxy.js" See merge request !83
Showing
- src/components/DetailContent/DetailContent.tsx 25 additions, 0 deletionssrc/components/DetailContent/DetailContent.tsx
- src/components/DetailContent/utils.ts 1 addition, 1 deletionsrc/components/DetailContent/utils.ts
- src/components/Details/Details.tsx 10 additions, 0 deletionssrc/components/Details/Details.tsx
- src/components/SearchHits/Hit/Hit.tsx 19 additions, 1 deletionsrc/components/SearchHits/Hit/Hit.tsx
- src/searchClient/__TEST__/triggerFetch.test.ts 2 additions, 0 deletionssrc/searchClient/__TEST__/triggerFetch.test.ts
- src/searchClient/triggerFetch.ts 1 addition, 0 deletionssrc/searchClient/triggerFetch.ts
- src/searchClient/types.ts 2 additions, 0 deletionssrc/searchClient/types.ts
- src/theme.ts 3 additions, 0 deletionssrc/theme.ts
Loading
Please register or sign in to comment