prop/lib/microwaveprop_web/controllers
Graham McIntire 7c37bf67fe
refactor(web): drop the unreachable viewport_too_large guard
Raising the area cap to 4600 put it above the largest area clamp/1 can
emit (45° lat × 100° lon = 4500 sq deg), so :viewport_too_large became
unreachable and the 413 handlers in both cell controllers became dead
code.

Remove the cap, the error branch, the max_viewport_area_sq_deg/0
accessor and both payload_too_large/1 handlers. The clamp is what
bounds request cost: post-clamp nothing can ask for more than the full
grid (~92k cells, ~1.4 MB), which is materialized once per valid_time
and served from cache, so a global viewport costs no more than a fully
zoomed-out map.

Replaces the cap test with one asserting the clamp never lets absurd
input escape the supported extent — the property the guard was
standing in for.
2026-08-05 17:51:55 -05:00
..
api/v1 feat(monitors): schema migration + remove user self-service creation 2026-07-21 18:28:51 -05:00
page_html Improve login UX and clean up unused home page template 2026-08-02 13:00:07 -05:00
user_registration_html feat(design): apply NTMS design system tokens 2026-04-17 17:34:15 -05:00
user_reset_password_html feat(auth): self-service password reset 2026-04-18 08:42:35 -05:00
user_session_html Improve login UX and clean up unused home page template 2026-08-02 13:00:07 -05:00
user_settings_html feat(monitors): schema migration + remove user self-service creation 2026-07-21 18:28:51 -05:00
agent_skills_controller.ex feat(agent-discovery): Link/markdown/content-signal/api-catalog/skills 2026-04-17 12:09:05 -05:00
api_catalog_controller.ex feat(agent-discovery): Link/markdown/content-signal/api-catalog/skills 2026-04-17 12:09:05 -05:00
api_docs_controller.ex feat: serve API docs at /docs/api 2026-05-09 09:09:45 -05:00
api_token_controller.ex fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
beacon_monitor_controller.ex feat(monitors): schema migration + remove user self-service creation 2026-07-21 18:28:51 -05:00
contact_map_controller.ex Optimize contact map rendering performance 2026-08-02 13:21:15 -05:00
error_html.ex fix: resolve 158/183 credo --strict warnings 2026-06-12 15:47:15 -05:00
error_json.ex fix: resolve 158/183 credo --strict warnings 2026-06-12 15:47:15 -05:00
health_controller.ex fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
page_controller.ex fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
page_html.ex fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
scores_controller.ex refactor(web): drop the unreachable viewport_too_large guard 2026-08-05 17:51:55 -05:00
user_registration_controller.ex fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
user_registration_html.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
user_reset_password_controller.ex fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
user_reset_password_html.ex feat(auth): self-service password reset 2026-04-18 08:42:35 -05:00
user_session_controller.ex fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
user_session_html.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
user_settings_controller.ex feat(monitors): schema migration + remove user self-service creation 2026-07-21 18:28:51 -05:00
user_settings_html.ex Add password auth with callsign + email confirmation 2026-04-08 10:21:40 -05:00
weather_tile_controller.ex refactor(web): drop the unreachable viewport_too_large guard 2026-08-05 17:51:55 -05:00