Skip to content

Add contextual user guide help buttons across mapped pages and dialogs - #303

Merged
level09 merged 5 commits into
mainfrom
add-contextual-help-and-tooltips
Aug 10, 2026
Merged

Add contextual user guide help buttons across mapped pages and dialogs#303
level09 merged 5 commits into
mainfrom
add-contextual-help-and-tooltips

Conversation

@apodacaduron

@apodacaduron apodacaduron commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a reusable contextual help button and wires it to relevant Bayanat docs pages across mapped admin pages/dialogs.
Also adds revision-history help links in entity cards and OCR help in media dashboard/transcription..

How to Test

  1. Open mapped pages/dialogs (Bulletins, Actors, Incidents, Users, Roles, Activity, Import/Export, Media, Dynamic Fields).
  2. Confirm help icon appears in toolbar and tooltip says Learn about .
  3. Click help icon and verify it opens the expected docs.bayanat.org/guide/... page in a new tab.

Jira ID (if applicable)

BYNT-1560

@apodacaduron apodacaduron self-assigned this Mar 27, 2026
@apodacaduron
apodacaduron requested a review from level09 as a code owner March 27, 2026 17:18
@coderabbitai

coderabbitai Bot commented Mar 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 813a4b2e-c07c-45e9-ba65-588815d889b0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-contextual-help-and-tooltips

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@apodacaduron
apodacaduron force-pushed the add-contextual-help-and-tooltips branch from ee67e35 to 50e321d Compare August 4, 2026 17:44
@apodacaduron
apodacaduron marked this pull request as draft August 4, 2026 17:45
Add per-entity title keys and a working learnAbout_(title) helper
for the top-nav help tooltip, following the existing arrow-function
translation pattern in this file (activeFiltersCount_, moreLabels_, etc).
roles/users links were swapped: roles manages access groups
(access-control.html), users manages accounts/permissions
(permissions.html). Add missing 'user' detail route mapping.
Point dashboard at the general orientation doc instead of the
unrelated analyst-workflow guide.
currentHelpLabel called a translation function that didn't exist,
so it silently always fell back to hardcoded English regardless of
locale. Wire it up to the new learnAbout_/titleKey translations.

@level09 level09 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. Route-keyed lookup plus one computed in the global mixin is the right amount of machinery for this.

Since it has been open a while I checked the things most likely to have rotted, and they held up: all 18 doc URLs return 200, all 29 route keys match real route names in config.js, and every titleKey resolves to a key that exists in jsapi.jinja2.

One follow-up, not a blocker. Eight of the new strings have no Arabic yet:

Learn about {title}, What is Bayanat?, Activity Monitor, Dynamic Fields, Permissions, Media Management, Video Deduplication, Data Export

The other seven are already translated (Locations, Labels, Sources, Events, Access Control, Media Import, Data Import). Because Learn about {title} is one of the missing ones, those seven come out mixed, like "Learn about الأماكن", which reads worse than plain English. #391 adds eight more, so it is one extract and update pass covering both, then Khaleel for the Arabic. Merging this first so it stops aging against main.

Tiny thing whenever you next touch the file: in global-mixin.js currentHelpLabel falls back to window.translations || {} and then calls translations.learnAbout_(title) on it, which would throw in exactly the case the fallback is there for. It cannot happen in practice since layout.html loads jsapi before the mixin, so either the fallback or the unguarded call can go.

Rebase before merge.

@level09
level09 merged commit c8d13ae into main Aug 10, 2026
11 checks passed
@level09
level09 deleted the add-contextual-help-and-tooltips branch August 10, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants