Commit Graph

19 Commits

Author SHA1 Message Date
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
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
santiagosayshey
2dd93e2588 refactor(regex, format): Change the way regexes and formats are saved - regex IDs are now saved in conditions, not names - sanitisation in custom formats 2025-02-05 16:09:58 +10:30
santiagosayshey
789c5c6115 feat(ConditionModal): Add logging for saved conditions
- Adjust condition saving to include type, id (for regex), name, negate, and required fields
2025-02-05 16:09:58 +10:30
santiagosayshey
123cefa6e8 chore(dev): Improve Vite hot reloading in Docker environment
- Add CHOKIDAR_USEPOLLING=true to frontend service environment
- Update Node.js version to 18 in frontend Dockerfile
- Create vite.config.js with usePolling option enabled
2025-02-05 16:09:58 +10:30
santiagosayshey
397d9918f1 chore(docker): update Docker configurations and debug Flask setup 2025-02-05 16:09:58 +10:30
santiagosayshey
3391ff76b6 tests(regex): Improve testing functionality for regex. - Add sample unit tests - Add case insensitivity 2025-02-05 16:09:58 +10:30
santiagosayshey
3bd7017917 feat(testing): Add ability to link regex patterns to regex101 links 2025-02-05 16:09:58 +10:30
santiagosayshey
525d86063d Initial Commit 2025-02-05 16:09:58 +10:30