Commit graph

483 commits

Author SHA1 Message Date
9bdd68bea2 feat: add regional and remarkable nature asset symbology icons and matching logic 2026-10-09 14:04:08 +02:00
f271d65be2 fix(assets): dynamic nature management_type filter based on visible assets and scope nature endpoints by user accessible municipalities 2026-10-09 13:50:49 +02:00
587f4abf8a feat(nature): distinction arbres régionaux, filtre gestionnaire, tableau compact et essences botaniques 2026-10-09 13:32:46 +02:00
Karl Determe
4823d55f08 Merge branch 'main' of https://git.valogeo.be/Valogeo/loko 2026-10-09 13:17:59 +02:00
Karl Determe
cebe496617 feat: add seed command and fixture for Schuman bollards and CCTV cameras 2026-10-09 13:17:49 +02:00
8afa68e066 feat: add management type and authority fields with visualization and filtering for nature trees 2026-10-09 13:09:58 +02:00
Karl Determe
80c54a083d feat: add unified index, map layers, and ITS asset management views and symbology 2026-10-08 16:45:33 +02:00
Karl Determe
7d5718dec2 feat: add admin, models, views, and templates for ITS assets 2026-10-08 14:29:19 +02:00
bb8d6f98c0 style(home): unify quick action buttons size and center content 2026-10-07 16:08:05 +02:00
dd12e2fde1 feat(home): replace history shortcut with asset search in viewer action bar 2026-10-07 15:58:51 +02:00
875efc67f4 feat(home): add user_history widget for viewers and adjust quick action shortcuts 2026-10-07 15:54:57 +02:00
51e6680763 fix(interventions,contracts): enforce can_view_intervention on detail views and allow contract posts access for global viewers 2026-10-07 14:15:53 +02:00
ea02b12ea5 feat(stock): add product search by code and label in purchase order PDF import 2026-10-07 11:58:17 +02:00
b307791b90 feat(contracts): add global permissions to view contract posts and prices on UserConfig
- Add can_view_all_posts and can_view_all_prices boolean fields to UserConfig
- Add migration 0020 with automatic data migration for Legal Office users
- Update permissions helpers, UserConfigAdmin, copy_user_config and intervention detail view
- Add unit tests for global posts and prices permissions
2026-10-07 11:57:57 +02:00
9a85696d90 fix(stock): escapejs translated option text in batch location selects 2026-10-07 11:40:57 +02:00
499ffe824e refactor: redesign calendar notes and documents view with chronological sequencing blocks 2026-10-07 10:45:37 +02:00
2ef730508f feat(calendar): intégrer les notes et documents dans la modale d'intervention 2026-10-07 10:26:08 +02:00
Karl Determe
775151c72d feat: add notification services and observation views implementation 2026-10-06 16:22:23 +02:00
Karl Determe
e27a979a53 feat: add views for stock management and observations applications 2026-10-06 15:56:21 +02:00
Karl Determe
5825eac998 feat: add index, detail, and form HTML templates for management zones 2026-10-06 15:46:37 +02:00
Karl Determe
e87fe1531d feat: add management zone form template and corresponding unit tests 2026-10-06 15:23:50 +02:00
Karl Determe
0c1ae3163d feat: add observation detail template with interactive map, photos, and discussion features 2026-10-06 11:31:19 +02:00
Karl Determe
496b6d9c8b feat: implement observations module with views, models, UI templates, translations, and migrations 2026-10-06 10:04:54 +02:00
Karl Determe
58c1ccd531 feat: add observation management features with map integration, views, and migrations 2026-10-06 10:04:40 +02:00
384a2b29c3 fix(common): support list type_filter and fix translation function shadowing in assets preferences 2026-10-05 18:22:47 +02:00
288921b4aa fix(assets): declare mergedManagementZonesGeojson to prevent ReferenceError in unified view 2026-10-05 16:38:43 +02:00
3e35c98a46 git add loko/assets/static/assets/unified_index.js \
loko/assets/static/assets/unified_map_layers.js \
        loko/assets/templates/assets/unified_index.html \
        loko/assets/tests_management_zones.py \
        loko/assets/views/core.py \
        loko/assets/views/management_zones.py

git commit -m "feat(assets): integrate management zones into unified assets view

