feat: Add profile reference values summary endpoint and UI enhancements
- Introduced a new API endpoint for fetching a summary of profile reference values, providing the latest and previous entries for each reference type. - Updated ProfileReferenceValuesPage to display summary tiles with trend indicators for better user insights. - Enhanced CSS for responsive layout of reference value tiles, improving the overall user experience on different screen sizes. - Implemented trend calculation logic to visually represent changes between the latest and previous reference values.
This commit is contained in:
1 parent
c152721fe8
commit
3e916c082c
4 files changed
+296
-45
No files matched your search
@@ -75,6 +75,7 @@ export const api = {
|
||||
listReferenceValueMetaEnums: () => req('/reference-value-meta/enums'),
|
||||
listProfileReferenceValues: (typeKey) =>
|
||||
req(`/profile-reference-values?type_key=${encodeURIComponent(typeKey)}`),
|
||||
listProfileReferenceValuesSummary: () => req('/profile-reference-values/summary'),
|
||||
createProfileReferenceValue: (d) => req('/profile-reference-values', json(d)),
|
||||
updateProfileReferenceValue: (id, d) => req(`/profile-reference-values/${id}`, jput(d)),
|
||||
deleteProfileReferenceValue: (id) => req(`/profile-reference-values/${id}`, { method: 'DELETE' }),
|
||||
|
||||
Reference in new issue
Block a user