Repository navigation
v78–v79: deletable reference points + undo/redo, and a phone bottom sheet - #2
Merged
Merged
Conversation
Clicar num marcador de referência abre um popup com o rótulo e o botão "Remover esta referência" (sobreviventes renumeradas, matriz de acessibilidade invalidada; o clique não atravessa para o mapa). Barra ↶ ↷ estilo zoom estacionada logo abaixo do botão 🔍 (Ctrl+Z / Ctrl+Shift+Z / Ctrl+Y fora de campos de texto) com histórico de snapshots do conjunto: clique no mapa, remoção, Distribuir aleatórias/censo (lote = um passo), Limpar, GeoJSON e importação de bundle. A snapshot carrega qmcIndex, refPopM e o campo "N referências"; a restauração reconstrói os marcadores sem passar pelo corte FIFO. Zera ao carregar outro DEM. Changelog trio (CHANGELOG.md, help modal, sw.js) + VERSION v77 → v78. Co-Authored-By: Danilo Lessa Bernardineli <danilo.lessa@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsTBrbygn5kgoLKbRApM9i
…oque Em telas ≤ 860 px a gaveta lateral deslizante é substituída por uma folha ancorada embaixo com três posições (mínima / meia / cheia): arrasto pela cabeça com encaixe na mais próxima, toque na alça alterna. O botão Calcular (+ estimativa) é movido para a cabeça da folha no celular e volta ao #run-slot no desktop; um toque no mapa recolhe a folha para a mínima (__simuDrawer.close). Hambúrguer e pano de fundo escondidos no celular; pilha da direita localizar/camadas; pílula de status no topo; na posição cheia os controles flutuantes do mapa se escondem. Alvos de toque ≥ 40 px, campos com 16 px (sem zoom de foco no iOS), overscroll-behavior none. Hash CSP do script inline da gaveta recalculado. Changelog trio (CHANGELOG.md, help modal, sw.js) + VERSION v78 → v79. Co-Authored-By: Danilo Lessa Bernardineli <danilo.lessa@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsTBrbygn5kgoLKbRApM9i
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two releases, one per commit (changelog trio +
sw.jsVERSION move together in each):v78 — reference points are editable
ref N · r, c) and a "Remover esta referência" button. Deleting splices the ref out, renumbers the survivors, nullsrefPopMand invalidates the cached accessibility matrix (same as any ref-set change). Marker clicks stop propagating so inspecting a ref never drops a new one underneath.Ctrl+Z/Ctrl+Shift+Z/Ctrl+Youtside text inputs. Snapshot history of the ref set: map click, popup delete, Place random / census (one step per batch), Clear refs, GeoJSON load, bundle import. No-op operations (clearing an empty set) are dropped. Snapshots carryqmcIndex,refPopMand the "N references" cap; restore rebuilds markers directly so a cap lowered after the snapshot cannot FIFO-trim what undo brings back. History resets on DEM load (snapshots index the old grid). Compute-time network re-snapping is deliberately not recorded.v79 — phone layout: bottom sheet instead of a sidebar
#run-sloton desktop (same elements reparented, so app.js'srunBtnreference is untouched). A map tap collapses to peek via the existing__simuDrawer.close()hook.overscroll-behavior: none.Desktop layout is unchanged.
Test plan
node test-worker-pool.mjs,node test-dem-smoothing.mjs,node test-water-raster.mjspass (no engine changes; run as regression).__simuDrawer.close()→ peek; Compute visible in every state; status pill at top; resizing desktop ↔ phone moves Compute into the sheet head and back. Desktop 1400×900 renders as before.🤖 Generated with Claude Code
https://claude.ai/code/session_01LsTBrbygn5kgoLKbRApM9i