- Add management zones layers and table row support in unified index
- Replace element type radio filters with 3 checkboxes (assets, locations, management zones)
- Add 3rd card in unified add modal for management zone creation
- Include centroid coordinates, area, and unified properties in management zones GeoJSON
- Add comprehensive integration test suite"
2026-10-05 16:00:12 +02:00
b5b0338e09 feat(assets): add management zones CRUD interfaces and permissions
- Add can_edit_management_zones permission to UserThematics model and admin
- Implement ManagementZoneForm with interactive WGS84 polygon capture and SRID 3812 reprojection
- Add views and routes for listing, creating, editing, detailing, and deleting management zones
- Support document attachments (ManagementZoneDocument) and explicit asset linkages
- Add MapLibre polygon drawing tool in zone form and preview map in detail view
- Integrate management zones shortcuts in nature assets map overlay and index
- Add comprehensive unit tests for permissions, forms, and CRUD operations
2026-10-05 15:35:33 +02:00
d36649f3bf feat(assets): add generic ManagementZone model, admin, geojson API and map overlay 2026-10-05 15:12:16 +02:00
8807531eb3 feat(contracts): add contractual lot perimeters overlay on nature assets map 2026-10-05 14:35:31 +02:00
f81ca93590 feat: add geographic polygon and color fields to Contract model and admin 2026-10-05 14:19:07 +02:00
69f5e65495 feat(assets): add basemap and orthophoto switcher to nature location detail map
- Include LayerSwitcherControl on the nature location detail map.
- Support standard vector, aerial orthophotos, and regional basemaps from window.MAP_BACKGROUNDS.
- Ensure proper z-index layer ordering so nature polygons, trees, and equipments remain above raster basemaps.
- Update unit tests to verify layer switcher integration.
2026-10-05 14:04:02 +02:00
11e1674f73 feat: implement nature location detail view with asset summaries, KPIs, and unit tests 2026-10-05 13:44:18 +02:00
f324eb00bd feat(assets): color-code asset types by technical domain for enhanced visual scanning 2026-10-05 11:48:44 +02:00
10e9f1de50 feat(assets): display assets directly in building tree and add collapse/expand all controls 2026-10-05 11:25:55 +02:00
ab1cfb6ab2 fix(assets): remove duplicate closing div breaking page layout in publicbuilding_detail 2026-10-05 10:59:21 +02:00
6802d1e15f fix(assets): fix js coord syntax error and add interactive multi-floor plans viewer 2026-10-05 10:38:35 +02:00
512f6786e3 refactor: move team daily view helper functions and state variables to file scope 2026-10-05 09:56:25 +02:00
63c4a8e539 git add loko/assets/models/buildings.py \
loko/assets/forms.py \
        loko/assets/admin.py \
        loko/assets/templates/assets/buildings/ \
        loko/assets/tests.py \
        loko/assets/migrations/0028_buildingasset_contractor_name_and_more.py

git commit -m "feat(assets): extend building locations and technical equipment models

- Add comprehensive building locations (stairwells, technical rooms, boiler rooms, offices, etc.)
- Add building physical & technical fields (room numbers, floor types, heated status, dimensions)
- Add complete building envelope & technical equipment types (roofs, facades, windows, doors, boilers, heat pumps, etc.)
- Enrich admin, forms, trees, and detail templates with icons, macro-lots, and maintenance tracking
- Add migration 0028 and unit test coverage"
2026-10-05 09:49:08 +02:00
93f3a49983 fix(calendar): fix canEditThisTeam and isPastDay ReferenceError in renderTeamsDailyGrid 2026-10-05 09:48:53 +02:00
6ee0aa470b feat(calendar): enable drag and drop for team members in daily view
- Render team members as individual draggable chips in daily teams calendar view
- Decouple click (modal inspection) from drag and drop (team/date reassignment)
- Add multi-team conflict confirmation modal on drop
- Maintain permission checks and past date protection
2026-10-05 09:42:10 +02:00
03fa3adaf6 feat: suggest product default locations when parsing purchase orders from PDF 2026-10-05 09:24:22 +02:00
1d212194ad feat: add external destination badges and indigo styling to stock and production order templates 2026-10-05 09:09:43 +02:00
9764b525bb refactor: remove local OCR references and escape translated messages in purchase order scripts 2026-10-01 16:07:32 +02:00
4bb53fb71c feat(mobile): add quote photo/pdf OCR import interface in mobile stock
- Add mobile-optimized purchase order from quote view and template
- Support taking multiple page photos directly from smartphone camera
- Display responsive article cards with catalog product matching
- Provide sticky summary with live totals and confirmation CTA
- Link from mobile purchases list and add unit tests
2026-10-01 15:43:52 +02:00
53d579009a feat(stock): support multi-page photo uploads for quote OCR processing
- Allow uploading multiple quote photos at once via multi-file input
- Process photos sequentially with deskewing and OCR line clustering
- Aggregate articles and metadata across all pages seamlessly
- Attach all uploaded photos to the generated purchase order
- Add unit tests for multi-image quotes and multiple document attachments
2026-10-01 15:28:08 +02:00
4010dfb138 fix(stock): prevent merged quote items via auto-deskew, fixed baseline clustering and item splitting
- Add auto-deskewing for tilted smartphone photos and document scans
- Anchor line clustering to initial baseline to avoid vertical centroid drift
- Normalize OCR numerical artifacts (semicolon decimals, glued VAT percentages)
- Purge catalog URLs from product names to improve catalog matching
- Implement fused item splitter to rescue embedded articles from descriptions
- Add regression tests for item splitting and OCR normalization
2026-10-01 15:12:56 +02:00
32cb154815 feat(stock): support photo/scan quotes via local OCR and propose supplier creation
- Enable image uploads (.png, .jpg, .jpeg, .webp, .tiff) alongside PDFs
- Process photos and scans with local RapidOCR and adaptive bounding box clustering
- Propose new supplier creation with pre-filled fields when quote supplier is not found
- Retain manual catalog product association safeguard
- Add automated unit and integration tests
2026-10-01 14:46:09 +02:00
358fb23d7e refactor(stock): restrict PDF purchase order to existing products and loosen matching similarity
- Replace auto-creation of new products with strict association to existing stock items
- Add dimension normalization and token-based similarity matching (rapidfuzz/difflib)
- Provide ranked candidate suggestions in product dropdown during quote review
- Enforce validation preventing purchase order creation with unassociated products
2026-10-01 14:23:01 +02:00
391966da07 refactor: make PDF parser dependencies optional and lazy-load parser 2026-10-01 13:57:12 +02:00