Commit Graph

431 Commits

Author SHA1 Message Date
Sam Chau
450fcb4973 feat: implement dev mode 2025-02-05 16:09:58 +10:30
Sam Chau
03059638ce refactor: remove API key from clone functionality 2025-02-05 16:09:58 +10:30
Sam Chau
77a4411ca7 fix: change status message only on git status fetch 2025-02-05 16:09:58 +10:30
Sam Chau
ed12fff994 chore: add watchdog support for backend HMR 2025-02-05 16:09:58 +10:30
Sam Chau
ae80d50e7e chore: add prettier formatting for frontend 2025-02-05 16:09:58 +10:30
Sam Chau
3cc21c6951 feat: new button to push local branches, no longer auto pushes new branches to remote 2025-02-05 16:09:58 +10:30
Sam Chau
20ff5c822b fix: fix checkout / delete branches 2025-02-05 16:09:58 +10:30
Sam Chau
f7f4855953 refactor: adjust git file names 2025-02-05 16:09:58 +10:30
Sam Chau
856fc300de feat: improve unlink functionality - option to remove existing files - confirmation modal 2025-02-05 16:09:58 +10:30
Sam Chau
a44804cd1d fix: add pull button back 2025-02-05 16:09:58 +10:30
Sam Chau
92b38db7a9 refactor: seperated cloning from settings 2025-02-05 16:09:58 +10:30
Sam Chau
fa4818cb6a refactor: move git operations into their own route 2025-02-05 16:09:58 +10:30
Sam Chau
ec7430466f refactor: move git operations into seperate files 2025-02-05 16:09:58 +10:30
Sam Chau
623f510ff9 refactor: move branch functionality into seperate files 2025-02-05 16:09:58 +10:30
Sam Chau
8fd657a3c8 refactor: move diff into status folder 2025-02-05 16:09:58 +10:30
Sam Chau
8e9cd5e357 refactor: move status functions into seperate files 2025-02-05 16:09:58 +10:30
Sam Chau
a685dfa3a5 refactor: clone repo moved into seperate file 2025-02-05 16:09:58 +10:30
Sam Chau
13cd246a4d refactor: new file for settings file management 2025-02-05 16:09:58 +10:30
Sam Chau
b6c3f3a545 feat: add unlink button to frontend 2025-02-05 16:09:58 +10:30
Sam Chau
549dec7aab feat: api function to unlink repo 2025-02-05 16:09:58 +10:30
Sam Chau
f35ff413eb feat: unlink repo [backend] 2025-02-05 16:09:58 +10:30
Sam Chau
dbbad3816f fix: intialise profile folder if not exist 2025-02-05 16:09:58 +10:30
Sam Chau
7f0979a802 fix: handle cloning empty repos 2025-02-05 16:09:58 +10:30
Sam Chau
f08d5aa73b fix: stop saving settings on bad clone 2025-02-05 16:09:58 +10:30
Sam Chau
7410edf614 debug: add logging to clone and setting functions 2025-02-05 16:09:58 +10:30
Sam Chau
1240f62bed fix: get full path for outgoing changes 2025-02-05 16:09:58 +10:30
santiagosayshey
1ae0151676 show deleted file names in outgoing changes 2025-02-05 16:09:58 +10:30
santiagosayshey
9c510998f9 fix(changes): Fix parsing outgoing changes - now correctly shows changes as staged - can now revert staged files 2025-02-05 16:09:58 +10:30
santiagosayshey
3947c1e319 Sorting options in profile modal 2025-02-05 16:09:58 +10:30
santiagosayshey
57f045a8cf Highlight input fields on click in profile modal 2025-02-05 16:09:58 +10:30
santiagosayshey
06a230eeba feat(branch): Improve styling 2025-02-05 16:09:58 +10:30
santiagosayshey
650cfa2dc7 feat(diffViewer): Improve diff viewer - Show untracked, deleted, modified outgoing changes - Improve modal style 2025-02-05 16:09:58 +10:30
santiagosayshey
ab3c6183c5 feat(settings-page): Add sorting options for git status 2025-02-05 16:09:58 +10:30
santiagosayshey
1cee08bdbd feat(profile-modal): Improvements - Show quality profile type in status page - Increase modal size, split things into columns - Filter formats - Bigger description size 2025-02-05 16:09:58 +10:30
santiagosayshey
d9601eac0f feat(Modal): Modal, profile improvements - Adjust title based on state - Score formats based on tags 2025-02-05 16:09:58 +10:30
santiagosayshey
174e4ec82d feat(delete): Improve delete functionality - Don't allow deletion of regex / format in use - Add confirmation for deleting before allowing request 2025-02-05 16:09:58 +10:30
santiagosayshey
8cb3d7a827 feat(profiles): Add basic functionality for profile page
- Create ProfileCard and ProfileModal components
- Implement profile.py backend file for CRUD operations
- Update API file with profile-related functions
- Modify main application file to include profile blueprint
- Add profile directory initialization
2025-02-05 16:09:58 +10:30
santiagosayshey
330c162b0e refactor(nav): Implement React Router for navigation
- Replace button-based navigation with React Router Links in Navbar
- Add BrowserRouter, Routes, and Route components in App.js
- Update Navbar to determine active tab based on current route
- Remove setActiveTab prop from Navbar component
- Update RegexPage, FormatPage, and SettingsPage imports in App.js
- Adjust Navbar propTypes to remove activeTab and setActiveTab
2025-02-05 16:09:58 +10:30
Sam Chau
fd9d23a828 Refactor backend, enhance Git functionality, and improve UI/UX (#2)
## Backend Changes
- Refactored and restructured backend code
- Consolidated utility functions and updated directory structure
- Improved Git clone functionality to merge local files
- Enhanced Git status retrieval and diff parsing
- Implemented file revert and delete functionality
- Optimized Git status checks for better performance

## Frontend Enhancements
- Added smooth animated background transition in navbar
- Implemented comprehensive Git status display in SettingsManager
- Created branch management modal with improved UI and functionality
- Added loading indicators for Git operations
- Integrated DiffViewer for side-by-side comparisons of changes
- Implemented Toast notifications for better user feedback
- Enhanced file management with conditional revert/delete options
- Added ability to selectively pull incoming changes

## UI/UX Improvements
- Improved branch management UI with tooltips and confirmation dialogs
- Enhanced alert notifications using react-toastify
- Added fun loading messages for Git status
- Implemented CommitSection component for improved commit functionality

## Miscellaneous
- Updated sanitization to be less aggressive
- Initialized database folders on Flask startup
- Added Docker volumes for data storage
- Changed application name to Profilarr
2025-02-05 16:09:58 +10:30
Sam Chau
ae75baca26 feat(backend): Major overhaul of backend structure, git integration, and settings management
- **Backend Refactor:**
  - Merged route and operation files for regex and format.
  - Updated directory structure and consolidated utility functions.
  - Removed unnecessary app.py, using `__init__.py` for app creation.

- **Git Integration:**
  - Enhanced git cloning and merging methods, ensuring accurate local file updates.
  - Implemented comprehensive git status fetching with improved file status display and error handling.
  - Added branch management features, including branch creation, checkout, deletion, and associated UI improvements.
  - Integrated loading indicators and fun messages for better user feedback during git operations.

- **Settings Manager Enhancements:**
  - Expanded Git status display, including connected repository link, branch information, and detailed change listings.
  - Added revert functionality for individual files and all changes, with conditional UI updates based on file statuses.
  - Integrated `react-toastify` for alert notifications with improved styling.
  - Improved file name parsing, handling of file paths, and consistent API request structure.
  - Added UI components for a smooth tab transition and enhanced settings layout.

- **General Improvements:**
  - Revised sanitization logic for less aggressive handling, particularly for regex101 links.
  - Refactored backend logic to improve performance, specifically optimizing git status checks.
  - Implemented dynamic retrieval of default branches and enhanced handling of IDs in files.

**fixes, refactors, and additional features included**:
- Bug fixes for branch handling, git status accuracy, and file name adjustments.
- Improved error handling, logging, and user feedback across various components.
2025-02-05 16:09:58 +10:30
santiagosayshey
7287fb061e feat(db): Add sample data 2 2025-02-05 16:09:58 +10:30
santiagosayshey
4d9514b35f fix(regex): Check if regex is being used in custom format(s) before deleting 2025-02-05 16:09:58 +10:30
santiagosayshey
ff9093de6c style(buttons): change style and position of regex101 buttons 2025-02-05 16:09:58 +10:30
santiagosayshey
d9928f4f2e style(ui): Refine AddNewCard styling for instant border highlight on hover 2025-02-05 16:09:58 +10:30
santiagosayshey
c80b80f385 fix(clone): Ensure cloned items open in "Add New" modal instead of "Edit" modal 2025-02-05 16:09:58 +10:30
santiagosayshey
3571b35c5f fix(regex): Remove regex101 link when cloning a regex pattern 2025-02-05 16:09:58 +10:30
santiagosayshey
fe768935f8 feat(regex): Implement clone functionality and enhance UI with adjusted clone button size and animation 2025-02-05 16:09:58 +10:30
santiagosayshey
08a868254e refactor(clone-button): Reduce size and adjust hover animation for clone button 2025-02-05 16:09:58 +10:30
santiagosayshey
851a02a794 refactor: Update hover styles for FormatCard and RegexCard components 2025-02-05 16:09:58 +10:30
santiagosayshey
0c0a4cb5d1 feat: Add clone button with SVG icon to FormatCard component 2025-02-05 16:09:58 +10:30