Show the previous-floor hover on the live map (#554)#557
Merged
Conversation
The mod now sends floor_history on the presence heartbeat: one entry per cleared floor with the room/enemy, turns, damage, HP+gold snapshot, and the rewards taken vs skipped. This is the live mirror of what the game shows when you hover a visited node on the map. Backend: added _clean_floor_history to the presence ingest (it was dropped by the whitelist), wired after loot, and kept it out of the transient unset list since it is run-level. Reused the path-safety id check so a bad reward id can't build a traversal URL. Kept floor_history off the /active roster projection (detail endpoint only). Frontend: LiveMap now shows a floor summary card when you hover a visited node, mirroring the game hover. Entries match nodes by visit order within the act (one node cleared per depth), so the node you are standing on shows nothing. Documented the field as v8 in the presence contract.
This was referenced Jul 3, 2026
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.
Closes #554.
When you hover a previous (visited) node on the live map, it now shows the same summary the game shows on a visited node: HP/gold, room or enemy, damage taken and turns for fights, and the rewards taken vs the cards/relics/potions skipped.
The mod half already shipped: it emits
floor_historyon the presence heartbeat (one entry per cleared floor, run-level, excludes the floor you are standing on). This wires up the website side.Backend
_clean_floor_historyto the presence ingest. The field was being dropped by the whitelist. Wired it afterloot, and kept it out of the transientunsetlist since it is run-level, not combat-only.floor_historyoff the/activeroster projection (it is detail-only, keeps the roster small).Frontend
LiveMapshows a floating floor card on hover of a visited node. Entries are matched to nodes by visit order within the act (the player clears one node per depth), so the current node shows nothing, exactly like the game's "previous floor" hover.Notes
markdown-docs/live-presence.md.