Commit Graph

86 Commits

Author SHA1 Message Date
249b1e21c3 feat: Enhance project display with hoverable overflow for additional projects 2025-09-15 09:45:49 +02:00
551a0ea71a feat: Implement mobile-friendly filter toggle and enhance project list filters 2025-09-12 13:36:28 +02:00
adc348b61b refactor: Update user role display in navigation component to improve readability 2025-09-12 12:12:33 +02:00
49f97a9939 feat: Enhance navigation component with mobile menu support and improved styling 2025-09-12 12:03:07 +02:00
99f3d657ab feat: Update audit log queries to improve clarity and accuracy in statistics 2025-09-12 11:41:51 +02:00
cc6d217476 feat: Enhance project status handling with additional statuses and translations 2025-09-12 11:17:36 +02:00
47d730f192 feat: Add AUTH_TRUST_HOST environment variable to production Docker configuration 2025-09-12 11:08:06 +02:00
c1d49689da feat: Enhance deployment scripts with environment variable validation and loading 2025-09-12 09:21:53 +02:00
95ef139843 feat: Add support for project cancellation status across the application 2025-09-11 16:19:46 +02:00
2735d46552 feat: Add finish date update tracking for projects 2025-09-11 15:50:48 +02:00
0dd988730f feat: Implement internationalization for task management components
- Added translation support for task-related strings in ProjectTaskForm and ProjectTasksSection components.
- Integrated translation for navigation items in the Navigation component.
- Created ProjectCalendarWidget component with Polish translations for project statuses and deadlines.
- Developed Tooltip component for enhanced user experience with tooltips.
- Established a field change history logging system in the database with associated queries.
- Enhanced task update logging to include translated status and priority changes.
- Introduced server-side translations for system messages to improve localization.
2025-09-11 15:49:07 +02:00
50adc50a24 feat: Update .gitignore to include /kosz and /public/uploads directories 2025-07-30 12:46:05 +02:00
639a7b7eab feat: Implement file upload and management system with database integration 2025-07-30 11:37:25 +02:00
07b4af5f24 feat: Refactor user management to replace email with username across the application 2025-07-28 22:25:23 +02:00
6fc2e6703b feat: Implement redirect to projects page on home component load 2025-07-28 22:08:28 +02:00
764f6d1100 feat: Update Docker entrypoint scripts to create admin account on container startup 2025-07-28 22:00:47 +02:00
225d16c1c9 feat: Update Docker deployment scripts and configurations for default admin account creation 2025-07-28 21:55:11 +02:00
aada481c0a feat: Automatically create default admin account during Docker build process 2025-07-28 21:48:28 +02:00
c767e65819 fix: Update port mapping to avoid conflict in production and development configurations 2025-07-28 21:44:02 +02:00
8e35821344 Refactor project tasks page and navigation components
- Updated the description in ProjectTasksPage to a placeholder.
- Commented out the display of assigned email in ProjectTasksList.
- Removed the dashboard link from the navigation items.
- Changed the main link in the navigation to point to projects instead of the dashboard.
- Commented out the LanguageSwitcher and user role display in the navigation.
- Translated "Project Location" to "Lokalizacja projektu" in ProjectMap.
- Commented out the instruction for using the layer control in ProjectMap.
- Removed the label "Coordinates:" from the coordinates display in ProjectMap.
- Updated project and contract subtitles in translations to placeholders.
- Added a new empty validation schema file.
2025-07-28 20:56:04 +02:00
Chop
747a68832e feat(i18n): Add Polish translations for task management components and update search placeholder 2025-07-27 23:54:56 +02:00
Chop
e828aa660b feat(i18n): Implement multilingual support with Polish and English translations
- Added translation context and provider for managing language state.
- Integrated translation functionality into existing components (TaskStatusDropdown, Navigation).
- Created LanguageSwitcher component for language selection.
- Updated task statuses and navigation labels to use translations.
- Added Polish translations for various UI elements, including navigation, tasks, projects, and contracts.
- Refactored utility functions to return localized strings for deadlines and date formatting.
2025-07-27 22:01:15 +02:00
Chop
9b6307eabe feat: Add TaskCommentsModal for viewing and managing task comments 2025-07-17 22:49:12 +02:00
Chop
490994d323 feat: Add optional max wait display to task rows and tables 2025-07-17 22:39:54 +02:00
Chop
b5120657a9 refactor: Update layout of task template actions for improved alignment and usability 2025-07-10 23:45:50 +02:00
Chop
5228ed3fc0 feat: Enhance ProjectTasksSection with improved button styles and layout adjustments 2025-07-10 23:41:03 +02:00
Chop
51d37fc65a feat: Implement task editing functionality with validation and user assignment 2025-07-10 23:35:17 +02:00
Chop
92f458e59b fix: Update note rendering logic to simplify system note display 2025-07-10 23:02:45 +02:00
Chop
33ea8de17e feat: Add coordinate formatting utility and update project views 2025-07-10 22:56:03 +02:00
Chop
9c076f537e docs: Add merge completion summary 2025-07-10 22:37:31 +02:00
Chop
1594889e3b Merge branch 'auth2' into main 2025-07-10 22:35:28 +02:00
Chop
50fce2f6ba Add merge preparation summary documentation 2025-07-10 22:34:30 +02:00
Chop
5cd56593eb Fix projects map page - restore original design
- Restore original projects map interface with layer controls
- Add minimal Suspense wrapper for useSearchParams (SSR fix)
- Preserve all original functionality: tools, filters, markers
- Fix build issue without changing core interface design
2025-07-10 22:32:13 +02:00
Chop
faeb1ca80c Prepare branch for merge to main
- Fix build issues with SSR and useSearchParams
- Update README.md with comprehensive project documentation
- Move debug pages to debug-disabled folder (temporary)
- Fix authentication pages with Suspense boundaries
- Add dynamic imports for map components
- Ensure all pages build successfully

This commit prepares the auth2 branch for merging into main by:
1. Resolving all build errors
2. Adding proper SSR handling for client-side components
3. Updating documentation to reflect current state
4. Moving debug/test pages out of production build
2025-07-10 22:18:32 +02:00
Chop
38b0682d83 feat(audit-logging): Replace req.session with req.auth for audit logging in notes and projects 2025-07-10 00:08:59 +02:00
Chop
b1a78bf7a8 feat(audit-logging): Implement Edge-compatible audit logging utility and safe logging module
- Added `auditLogEdge.js` for Edge Runtime compatible audit logging, including console logging and API fallback.
- Introduced `auditLogSafe.js` for safe audit logging without direct database imports, ensuring compatibility across runtimes.
- Enhanced `auth.js` to integrate safe audit logging for login actions, including success and failure cases.
- Created middleware `auditLog.js` to facilitate audit logging for API routes with predefined configurations.
- Updated `middleware.js` to allow API route access without authentication checks.
- Added tests for audit logging functionality and Edge compatibility in `test-audit-logging.mjs` and `test-edge-compatibility.mjs`.
- Implemented safe audit logging tests in `test-safe-audit-logging.mjs` to verify functionality across environments.
2025-07-09 23:08:16 +02:00
Chop
90875db28b feat: Add user tracking to project tasks and notes
- Implemented user tracking columns in project_tasks and notes tables.
- Added created_by and assigned_to fields to project_tasks.
- Introduced created_by field and is_system flag in notes.
- Updated API endpoints to handle user tracking during task and note creation.
- Enhanced database initialization to include new columns and indexes.
- Created utility functions to fetch users for task assignment.
- Updated front-end components to display user information for tasks and notes.
- Added tests for project-tasks API endpoints to verify functionality.
2025-06-26 00:17:51 +02:00
Chop
294d8343d3 feat: Implement user tracking in projects
- Added user tracking features to the projects module, including:
  - Database schema updates to track project creator and assignee.
  - API enhancements for user management and project filtering by user.
  - UI components for user assignment in project forms and listings.
  - New query functions for retrieving users and filtering projects.
  - Security integration with role-based access and authentication requirements.

chore: Create utility scripts for database checks and project testing

- Added scripts to check the structure of the projects table.
- Created tests for project creation and user tracking functionality.
- Implemented API tests to verify project retrieval and user assignment.

fix: Update project creation and update functions to include user tracking

- Modified createProject and updateProject functions to handle user IDs for creator and assignee.
- Ensured that project updates reflect the correct user assignments and timestamps.
2025-06-25 23:08:15 +02:00
Chop
81afa09f3a feat: Update Authorization Implementation Guide with current state, completed phases, and security best practices 2025-06-25 22:36:14 +02:00
988a33788d fix: Align action buttons to the right in the layer control panel 2025-06-25 16:16:17 +02:00
44bc7b3e7c fix: Await asynchronous calls in ProjectViewPage and remove redundant Leaflet imports in WMSLayer 2025-06-25 13:43:27 +02:00
988a4eb71b feat: Implement user management functionality with CRUD operations; add user edit page, API routes for user actions, and enhance authentication middleware 2025-06-25 13:37:10 +02:00
1524e1e9bb feat: add authentication test page and API testing scripts; implement debug auth endpoint and enhance task route with read permissions 2025-06-25 12:54:37 +02:00
c1bb4c44fd feat: upgrade next-auth to v5.0.0-beta.29 and refactor authentication middleware
- Updated next-auth dependency in package.json to version 5.0.0-beta.29.
- Refactored create-admin script to use a valid email format.
- Implemented authentication middleware for various API routes to enforce access control.
- Refactored API route handlers to improve readability and maintainability.
- Enhanced error handling in authentication error page.
- Added detailed tests for authentication flow, including protected routes and NextAuth endpoints.
2025-06-25 12:32:13 +02:00
7e67fe96ef style: Increase column widths for improved readability in ProjectListPage table 2025-06-25 11:35:36 +02:00
Chop
035a0386d7 Your commit message here 2025-06-25 00:22:12 +02:00
Chop
4b2a544870 feat: Add comprehensive Authorization Implementation Guide for Next.js application, detailing authentication, role-based access control, and security best practices 2025-06-24 23:54:30 +02:00
Chop
7e1edfebce feat: Sort projects by project_id in descending order on ContractDetailsPage 2025-06-24 23:49:41 +02:00
Chop
74550be679 Refactor LeafletMap to implement custom WMSLayer component and remove WMSTileLayer usage; update mapLayers configuration for improved readability and maintainability; delete obsolete page_backup.js file. 2025-06-24 22:46:53 +02:00
af133c1d5f feat: Add tool panel with multiple map interaction tools in ProjectsMapPage 2025-06-24 13:41:47 +02:00