step 8: harden docs and prepare rebuilt beta
This commit is contained in:
35
AGENTS.md
35
AGENTS.md
@@ -2,7 +2,7 @@
|
||||
|
||||
## Current status
|
||||
|
||||
Step 6 complete.
|
||||
Step 8 complete.
|
||||
|
||||
## Completed steps
|
||||
|
||||
@@ -12,10 +12,12 @@ Step 3 - Widget shell, sizing system, and GUI-thread frame pump.
|
||||
Step 4 - Tile manager, persistent cache, and asynchronous loading.
|
||||
Step 5 - Interaction: pan, zoom, and view commands.
|
||||
Step 6 - Overlay rendering and runtime update stress tests.
|
||||
Step 7 - Layers, provider switching, and clearing APIs.
|
||||
Step 8 - Documentation, hardening, and internal release.
|
||||
|
||||
## Current step
|
||||
|
||||
Step 7 - Layers, provider switching, and clearing APIs.
|
||||
Internal rebuilt beta prepared.
|
||||
|
||||
## Design decisions
|
||||
|
||||
@@ -94,7 +96,34 @@ None yet.
|
||||
- Ran `uv run ruff check .`.
|
||||
- Ran `uv run ruff format --check .`.
|
||||
- Ran a Dear PyGui context smoke check for `map_widget` with marker, polyline, and trajectory overlays.
|
||||
- Added `z_index` support for `add_layer`, layer visibility/clearing tests, and cache-safe map-wide memory clearing.
|
||||
- Implemented provider switching that validates providers, clamps zoom to the new provider range, preserves overlays/center, increments generation, and queues GUI-thread tile invalidation.
|
||||
- Implemented provider-scoped disk cache clearing and cache-size scanning.
|
||||
- Exported `CacheStats` publicly.
|
||||
- Added `examples/custom_provider.py` and cache control/stat buttons to `examples/cache_stress.py`.
|
||||
- Updated `README.md` with Step 7 behavior and examples.
|
||||
- Added Step 7 tests for provider switch tile invalidation, provider-scoped disk clearing, queued disk clear commands, layer z-order updates, and public exports.
|
||||
- Ran `uv run ruff format .`.
|
||||
- Ran `uv run pytest`.
|
||||
- Ran `uv run ruff check .`.
|
||||
- Ran `uv run ruff format --check .`.
|
||||
- Ran `uv run pyright`.
|
||||
- Ran `uv run python -c "import dpg_map as dpgm; print(dpgm.list_providers())"`.
|
||||
- Added docstrings for public API functions.
|
||||
- Rewrote `README.md` with uv install, local editable dependency, basic usage, sizing, live update, custom provider, cache, OpenStreetMap, and thread-safety documentation.
|
||||
- Added Step 8 hardening tests for unknown maps, overlays, providers, invalid coordinates, mismatched coordinate lengths, empty trajectory support, deleted overlays, provider switching while tiles are loading, overlay updates during dragging, and public docstrings.
|
||||
- Bumped package version to `0.3.0b1` and updated the fallback OpenStreetMap User-Agent version.
|
||||
- Ran `uv run pytest`.
|
||||
- Ran `uv run ruff format .`.
|
||||
- Ran `uv run ruff check .`.
|
||||
- Ran `uv run ruff format --check .`.
|
||||
- Ran `uv run pyright`.
|
||||
- Tested editable install from `/tmp/dpg-map-editable-test` with `uv add --editable /home/hector/projects/dpg-map`.
|
||||
- Ran editable install import check: `uv run python -c "import dpg_map as dpgm; print(dpgm.list_providers())"`.
|
||||
- Ran `uv run python -m py_compile` across all example files.
|
||||
- Started `examples/basic_map.py` under a 5-second timeout; it launched without terminal errors and was stopped by timeout because the GUI loop blocks.
|
||||
- Ran `uv sync`.
|
||||
|
||||
## Next action
|
||||
|
||||
Implement Step 7.
|
||||
Commit and tag `v0.3.0b1`.
|
||||
|
||||
Reference in New Issue
Block a user