mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 00:23:59 -07:00
New: Release Profiles, Frontend updates (#580)
* New: Release Profiles - UI Updates * New: Release Profiles - API Changes * New: Release Profiles - Test Updates * New: Release Profiles - Backend Updates * New: Interactive Artist Search * New: Change Montiored on Album Details Page * New: Show Duration on Album Details Page * Fixed: Manual Import not working if no albums are Missing * Fixed: Sort search input by sortTitle * Fixed: Queue columnLabel throwing JS error
This commit is contained in:
parent
f126eafd26
commit
3f064c94b9
409 changed files with 6882 additions and 3176 deletions
|
@ -11,6 +11,9 @@ import createHandleActions from './Creators/createHandleActions';
|
|||
// Variables
|
||||
|
||||
export const section = 'releases';
|
||||
export const albumSection = 'releases.album';
|
||||
export const artistSection = 'releases.artist';
|
||||
|
||||
let abortCurrentRequest = null;
|
||||
|
||||
//
|
||||
|
@ -139,12 +142,21 @@ export const defaultState = {
|
|||
label: 'Rejections',
|
||||
type: filterBuilderTypes.NUMBER
|
||||
}
|
||||
]
|
||||
],
|
||||
|
||||
album: {
|
||||
selectedFilterKey: 'all'
|
||||
},
|
||||
|
||||
artist: {
|
||||
selectedFilterKey: 'discography-pack'
|
||||
}
|
||||
};
|
||||
|
||||
export const persistState = [
|
||||
'releases.selectedFilterKey',
|
||||
'releases.customFilters'
|
||||
'releases.album.customFilters',
|
||||
'releases.artist.customFilters'
|
||||
];
|
||||
|
||||
//
|
||||
|
@ -156,7 +168,8 @@ export const SET_RELEASES_SORT = 'releases/setReleasesSort';
|
|||
export const CLEAR_RELEASES = 'releases/clearReleases';
|
||||
export const GRAB_RELEASE = 'releases/grabRelease';
|
||||
export const UPDATE_RELEASE = 'releases/updateRelease';
|
||||
export const SET_RELEASES_FILTER = 'releases/setReleasesFilter';
|
||||
export const SET_ALBUM_RELEASES_FILTER = 'releases/setAlbumReleasesFilter';
|
||||
export const SET_ARTIST_RELEASES_FILTER = 'releases/setArtistReleasesFilter';
|
||||
|
||||
//
|
||||
// Action Creators
|
||||
|
@ -167,7 +180,8 @@ export const setReleasesSort = createAction(SET_RELEASES_SORT);
|
|||
export const clearReleases = createAction(CLEAR_RELEASES);
|
||||
export const grabRelease = createThunk(GRAB_RELEASE);
|
||||
export const updateRelease = createAction(UPDATE_RELEASE);
|
||||
export const setReleasesFilter = createAction(SET_RELEASES_FILTER);
|
||||
export const setAlbumReleasesFilter = createAction(SET_ALBUM_RELEASES_FILTER);
|
||||
export const setArtistReleasesFilter = createAction(SET_ARTIST_RELEASES_FILTER);
|
||||
|
||||
//
|
||||
// Helpers
|
||||
|
@ -231,7 +245,13 @@ export const actionHandlers = handleThunks({
|
|||
export const reducers = createHandleActions({
|
||||
|
||||
[CLEAR_RELEASES]: (state) => {
|
||||
return Object.assign({}, state, defaultState);
|
||||
const {
|
||||
album,
|
||||
artist,
|
||||
...otherDefaultState
|
||||
} = defaultState;
|
||||
|
||||
return Object.assign({}, state, otherDefaultState);
|
||||
},
|
||||
|
||||
[UPDATE_RELEASE]: (state, { payload }) => {
|
||||
|
@ -254,6 +274,7 @@ export const reducers = createHandleActions({
|
|||
},
|
||||
|
||||
[SET_RELEASES_SORT]: createSetClientSideCollectionSortReducer(section),
|
||||
[SET_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(section)
|
||||
[SET_ALBUM_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(albumSection),
|
||||
[SET_ARTIST_RELEASES_FILTER]: createSetClientSideCollectionFilterReducer(artistSection)
|
||||
|
||||
}, defaultState, section);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue