tigattack
53f8471d75
fix(frontend): Avoid using the index of an array as key property in an element
2025-09-25 23:54:23 +01:00
tigattack
74f42b5bee
fix(frontend): A form label must be associated with an input
2025-09-25 23:54:23 +01:00
tigattack
a84da7c731
fix(frontend): Static Elements should not be interactive
2025-09-25 23:54:23 +01:00
tigattack
83ce7c64fd
style(frontend): fmt
2025-09-25 23:54:23 +01:00
tigattack
15902da87c
fix(frontend): use useId() for input IDs
2025-09-25 23:54:23 +01:00
tigattack
a11f180d23
fix(frontend): add missing explicit types for button elems
2025-09-25 23:54:23 +01:00
tigattack
35bf858977
fix(frontend): use useId() for input IDs
2025-09-25 23:54:23 +01:00
tigattack
330f80478d
chore: add biome
2025-09-25 23:54:23 +01:00
tigattack
b43b20fbe9
style(frontend): fmt
2025-09-25 23:14:35 +01:00
Muhammad Ibrahim
78f4eff375
fix: correct package versions and npm flags
...
Frontend package.json fixes:
- react-router-dom: ^6.31.0 → ^6.30.1 (6.31.0 doesn't exist)
- postcss: ^8.5.1 → ^8.5.6 (use latest stable version)
Setup script fixes:
- Replace deprecated --production flag with --omit=dev
- Resolves npm warning: 'npm WARN config production Use --omit=dev instead'
Fixes npm install errors:
- 'No matching version found for react-router-dom@^6.31.0'
- Deprecated npm configuration warnings
2025-09-24 20:07:36 +01:00
Muhammad Ibrahim
9f3016be57
deps: update all dependencies to latest non-deprecated versions
...
Frontend:
- ESLint: 8.53.0 → 9.17.0 (fixes deprecated warnings)
- React/React-DOM: 18.2.0 → 18.3.1
- Axios: 1.6.2 → 1.7.9
- Chart.js: 4.4.0 → 4.4.7
- Date-fns: 2.30.0 → 4.1.0 (major update)
- Express: 4.18.2 → 4.21.2
- HTTP-proxy-middleware: 2.0.6 → 3.0.3
- Lucide-react: 0.294.0 → 0.468.0
- React-router-dom: 6.20.1 → 6.31.0
- Add ESLint v9 flat config (eslint.config.js)
- Add required @eslint/js and globals dependencies
Backend:
- Prisma: 5.7.0 → 6.1.0
- Express: 4.18.2 → 4.21.2
- Dotenv: 16.3.1 → 16.4.7
- Express-rate-limit: 7.1.5 → 7.5.0
- Express-validator: 7.0.1 → 7.2.0
- Helmet: 7.1.0 → 8.0.0
- UUID: 9.0.1 → 11.0.3
- Winston: 3.11.0 → 3.17.0
- Nodemon: 3.0.2 → 3.1.9
Fixes npm warnings:
- rimraf < v4 deprecated
- inflight memory leaks
- glob < v9 deprecated
- @humanwhocodes packages deprecated
- ESLint v8 no longer supported
2025-09-24 19:50:50 +01:00
Muhammad Ibrahim
99aa79a6a4
Fixed authentication redirect upon signin using states
...
Finally fixed dashboard defaults for new user signups
2025-09-24 07:42:15 +01:00
Muhammad Ibrahim
3a0b564a6f
Fixed permissions issues
...
Created default user role
modified server.js to check if roles of admin/user is present
modified server.js to check dashboard cards
set up default dashboard cards to show
2025-09-24 02:33:26 +01:00
tigattack
bf2ea908f4
refactor(docker): rework docker
...
- Move Docker files to own directory (tidier since I added several more files)
- Optimise images and reduce size
- Uses multi-stage builds
- Optimises layer efficiency
- Uses NGINX as base for frontend
- Sets default env vars
- Uses tini for proper signal handling
2025-09-22 23:42:00 +01:00
tigattack
43ce146987
fix(frontend): fix login page icons
2025-09-22 23:42:00 +01:00
tigattack
69a121cdde
fix(frontend): don't poll for updates when user not authorised
2025-09-22 23:42:00 +01:00
tigattack
5ca0f086d4
fix(frontend): don't force HTTPS port
2025-09-22 22:23:54 +01:00
tigattack
c3365fedb2
fix: conflate frontend_url and server_url
2025-09-22 22:23:54 +01:00
Muhammad Ibrahim
f23f075e41
Added more dashboard cards
...
Fixed permissions roles creation bug
On initial deployment, made it so the agent being populated will be set as default and current
Fixed host detail to include package numbers
Added ability to add full name
- fixed loads of other bugs caused by camelcase to snake_Case migration
2025-09-22 21:31:14 +01:00
Muhammad Ibrahim
1392976a7b
Fixed agent version display issue
2025-09-22 01:45:27 +01:00
Muhammad Ibrahim
797be20c45
Created toggle for enable / disable user signup flow with user role
...
Fixed numbers mismatching in host cards
Fixed issues with the settings file
Fixed layouts on hosts/packages/repos
Added ability to delete multiple hosts at once
Fixed Dark mode styling in areas
Removed console debugging messages
Done some other stuff ...
2025-09-22 01:06:18 +01:00
Muhammad Ibrahim
a268f6b8f1
Fixed isAuthenticated function
2025-09-21 22:55:38 +01:00
Muhammad Ibrahim
a4770e5106
Addeed detailed logging to track first time admin setup
2025-09-21 22:52:23 +01:00
Muhammad Ibrahim
523756cef2
Fix AuthContext useEffect dependencies and add comprehensive debug logging for first-time setup flow
2025-09-21 22:48:29 +01:00
Muhammad Ibrahim
697da088d4
Fixed admin count endpoint
2025-09-21 22:42:47 +01:00
Muhammad Ibrahim
739ca6486a
Fix React error #301
2025-09-21 22:37:53 +01:00
Muhammad Ibrahim
38d299701d
Added security restrictions to admin count endpoint and force admin setup for testing
2025-09-21 22:31:07 +01:00
Muhammad Ibrahim
7ff051be3e
Implemented first-time admin registration flow if no admin present
2025-09-21 22:08:07 +01:00
Muhammad Ibrahim
2de80f0c06
Updated frontend to snake_case and fixed bugs with some pages that were not showing. Fixed authentication side.
2025-09-21 20:27:47 +01:00
AdamT20054
5a0229cef4
Should fix host configs generating with default params.
...
Another issue, caused by the wack prisma migration.
2025-09-21 07:28:12 +01:00
AdamT20054
f73c10f309
fml
2025-09-21 07:18:04 +01:00
Adam O'neill
d7460068d7
Merge branch 'dev' into dev
2025-09-21 04:18:07 +01:00
Muhammad Ibrahim
f3351d577d
fixed rate limits into env
2025-09-21 03:58:22 +01:00
AdamT20054
e1b8e4458a
Add signup functionality to Login component with email support and proxy middleware for API requests
2025-09-21 03:32:41 +01:00
AdamT20054
01a8bd6c77
Add signup API endpoint for user registration
2025-09-21 03:23:55 +01:00
AdamT20054
229ba4f7be
Add Docker configuration for PostgreSQL, backend, and frontend services
2025-09-21 01:43:34 +01:00
Muhammad Ibrahim
9a3827dced
Fix hardcoded 1.2.4 values - make frontend load current version from API on mount and update User-Agent dynamically
2025-09-20 14:49:05 +01:00
Muhammad Ibrahim
0d10d7ee9b
Bump version to 1.2.5
...
- Updated root package.json to 1.2.5
- Updated backend package.json to 1.2.5
- Updated frontend package.json to 1.2.5
- Agent script already has AGENT_VERSION=1.2.5
2025-09-20 13:02:24 +01:00
Muhammad Ibrahim
1cdd6eba6d
Added better view on host details and improved filtering
2025-09-20 12:40:31 +01:00
Muhammad Ibrahim
adb207fef9
improved table views and added more host information
2025-09-20 10:56:59 +01:00
Muhammad Ibrahim
51d6dd63b1
added server.js for frontend when not using nginx in deployment
2025-09-18 22:59:50 +01:00
Muhammad Ibrahim
2d7a3c3103
Added mfa and css enhancements
2025-09-18 20:14:54 +01:00
Muhammad Ibrahim
5bdd0b5830
upgraded version
2025-09-18 02:09:42 +01:00
Muhammad Ibrahim
98cadb1ff1
added the right version of patchmon
2025-09-18 01:50:15 +01:00
Muhammad Ibrahim
42a6b7e19c
added ability to save the custom ssh id path
2025-09-18 01:31:07 +01:00
Muhammad Ibrahim
e35f96d30f
added deploy key custom ssh path
2025-09-18 01:19:43 +01:00
Muhammad Ibrahim
08f82bc795
added ability to specify deploy key path
2025-09-18 01:02:51 +01:00
Muhammad Ibrahim
16821d6b5e
feat: Implement SSH-based version checking for private repositories
...
- Replace HTTPS GitHub API calls with SSH git commands
- Use existing deploy key for private repository access
- Add proper error handling for SSH authentication issues
- Support fetching latest tags via git ls-remote
- Maintain compatibility with private repositories using deploy keys
This allows the version checking system to work with private repositories
that have SSH deploy keys configured, using the same authentication
as the local git operations.
2025-09-17 22:16:52 +01:00
Muhammad Ibrahim
f42c6cc185
feat: Add Server Version management with GitHub integration
...
- Add Server Version tab in settings
- Add githubRepoUrl field to Settings model
- Add database migration for github_repo_url
- Update settings API to handle GitHub repo URL
- Add version checking UI with current/latest version display
- Default GitHub repo: git@github.com:9technologygroup/patchmon.net.git
2025-09-17 22:07:30 +01:00
Muhammad Ibrahim
c5332ce6b0
first commit
2025-09-16 15:36:42 +01:00