feat(ui): add about modal w/ app deps (#5462)

* resolved conflicts

* changed logo and some design changes

* feedback changes

* resolved conflicts

* changed logo and some design changes

* feedback changes

* lint fixed

* added translations

* some requested changes done

* all feedback changes done and replace links in settingsmenu comp

* fixed the gap between deps verisons & chnaged heights

* feat(ui): minor about modal styling

* feat(ui): tag app endpoints with FetchOnReconnect

* fix(ui): remove unused translation string

---------

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
Co-authored-by: Kent Keirsey <31807370+hipsterusername@users.noreply.github.com>
This commit is contained in:
Rohinish
2024-01-18 19:00:56 +05:30
committed by GitHub
parent c9ddbb4241
commit 1ab0e86085
7 changed files with 172 additions and 9 deletions

View File

@ -1,5 +1,9 @@
import type { paths } from 'services/api/schema';
import type { AppConfig, AppVersion } from 'services/api/types';
import type {
AppConfig,
AppDependencyVersions,
AppVersion,
} from 'services/api/types';
import { api } from '..';
@ -10,16 +14,21 @@ export const appInfoApi = api.injectEndpoints({
url: `app/version`,
method: 'GET',
}),
providesTags: ['AppVersion'],
keepUnusedDataFor: 86400000, // 1 day
providesTags: ['FetchOnReconnect'],
}),
getAppDeps: build.query<AppDependencyVersions, void>({
query: () => ({
url: `app/app_deps`,
method: 'GET',
}),
providesTags: ['FetchOnReconnect'],
}),
getAppConfig: build.query<AppConfig, void>({
query: () => ({
url: `app/config`,
method: 'GET',
}),
providesTags: ['AppConfig'],
keepUnusedDataFor: 86400000, // 1 day
providesTags: ['FetchOnReconnect'],
}),
getInvocationCacheStatus: build.query<
paths['/api/v1/app/invocation_cache/status']['get']['responses']['200']['content']['application/json'],
@ -57,6 +66,7 @@ export const appInfoApi = api.injectEndpoints({
export const {
useGetAppVersionQuery,
useGetAppDepsQuery,
useGetAppConfigQuery,
useClearInvocationCacheMutation,
useDisableInvocationCacheMutation,