mirror of
https://github.com/Radarr/Radarr
synced 2026-01-25 00:41:50 +01:00
- Remove duplicate dotnet_style_qualification rules in .editorconfig - Update Radarr branding to Aletheia in .editorconfig - Add integration tests step to build.yml (with continue-on-error) - Upgrade Prettier to 3.7.4, eslint-plugin-prettier to 5.5.4 - Upgrade eslint-config-prettier to 10.1.8 - Fix pre-existing lint errors (unused vars, radix parameter) - Reformat frontend code with Prettier 3 formatting changes Closes #57 (SonarCloud deferred - needs org setup) Closes #58, #62 (partial - ESLint 9 deferred), #63 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
84 lines
1.7 KiB
TypeScript
84 lines
1.7 KiB
TypeScript
import Column from 'Components/Table/Column';
|
|
import { SortDirection } from 'Helpers/Props/sortDirections';
|
|
import { ValidationFailure } from 'typings/pending';
|
|
import { Filter, FilterBuilderProp } from './AppState';
|
|
|
|
export interface Error {
|
|
status?: number;
|
|
responseJSON:
|
|
| {
|
|
message: string | undefined;
|
|
}
|
|
| ValidationFailure[]
|
|
| undefined;
|
|
}
|
|
|
|
export interface AppSectionDeleteState {
|
|
isDeleting: boolean;
|
|
deleteError: Error;
|
|
}
|
|
|
|
export interface AppSectionSaveState {
|
|
isSaving: boolean;
|
|
saveError: Error;
|
|
}
|
|
|
|
export interface PagedAppSectionState {
|
|
page: number;
|
|
pageSize: number;
|
|
totalPages: number;
|
|
totalRecords?: number;
|
|
}
|
|
export interface TableAppSectionState {
|
|
columns: Column[];
|
|
}
|
|
|
|
export interface AppSectionFilterState<T> {
|
|
selectedFilterKey: string;
|
|
filters: Filter[];
|
|
filterBuilderProps: FilterBuilderProp<T>[];
|
|
}
|
|
|
|
export interface AppSectionSchemaState<T> {
|
|
isSchemaFetching: boolean;
|
|
isSchemaPopulated: boolean;
|
|
schemaError: Error;
|
|
schema: T[];
|
|
selectedSchema?: T;
|
|
}
|
|
|
|
export interface AppSectionItemSchemaState<T> {
|
|
isSchemaFetching: boolean;
|
|
isSchemaPopulated: boolean;
|
|
schemaError: Error;
|
|
schema: T;
|
|
}
|
|
|
|
export interface AppSectionItemState<T> {
|
|
isFetching: boolean;
|
|
isPopulated: boolean;
|
|
error: Error;
|
|
pendingChanges: Partial<T>;
|
|
item: T;
|
|
}
|
|
|
|
export interface AppSectionProviderState<T>
|
|
extends AppSectionDeleteState, AppSectionSaveState {
|
|
isFetching: boolean;
|
|
isPopulated: boolean;
|
|
isTesting?: boolean;
|
|
error: Error;
|
|
items: T[];
|
|
pendingChanges?: Partial<T>;
|
|
}
|
|
|
|
interface AppSectionState<T> {
|
|
isFetching: boolean;
|
|
isPopulated: boolean;
|
|
error: Error;
|
|
items: T[];
|
|
sortKey: string;
|
|
sortDirection: SortDirection;
|
|
}
|
|
|
|
export default AppSectionState;
|