Open CollinHeist opened 1 year ago
I think a toggleable dark/light mode could probably be accomplished like so:
$('.ui').toggleClass('inverted', true); // Dark mode
$('.ui').toggleClass('inverted', false); // Light mode
Although any CSS selectors using the class might need to be revised, along with any hard-coded class name assignment in JS (e.g. elem.className = "..."
)
Task scheduling might be doable with BackgroundTasks objects, but this is limited in terms of periodic scheduling and task monitoring.
The APScheduler module looks like a good solution; here is a good example of the basic object utilization with scheduling API endpoints.
Looks like APScheduler will not be able to write to the database at all, which is problematic. The problem is that SQL Alchemy is not multi thread/process safe; leading to a ton of issues when scheduling writes in separate processes.
Might change the SQL backend, or find a different solution, but for now starlette BackgroundTasks will have to do for background DB writes.
Created the https://github.com/CollinHeist/TitleCardMaker-CardTypes/tree/web-ui branch on the TitleCardMaker-CardTypes repository; and added a JSON file in 563e0d1e4e80e0d9fda34daf32352b1aaed6a6d2 which defines a JSON file containing card details for all user-created cards. This should be parsed on the webpage.
I'll need to reach out to the card creators and get their feedback on the card/extra descriptions, as well as the example images they want used.
I think users should be able to toggle which card types they do/do not want shown in card type dropdowns. This should be added to the Settings page. Card type dropdowns should also be searchable.
I think users should also be able to turn off logo downloading within the TMDb settings
This will be a pretty huge endeavor, but ideally TCM should move away from YAML files and command-line scripts and be interacted with via a web UI/interface, like all the -arr apps. It's derivative, but I think the Sonarr interface is good inspiration for a general layout.
I think the server-side API should using FastAPI to handle the requests and HTML content delivery.
Outstanding Tasks
Add image source priority to Templates(decided this is not necessary and adds needless complication)preferred_title
Maybe import Episode data, although this would be really nicheToo nicheCreate alternate views (table view?) for series on main pagePutting on hold until I can think of a good layout[x] Add translated cardinal/ordinal number functionality
Low Priority Tasks
[ ] https://www.kirupa.com/react/creating_single_page_app_react_using_react_router.htm
Documentation tasks should be tracked in #339