Commit Graph

33 Commits

Author SHA1 Message Date
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
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
44bc7b3e7c fix: Await asynchronous calls in ProjectViewPage and remove redundant Leaflet imports in WMSLayer 2025-06-25 13:43:27 +02:00
Chop
035a0386d7 Your commit message here 2025-06-25 00:22:12 +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
56088b4e78 feat: Update maxZoom values to 20 for various map layers and enhance Polish Cadastral Data layers with additional server support 2025-06-24 13:30:36 +02:00
4c11801ab1 feat: Implement layer control and custom zoom functionality in ProjectsMapPage and LeafletMap components 2025-06-24 12:01:48 +02:00
Chop
96da5212d4 fix: Remove unnecessary whitespace in table headers across multiple components 2025-06-21 21:56:20 +02:00
f83cc8e564 feat: Add Improved Polish Orthophoto Map component with WMTS support
- Introduced ImprovedPolishOrthophotoMap component for displaying Polish orthophoto layers using WMTS.
- Implemented custom WMTSLayer for handling tile requests.
- Added Google Satellite and OpenStreetMap layers for comparison.
- Included debug information for network requests to Geoportal.
- Enhanced LeafletMap to support WMS overlays and improved layer control.
- Created PolishGeoLayers module for easy access to various Polish geospatial layers.
- Added TransparencyDemoMap for adjustable layer opacity controls.
- Updated mapLayers configuration to include new Polish orthophoto layers and WMS overlays.
- Refactored wmtsCapabilities to use updated URLs and parameters for better compatibility.
2025-06-21 01:21:21 +02:00
6df4302396 feat: enhance TaskStatusDropdownSimple with portal-based dropdown and position calculation 2025-06-21 00:08:33 +02:00
e5d681547d feat: enhance map functionality by adding URL state management and event handling for view changes 2025-06-20 23:56:11 +02:00
68c6165b32 feat: implement ProjectTasksList component and update ProjectTasksPage to use it
feat: add date_completed column to project_tasks table in database initialization
feat: update project task status to set date_completed when marking as completed
2025-06-20 23:17:18 +02:00
Chop
27c5feb6dc feat: add TaskStatusChart component and integrate it into the home page
- Added recharts library to package.json for charting capabilities.
- Created TaskStatusChart component to visualize task statuses with a pie chart.
- Replaced the previous task status display with the new TaskStatusChart in the home page.
2025-06-19 23:51:45 +02:00
Chop
639179ed21 feat: Add date formatting utility functions and integrate them across components 2025-06-19 23:29:06 +02:00
Chop
306c96328e feat: Add simple dropdown components for project and task statuses
- Created ProjectStatusDropdownSimple component for managing project statuses with a simple dropdown interface.
- Updated ProjectTasksDashboard and ProjectTasksSection to use the new ProjectStatusDropdownSimple component.
- Refactored TaskStatusDropdown to simplify its structure and added debugging features.
- Introduced TaskStatusDropdownDebug for testing purposes with enhanced logging and debugging UI.
- Added TaskStatusDropdownSimple for task statuses, mirroring the functionality of the project status dropdown.
- Created comprehensive HTML test files for dropdown functionality validation.
- Added a batch script to clear Next.js cache and start the development server.
2025-06-19 23:16:13 +02:00
Chop
1dc3fd88f9 feat: Implement TaskStatusDropdown and integrate it across project and task components 2025-06-19 22:59:48 +02:00
Chop
f0e3bf6eaa feat: Add schema check and logging tests for project tasks and notes 2025-06-19 22:13:08 +02:00
Chop
3762f2e6f8 feat: Add is_system column to notes and update task note handling for system notes 2025-06-19 22:12:07 +02:00
Chop
d40af1ff31 feat: Enhance project task management with expandable notes and descriptions, and add date_started column for task tracking 2025-06-19 22:01:39 +02:00
Chop
78b2474a9f feat: Implement task addition modal with escape key handling and z-index adjustments 2025-06-19 21:50:13 +02:00
Chop
aaa08a3504 feat: Add comprehensive roadmap for app development and prioritize features
- Created ROADMAP.md outlining current features, critical missing features, implementation phases, and technology recommendations.
- Added immediate next steps for development focus.

fix: Enhance test data creation scripts for diverse project scenarios

- Implemented create-diverse-test-data.js to generate varied test projects with different statuses and locations.
- Updated create-additional-test-data.js for better project creation consistency.

refactor: Improve project view page with additional navigation and map features

- Added link to view all projects on the map from the project view page.
- Enhanced project location display with status indicators.

feat: Implement project map page with status filtering

- Added status filters for project markers on the map.
- Integrated color-coded markers based on project status.

