Skip to content

Quick-action row above sections (replaces #191)#245

Draft
msupino wants to merge 9 commits into
devfrom
dev-191-quick-actions-v2
Draft

Quick-action row above sections (replaces #191)#245
msupino wants to merge 9 commits into
devfrom
dev-191-quick-actions-v2

Conversation

@msupino

@msupino msupino commented May 25, 2026

Copy link
Copy Markdown
Owner

Rewrite of PR #191 on top of main's activity-based sections (Build/View/Numbers/Export from #192).

Why a rewrite

Original #191 was crafted before #192 landed. After #192 reshaped the sections, #191's diff conflicted at every section boundary and couldn't be cleanly rebased — the premise overlapped.

What changed

5 most-used buttons moved out of their sections into a new top row #tb-quick, always visible:

| ✏️ Add Waypoint | 📝 Add Note | ⌖ Fit | 📋 Flight Plan | ⬇ Export |

Sections trimmed accordingly:

  • Build keeps: search input, ⇄ Reverse, 🗑 Clear
  • Numbers keeps: 🗺️ Airport Charts
  • Export keeps: ⬆ Import, ✈️ Open in Google Earth

No JS rewiring — same button IDs, same click handlers. Pure HTML + CSS.

Test plan

  • Collapse every section → 5 quick buttons still clickable
  • Click ✏️ Add Waypoint → mode toggles as before
  • Click ⬇ Export → file downloads as before
  • All 104 Playwright specs pass locally

Closes

Old PR #191 should be closed in favour of this one.

🔗 Preview: https://msupino.github.io/NavigationApp/branch/dev-191-quick-actions-v2/

@msupino msupino changed the base branch from main to dev May 25, 2026 19:58
@github-actions github-actions Bot temporarily deployed to pr-preview-245 May 25, 2026 20:37 Inactive
@msupino msupino force-pushed the dev-191-quick-actions-v2 branch from 99340ea to c1299a0 Compare May 26, 2026 15:57
@msupino msupino closed this May 26, 2026
@msupino msupino reopened this May 26, 2026
@msupino msupino marked this pull request as draft May 26, 2026 18:46
@msupino msupino force-pushed the dev-191-quick-actions-v2 branch from c1299a0 to f964faf Compare May 27, 2026 04:57
@github-actions github-actions Bot temporarily deployed to pr-preview-245 May 27, 2026 04:58 Inactive
5 most-used buttons moved out of their sections into a new top row
(#tb-quick) so they work without expanding anything:
✏️ Add Waypoint, 📝 Add Note, ⌖ Fit, 📋 Flight Plan, ⬇ Export

The original buttons are removed from Build / Numbers / Export sections —
no duplicate IDs. Build keeps the search input + Reverse + Clear; Numbers
keeps Airport Charts; Export keeps Import + Open in Google Earth.

CSS-only #tb-quick — column inside the toolbar's existing flex, divider
below to separate from the collapsible sections. No JS rewiring.

Replaces the original PR #191 which was structurally incompatible with
the activity-based sections shipped in #192.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@msupino msupino force-pushed the dev-191-quick-actions-v2 branch from f964faf to 879222f Compare May 27, 2026 06:01
@github-actions github-actions Bot temporarily deployed to pr-preview-245 May 27, 2026 06:02 Inactive
14 tests: existence, no-duplicate-IDs, CSS, and functional
tests for all 5 buttons (tool-add, tool-note, fit, plan, save).
msupino added 3 commits May 27, 2026 10:15
Change page.goto('/?lang=en') to page.goto('?lang=en') in all test
files so they resolve relative to the baseURL path instead of the
domain root. Fixes e2e-deployed tests hitting the production site
instead of the PR preview.
When EXPECTED_SHA env var is set (e2e-deployed workflow), each test
verifies the deployed core.js SHA matches after the test runs.
Catches cases where page.goto resolves to a different deployment
than the intended preview.
tintFill only accepts one argument (hex). The second argument was an
unused alpha override that should be removed. Notes always use the
global yellowAlpha opacity.
# Conflicts:
#	.github/workflows/deploy.yml
#	docs/index.html
#	docs/style.css
#	tests/smoke.spec.js
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview deployed

Open PR preview →

https://msupino.github.io/NavigationApp/branch/dev-191-quick-actions-v2/

Commit: e8c1a11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant