Skip to content

v1.4.3

Choose a tag to compare

@xunlulearn xunlulearn released this 18 Feb 07:21
· 43 commits to main since this release

Swim Pool Web Dev Session Log

  • Date: 2026-02-18 15:18:05
  • Scope: Current conversation
  • Project: Swim_Pool_Web_Dev

Overview

  • This session completed two homepage UI fixes: swapping legend order for rainfall/lightning count and fixing rainfall tooltip overlap with the right-side legend.

Changes

Change 1:

  • Goal: Swap the display order of Rainfall (mm/h) and Lightning Count inside the homepage legend.
  • Implementation: Reordered the two legend blocks in the Gradient Legend section of index.html while keeping pointer element IDs unchanged (legend-rainfall-pointer, legend-count-pointer) so existing weather_v2.js bindings remain intact.
  • Files: app/templates/index.html
  • Tech stack / parameters: Flask Jinja2 template; front-end DOM order update only, no backend/config changes.

Change 2:

  • Goal: Prevent the Rainfall (S44) help tooltip from being covered by the right legend panel in desktop layout.
  • Implementation: Updated tooltip positioning classes to keep centered behavior on mobile (left-1/2 -translate-x-1/2) and switch to right-aligned left-expansion on sm+ screens (sm:left-auto sm:right-0 sm:translate-x-0).
  • Files: app/templates/index.html
  • Tech stack / parameters: Tailwind responsive utility classes; no API/logic changes.

Issues and resolutions

  • Issue: The rainfall tooltip expanded into the right column and got visually blocked by the legend area.
  • Resolution: Applied responsive alignment so desktop tooltip expands leftward away from the legend while preserving mobile readability.

Validation

  • Verified legend order text positions in template: Lightning Count now appears before Rainfall (mm/h) in the legend.
  • Verified tooltip class update exists: sm:left-auto sm:right-0 sm:translate-x-0.
  • No automated tests were run for this change set; validation was done through targeted static template checks.

Full Change Log

  • ea823ea fix(home): prevent tooltip overlap and reorder legend (xunlulearn, 2026-02-18)