fix: Update LeafletMap and ProjectMap components for better marker handling

- Created colored marker icons for different project statuses.
- Enhanced ProjectMap to display project status and coordinates more effectively.

test: Add mobile view test HTML for responsive map testing

- Created test-mobile.html to test the map's responsive behavior on mobile devices.
2025-06-19 20:57:50 +02:00
Chop
0acb203ef8 Refactor project and contract forms for improved UI and functionality
- Updated NewProjectPage to use PageContainer and PageHeader for better layout.
- Enhanced ProjectListPage to display project data in a responsive table format.
- Refactored ContractForm to use Card components and improved loading state handling.
- Refactored ProjectForm to use Card components, added loading state, and improved form structure and styling.
2025-06-19 18:59:03 +02:00
603634e8a4 feat: Add Leaflet map integration and project coordinates handling
- Updated package.json to include dependencies for Leaflet and Playwright testing.
- Added new images for Leaflet markers and layers.
- Created scripts for generating test data with project coordinates.
- Enhanced ProjectViewPage to display project coordinates and integrated ProjectMap component.
- Modified ProjectForm to include coordinates input field.
- Implemented CustomWMTSMap and EnhancedLeafletMap components for improved map functionality.
- Created ProjectMap component to dynamically render project location on the map.
- Added mapLayers configuration for various base layers including Polish Geoportal.
- Implemented WMTS capabilities handling for dynamic layer loading.
- Updated database initialization to include coordinates column in projects table.
- Modified project creation and update functions to handle coordinates.
- Added utility functions for formatting project status and deadlines.
2025-06-18 12:47:04 +02:00
c983ba9882 feat: Update PageHeader component to include action prop for enhanced flexibility 2025-06-05 13:14:16 +02:00
Chop
931ec3012d feat: Integrate ProjectStatusDropdown component into ProjectViewPage for dynamic project status updates 2025-06-04 22:58:39 +02:00
Chop
49d49b42f1 feat: Add project type and status fields to project forms and views, including database migrations 2025-06-04 22:53:33 +02:00
Chop
330744daf9 feat: Implement task notes functionality with CRUD operations and integrate into project tasks section 2025-06-03 20:46:37 +02:00
Chop
a9afebdda5 feat: Add ProjectTasksPage and ProjectTasksDashboard components with task categorization and filtering 2025-06-03 00:14:17 +02:00
Chop
a1261b2169 Refactor Project Tasks and Task Templates pages with new UI components
- Introduced PageContainer and PageHeader components for consistent layout.
- Added SearchBar and FilterBar components for improved task filtering and searching.
- Implemented LoadingState component for better loading indication.
- Updated ProjectTasksPage to utilize new components and enhance user experience.
- Refactored TaskTemplatesPage to use PageContainer and PageHeader for better structure.
- Created FilterBar component to manage filter options dynamically.
- Added SearchBar component for searching tasks with clear functionality.
- Introduced States component for loading and error states.
2025-06-02 23:41:49 +02:00
Chop
35569846bc feat: Implement project search functionality and task management features
- Added search functionality to the Project List page, allowing users to filter projects by name, WP, plot, or investment number.
- Created a new Project Tasks page to manage tasks across all projects, including filtering by status and priority.
- Implemented task status updates and deletion functionality.
- Added a new Task Template Edit page for modifying existing task templates.
- Enhanced Task Template Form to include a description field and loading state during submission.
- Updated UI components for better user experience, including badges for task status and priority.
- Introduced new database queries for managing contracts and projects, including fetching tasks related to projects.
- Added migrations to the database for new columns and improved data handling.
2025-06-02 23:21:04 +02:00
Chop
d0586f2876 feat: Add NoteForm, ProjectForm, and ProjectTaskForm components
- Implemented NoteForm for adding notes to projects.
- Created ProjectForm for managing project details with contract selection.
- Developed ProjectTaskForm for adding tasks to projects, supporting both templates and custom tasks.

feat: Add ProjectTasksSection component

- Introduced ProjectTasksSection to display and manage tasks for a specific project.
- Includes functionality for adding, updating, and deleting tasks.

feat: Create TaskTemplateForm for managing task templates

- Added TaskTemplateForm for creating new task templates with required wait days.

feat: Implement UI components

- Created reusable UI components: Badge, Button, Card, Input, Loading, Navigation.
- Enhanced user experience with consistent styling and functionality.

feat: Set up database and queries

- Initialized SQLite database with tables for contracts, projects, tasks, project tasks, and notes.
- Implemented queries for managing contracts, projects, tasks, and notes.

chore: Add error handling and loading states

- Improved error handling in forms and data fetching.
- Added loading states for better user feedback during data operations.
2025-06-02 22:07:05 +02:00