Files
panel/scripts/create-additional-test-data.js
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

26 lines
653 B
JavaScript

import db from "../src/lib/db.js";
// Create another test project with coordinates in a different location
const project = db
.prepare(
`
INSERT INTO projects (
contract_id, project_name, project_number, address, city, coordinates,
project_type, project_status
) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
`
)
.run(
2, // Using the test contract we just created
"Test Project in Warsaw",
"2/TEST/2025",
"Warsaw Center, Poland",
"Warsaw",
"52.2297,21.0122", // Warsaw coordinates
"construction",
"in_progress_construction"
);
console.log("Additional test project created!");
console.log("Project ID:", project.lastInsertRowid);