Commit Graph

431 Commits

Author SHA1 Message Date
Sam Chau
54e3e7499a refactor: simplify profile import logic by removing unique import handling and related logging 2025-02-05 16:09:59 +10:30
Sam Chau
98d14f54dd feat: add 'Unique' tag display in ArrCard component for unique imports 2025-02-05 16:09:59 +10:30
Sam Chau
e318f04f28 feat: add SyncModal component for initial sync confirmation and integrate with ArrModal 2025-02-05 16:09:59 +10:30
Sam Chau
e497245437 fix: correct casing of 'Profilarr' to 'profilarr' in Navbar component 2025-02-05 16:09:59 +10:30
Sam Chau
52c5085633 feat: update Navbar styling with gradient background and enhanced shadow effects 2025-02-05 16:09:59 +10:30
Sam Chau
c53d8681be feat: add active sync configuration checks before branch checkout and repository unlinking 2025-02-05 16:09:59 +10:30
Sam Chau
e970262ba0 chore: remove old file 2025-02-05 16:09:59 +10:30
Sam Chau
782b3c40fa feat: improve import success tracking and sync percentage calculation in run_import_for_config 2025-02-05 16:09:59 +10:30
Sam Chau
fba319eee2 feat: add manual sync functionality with confirmation modal in ArrModal component 2025-02-05 16:09:59 +10:30
Sam Chau
2c19df5503 feat: enhance loading states with dynamic messages in FormatPage and RegexPage components 2025-02-05 16:09:59 +10:30
Sam Chau
38a978146f feat: add loading and conflict states to RegexPage and FormatPage components 2025-02-05 16:09:59 +10:30
Sam Chau
92336276a0 fix: prevent layout shifts from scrollbar and streamline dark mode handling 2025-02-05 16:09:59 +10:30
Sam Chau
fc4bda773d fix: update mass import handling to use filtered and sorted format selections 2025-02-05 16:09:59 +10:30
Sam Chau
9f6aec5d53 fix: reset state and fetch arr instances when ImportModal opens 2025-02-05 16:09:59 +10:30
Sam Chau
c15502fa97 fix: update mass import handling to use selected profile indexes and add validation for empty selections 2025-02-05 16:09:59 +10:30
Sam Chau
dd7f467691 feat: implement shift-key selection preview in ProfileCard and ProfilePage components 2025-02-05 16:09:59 +10:30
Sam Chau
50f4dd5f29 feat: enhance mass selection functionality in RegexPage with shift key support and selection preview 2025-02-05 16:09:59 +10:30
Sam Chau
e7047e6593 fix: improve selection handling in useMassSelection hook for better range and single item selection 2025-02-05 16:09:59 +10:30
Sam Chau
f6b271e8e8 fix: adjust margin for navigation in SettingsPage component 2025-02-05 16:09:59 +10:30
Sam Chau
ba846b9d61 fix: remove 'Sort by Date Created' option from SortDropdown in DataBar component 2025-02-05 16:09:59 +10:30
Sam Chau
dbf3bf9801 style: enhance DataBar components with improved styling and animations 2025-02-05 16:09:59 +10:30
Sam Chau
2242bd2c4d feat: add slide-down animation to FloatingBar and enhance search behavior in DataBar 2025-02-05 16:09:59 +10:30
Sam Chau
4ebe79d9f7 feat: enhance SearchBar component with enter key functionality and active search display 2025-02-05 16:09:59 +10:30
Sam Chau
5d935768c4 fix: adjust margin for main content area in App component 2025-02-05 16:09:59 +10:30
Sam Chau
dded8af07b feat: implement FloatingBar component for improved DataBar scrolling behavior 2025-02-05 16:09:59 +10:30
Sam Chau
152423b65a feat: refactor data actions into new DataBar component 2025-02-05 16:09:59 +10:30
Sam Chau
d93b57975c feat: enhance load_tasks_from_db method to remove old jobs before reloading tasks 2025-02-05 16:09:59 +10:30
Sam Chau
4d19ecac1e refactor: improve formatting and structure of ARR config data handling 2025-02-05 16:09:59 +10:30
Sam Chau
8bd643b9d7 feat: integrate TaskScheduler to reload tasks from DB after ARR config operations 2025-02-05 16:09:59 +10:30
Sam Chau
834ec176d0 feat: move import statements for ARR manager into run_job method for better encapsulation 2025-02-05 16:09:59 +10:30
Sam Chau
70242ee244 feat: enhance update logic for ARR config import tasks to handle sync_method changes 2025-02-05 16:09:59 +10:30
Sam Chau
21829c40dc feat: implement task management functions for ARR config imports 2025-02-05 16:09:59 +10:30
Sam Chau
1b06d0d656 feat: add ARR import logic on branch pull for sync_method='pull' 2025-02-05 16:09:59 +10:30
Sam Chau
8d30f52c03 feat: add ImportScheduleTask for scheduled ARR config imports 2025-02-05 16:09:59 +10:30
Sam Chau
bd887ce8d5 feat: add import_task_id column to settings table for task tracking 2025-02-05 16:09:59 +10:30
Sam Chau
c8e28b284a feat: update process_format_name to handle None profile_name with Profilarr tag 2025-02-05 16:09:59 +10:30
Sam Chau
a73efaf410 feat: enhance profile import logging for better traceability and debugging 2025-02-05 16:09:59 +10:30
Sam Chau
411c9bbcba refactor: remove logging from hash generation functions for cleaner code 2025-02-05 16:09:59 +10:30
Sam Chau
5473b2b527 feat: add 'hash' logger with console, file, and hash_file handlers 2025-02-05 16:09:59 +10:30
Sam Chau
b4b59b7fe2 feat: implement dynamic log type filtering and selection in LogContainer and LogMenu components 2025-02-05 16:09:59 +10:30
Sam Chau
59a8578542 fix: enhance profile import functionality with unique name handling and configuration retrieval 2025-02-05 16:09:59 +10:30
Sam Chau
58d4f677ce feat: add hashing utility functions and logging for format and profile names 2025-02-05 16:09:59 +10:30
Sam Chau
3310a6e01a fix: replace type icons with logos in ArrCard component 2025-02-05 16:09:59 +10:30
Sam Chau
11eeb573cf fix: add descriptions for sync methods in ArrModal component 2025-02-05 16:09:59 +10:30
Sam Chau
ee8cf74384 fix: ensure data_to_sync has a safe structure and improve sync method handling 2025-02-05 16:09:59 +10:30
Sam Chau
f3a483ecf2 fix: remove unused file creation date retrieval and clean up SortMenu component 2025-02-05 16:09:59 +10:30
santiagosayshey
d8f944af11 improvements: whole lotta stuff (#18)
* feat: initialise task scheduler

* feat: add "next run" field to task status

* fix: adjust status route path

* feat: task dashboard + api functions

* fix: return sucess object for alert

* refactor: turn task cards into seperate objects

* fix: change task names

* feat: implement compile and import module
- only working for custom formats for now

* refactor/feature: refactor compilation module
- seperate file for mappings
- seperate format compiler into new file
- add compiler for profiles

* feat: add import logic for quality profiles

* fix: properly resolve cutoff IDs for singular qualities

* fix: remux mappings for sonarr

* fix: retain quality group order
- stop groups first, then singular

* fix: dynamically find next group ID to stop duplicate IDs from occuring

* fix: normalise quality letter case

* feat: add api functions for import functionality

* fix: adjust validation for import.js

* feat: add mass selection tool componnet
- keyboard shortcuts to enter state
- mass delete / import

* feat: add loading indicator on import

* style: improve selected card styling

* fix: append extra custom formats with 0 score

* perf: add git status caching to improve load times

* fix: adjust mass import handling and selection logic
- use content.name rather than content.id

* fix: enhance quality name mapping with alternate names and case-insensitive lookups

* feat: add description truncation to ProfileCard for improved readability
- also remove qualitites

* fix: update upgrade quality selection logic to handle disabling scenarios

* feat: expand language mappings with additional languages and identifiers

* feat: enhance profile conversion logging with language handling

* fix: clarify language setting impact in ProfileLanguagesTab component

* feat: add Sonarr language mappings and update language selection logic

* feat: implement language normalization and enhance logging in format conversion

* feat: enhance logging in format conversion and add language specification handling

* feat: add Afrikaans and Albanian languages to the language constants

* refactor: remove language strictness feature and update language handling in ProfileModal

* feat: add logging setup for improved debugging in mappings module

* feat: enhance language compilation to work with new system

* feat: update language handling in ProfileLanguagesTab to support 'any' behavior

* fix: remove redundant import statement in profile.py

* feat: implement in-memory format import functionality and update profile compiler to utilize it for non english language compilation

* feat: add comparison for tweaks in quality profile changes

* feat: add functions to convert display names to filenames and vice versa

* fix: remove unnecessary filename modification in formats data

* feat: add process_tweaks function to handle profile tweaks and import formats before compilation

* feat: refactor process_tweaks to modularize format import and scoring
- include lossless audio tweak handling

* feat: add support for Dolby Vision no fallback and bleeding edge codecs in process_tweaks

* feat: add support for disabling prereleases based on profile tweaks

* fix: reduce cache TTL from 30 seconds to 1 second for quicker updates

* feat: add resetState function to initialize profile modal state

* feat: enhance save_yaml_file function to optionally use data name for filename

* feat: enhance handle_rename function to account for staged renames

* feat: enhance revert functionality to handle untracked files and staged deletions

* chore: update timezone setting in docker-compose.yml

* feat: increase maximum description length in ProfileCard component

* refactor: generic YAML comparison and change summary functionality

* refactor: incoming changes now uses generic comparison logic

* refactor: add YAML conflict comparison functionality with detailed summary generation for merge conflicts

* refactor: heavily simplified resolve conflict modal to work with new generic conflict parsing

* refactor: implement GitStatusManager for improved repository status handling and sync task updates

* refactor: integrate GitStatusManager to update remote status after pull operations

* refactor: remove isDevMode prop from ChangeRow, ConflictRow, ConflictTable, ChangeTable, RepoContainer, and ActionButtons components

* refactor: migrate settings handling from settings_utils to db module and enhance settings management

* refactor: remove deprecated authentication methods and streamline push operations with SSH access

* refactor: enhance error handling and authentication for Git operations, including PAT support

* refactor: remove old settings_utils

* refactor: add settings prop to StatusContainer and update database initialization for profilarr_pat

* refactor: simplify format name handling in ViewChanges component by removing old API call

* fix: update fetchSettings to handle cases with no git repository and ensure settings is null

* fix: enhance get_git_status to return a valid status object when no git repository is found

* style: various improvements to repo container
- add database stats
- add organisation / profile avatar
- parse organisation / repo name
- improvements to branch button

* feat: implement authentication setup and middleware for secure session management

* fix: auto login after setting up authentication

* feat: enhance authentication setup with GET method and track failed attempts

* feat: add authentication setup and login components with API integration

* feat: redesign SetupPage component with improved layout and user guidance

* feat: enhance LoginPage layout with improved design and user guidance

* refactor: remove unused API functions for regex and format management

* improvements: whole lot more stuff (#17)

* feat: implement configuration management for directory paths and session settings

* feat: implement backup management with API endpoints for backup operations

* feat: add backup import functionality with zip file validation and restoration

* feat: implement backup API with endpoints for listing, creating, downloading, restoring, deleting, and importing backups

* feat: enhance backup listing with file size and last modified time

* feat: add backup management interface with listing, creation, restoration, and deletion functionalities

* fix: refresh backups list after successful deletion

* feat: create BackupCard component for displaying backup details and actions

* fix: status parsing improvements
- now properly shows outgoing changes with / without developer mode

* fix: remove authentication bypass for backup routes during testing

* feat: add logging configuration and ensure log directory creation

* feat: implement application-wide logging configuration and ensure log directory creation

* feat: add logging blueprint with endpoints for retrieving and searching log files

* feat: add git logging configuration to enhance logging capabilities

* refactor: enhance logging details and improve error handling in repository cloning and file processing

* refactor: update tab labels for clarity in settings page

* refactor: remove unused tasks and streamline task scheduler

* refactor: improve repository settings handling and UI updates in RepoContainer

* style: add slight gradient to modal

* feat: enhance footer with GitHub repository info and organization avatar

* refactor: update imports and enhance modal layout for linking Git repository

* refactor: remove documentation and issue links from footer component

* refactor: git settings refactor.
- new git container to contain repo / status
- split repo container into active / empty components
- split status into seperate sections for incoming, outgoing, conflict

* chore: simplify environment configuration by using .env file in docker-compose

* fix: update remote status after commit and push operations

* refactor: restructure application initialization and configure Git user settings on startup

* refactor: improve default Git user configuration handling in initialization

* style: enhance UI styling and structure for Git status display

* style: enhance UI layout and styling for ChangeRow and ChangeTable components

* style: enhance UI layout and styling for CommitMessage component

* style: improve selected row styling

* style: enhance UI styling for ConflictRow and ConflictTable components

* style: update merge process to include remote status update after finalization

* style: update noChangesMessages for improved clarity and engagement

* feat: add animated Logo component and integrate it into Navbar

* feat: enhance selection handling
- add shift selection
- add will be selected state and styling

* feat: enhance mouse tracking for shift selection

* refactor: remove deprecated ActionButtons

* style: unify button colors and update tooltips in IncomingChanges and OutgoingChanges components

* feat: add auto-pull feature with toggle in settings and backend support

* fix: update auto-pull implementation to use integer values

* feat: implement auto-pull functionality in remote status update

* file: improve value formatting for new files

* fix: change logger level to DEBUG and add debug message for profile import attempts

* refactor: remove logging statements and streamline exception handling in format compiler

* feat: enhance format import process with detailed logging and error handling

* feat: enhance profile import process with detailed logging and error handling

* refactor: remove non error logging statements for profile compilation

* feat: enhance logging for memory-based format import with detailed success and error messages

* feat: add logging for language settings and compiled profile data in profile import

* feat: add dedicated logging for importarr with separate log file and configuration

* feat: add logging API with functions to fetch logs, search, and filter by level

* feat: add logs tab to settings page with LogContainer component

* feat: add LogContainer and LogViewer components for enhanced log management

* fix: dynamic vertical height for log viewer

* fix: reduce log file size and increase backup count for improved log management

* fix: enhance error logging with exception type and full traceback for better debugging

* fix: use mapped cutoff name for profile conversion to ensure correct quality mapping

* fix: add validation for git repository existence before syncing

* fix: implement delete constraints check before item deletion to prevent breaking references

* fix: enhance delete constraints check with improved logging and name normalization

* fix: add protection against deletion of required custom formats in delete constraints check

* feat: implement ANSI color parsing in LogViewer for improved log readability

* feat: enhance ViewChanges component with improved key parsing and rendering of changes

* refactor: improve styling and structure of ResolveConflicts component for better readability and usability

* fix: improve error handling and response for arr config saving

* feat: extend arr configuration with additional fields and sync methods

* feat: add DataSelectorModal component for selecting data to sync

* feat: enhance ArrModal and DataSelectorModal with improved layout and data display

* feat: update ArrContainer to use new API import and include additional arrConfig fields

* feat: enhance ArrCard component with sync details and improved layout

* feat: add AddButton component with custom positioning and animations

* feat: replace Add New Card section with AddButton component for improved UX

* feat: reposition AddButton in ArrContainer for better visibility

* feat: replace AddNewCard with AddButton in RegexPage for improved UX

* feat: replace AddNewCard with AddButton in FormatPage for improved UX

* feat: replace AddNewCard with AddButton in ProfilePage for improved UX
2025-02-05 16:09:59 +10:30
Sam Chau
4078797ad4 fix: use negative IDs for quality groups 2025-02-05 16:09:59 +10:30
Sam Chau
58a1038708 fix: save custom formats in profiles by: - score first - alphabetically second 2025-02-05 16:09:59 +10:30
Sam Chau
50f9a878ec feat: add keyboard shortcuts to focus / clear search bar - ctrl+f for focus - ctrl+k for clear 2025-02-05 16:09:59 +10:30