-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Plex Search in program selector (#210)
* Plex Search - outlining filter metadata types + querying for them * Checkpoint * Another checkpoint - form almost working * Another checkpoint for Plex search * Hooked up form to local state and have it triggering search updates * Need to still confirm that the different operators are working correctly * Lots of updates left for the different form types, like the date picker * Autocomplete working sorta...loading tag values from Plex * Some more fixes to the builder: 1. Tooltips for the different buttons 2. Ability to remove groups 3. Hookup and/or operator nodes to the overall form 4. Some stylistic fixes * Ton more changes 1. Hooked up the filtering feature to the actual program selector UI 2. Implement sorting 3. Differentiation between basic/advanced search types (Basic is a single value field while advanced supports boolean operators) 4. Some hideous UI for all of this Still TODO: * Caching? Unclear whether this is worth it * Auto-search when values change based on a timeout -- current flow requires a button press which is sort of annoying * Clear search value button (button on each input to clear the value) * Validation of search parameters / fields * Rename some files; fix the build
- Loading branch information
1 parent
6555e8c
commit 0069184
Showing
17 changed files
with
1,143 additions
and
168 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import ToggleButton, { ToggleButtonProps } from '@mui/material/ToggleButton'; | ||
import React from 'react'; | ||
|
||
type Props = { | ||
children: React.ReactNode; | ||
selected: boolean; | ||
onToggle(): void; | ||
toggleButtonProps?: Partial<ToggleButtonProps>; | ||
}; | ||
|
||
const defaultProps: Partial<Props> = { | ||
toggleButtonProps: {}, | ||
}; | ||
|
||
export default function StandaloneToggleButton({ | ||
children, | ||
selected, | ||
onToggle, | ||
toggleButtonProps, | ||
}: Props) { | ||
return ( | ||
<ToggleButton | ||
{...(toggleButtonProps ?? defaultProps.toggleButtonProps)} | ||
value="check" | ||
selected={selected} | ||
onChange={() => { | ||
onToggle(); | ||
}} | ||
> | ||
{children} | ||
</ToggleButton> | ||
); | ||
} |
Oops, something went wrong.