Skip to content

Help mode update - #97

Merged
alan-wu merged 26 commits into
ABI-Software:mainfrom
akhuoa:feature/help-mode-tour
Dec 2, 2026
Merged

alan-wu merged 26 commits into
ABI-Software:mainfrom
akhuoa:feature/help-mode-tour

Conversation

@akhuoa

@akhuoa akhuoa commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

This pull request update help-mode with "help mode tour" and "help mode hover". In help mode tour, the user can navigate help tooltips using the keyboard arrow keys or the mouse. In help mode hover, the user can see help mode tooltips by hovering over elements. Hidden elements will not show help mode tooltips. Help mode description accepts basic HTML. In the guided tour, the new area selector has been added so users can see help tooltips for specific areas.

Related PRs

  1. Help mode update #97
  2. Help mode update flatmapvuer#362
  3. Help mode update scaffoldvuer#200
  4. Help mode update mapintegratedvuer#589
  5. Help mode update plotvuer#70

There are some CI failures for flatmapvuer or mapintegratedvuer because they need the map-utilities dependency. Those failures should resolve after updating map-utilities (after the new version is released with help-mode updates).

All updates are on demo: https://mapintegratedvuer-mapcore-754fcb3bf891.herokuapp.com/#/.

@akhuoa
akhuoa marked this pull request as ready for review November 23, 2026 23:04
@akhuoa akhuoa changed the title [WIP] Add help mode tour Update help mode Nov 25, 2026
@akhuoa akhuoa changed the title Update help mode Help mode update Nov 25, 2026
@akhuoa
akhuoa requested a lite review from Copilot November 25, 2026 02:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Four moderate active issues remain in popover cleanup, async hook coordination, directive invalidation, and hidden-target filtering.

4 open issues
What changed in this PR

This pull request replaces the legacy help dialog with reusable guided-tour and hover-help components, supporting directive-based step collection, keyboard and mouse navigation, visibility handling, sanitized HTML descriptions, and dedicated help-mode UI.

Changes:

  • Adds HelpModeTour, HelpModeHover, shared utilities, and the v-help-mode directive.
  • Migrates DrawToolbar to directive-based help metadata and hover tooltips.
  • Removes the legacy HelpModeDialog implementation and updates the demo and README.
File Description
src/​main.js Removes global registration of the deprecated help dialog.
src/​components/​index.js Exports the new help-mode components, utilities, area definitions, and directive.
src/​components/​HelpModeTour/​helpModeUtils.js Provides shared area, visibility, coverage, overlay, and HTML-sanitization helpers.
src/​components/​HelpModeTour/​HelpModeTour.vue Implements the guided help tour with keyboard and mouse navigation and target highlighting.
src/​components/​HelpModeTour/​helpModeDirective.js Registers reactive help metadata on elements and collects ordered help steps.
src/​components/​HelpModeHover/​HelpModeHover.vue Implements highlighted hover help with overlays and popovers.
src/​components/​HelpModeDialog/​HelpModeDialog.vue Removes the legacy help dialog implementation.
src/​components/​DrawToolbar/​DrawToolbar.vue Adds help metadata to drawing controls and updates tooltip behavior.
src/​App.vue Removes legacy help-dialog state, demo controls, and tooltip visibility wiring.
README.md Documents help-mode components, directive usage, step configuration, areas, and collection.

Review effort: Lite

@akhuoa
akhuoa requested a review from alan-wu November 25, 2026 05:01

@alan-wu alan-wu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good in general and work very well, thanks a lot.
But I spot an issue with the hover over help after deploying on the portal
image

I find in a number of places, words do not get wrapped correctly. Can you please take a look?

@alan-wu alan-wu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move from Approve to Request changes.

@akhuoa

akhuoa commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

The changes look good in general and work very well, thanks a lot. But I spot an issue with the hover over help after deploying on the portal image

I find in a number of places, words do not get wrapped correctly. Can you please take a look?

Hi @alan-wu, I've done the fix and tested the integration. The fix also includes the background and button styles. f014317

On guided tour mode -

image

On hover mode -

image

The demo has been updated with the latest fixes.
https://mapintegratedvuer-mapcore-754fcb3bf891.herokuapp.com/#/

@akhuoa
akhuoa requested review from alan-wu and removed request for alan-wu December 1, 2026 20:39
@akhuoa

akhuoa commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@alan-wu, I found one more update needed while testing the portal integration. I will update this quickly and inform you again for review.

image

@akhuoa

akhuoa commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

@alan-wu, I found one more update needed while testing the portal integration. I will update this quickly and inform you again for review.

image

The bug is fixed in mapintegratedvuer.

@akhuoa
akhuoa requested a review from alan-wu December 1, 2026 21:27

@alan-wu alan-wu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the implementation looks good and a good use of directive.

@alan-wu
alan-wu merged commit 67655d0 into ABI-Software:main Dec 2, 2026
4 checks passed
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.

3 participants