Skip to content

Conversation

@vignedev
Copy link
Owner

Description of changes

Implements feature request from ynput#1294.

  • Help button was added next to the Project Context button in the navbar
    • Buttons are always visible even if the tabs are overflowing
  • Clicking from Overview, Task progress, Lists or Review pages will display their article
  • On other pages with no linked article, the button will open the support chat with Can you help me know more about the {module} page? as the prompt

Technical details

  • The module names have to have their respective article IDs mapped in src/pages/ProjectPage/ProjectPage.tsx, specifically in moduleArticleMapping
    • If the article ID is not provided, the chat will be shown with the prompt as shown above, with the module name's first letter capitalized
    • The icon changes between help and live_help depending whether it would open an article or the chat respectively
  • a4593c0 — For proper sticky buttons, links in AppNavLinks using node can be created as different elements than li — mostly meant to allow styled li elements
  • ce6c7daopenSupport(...) would always act as a toggle, which may not be desired in certain areas, and such an additional overloading parameter keepOpen was added, which allows it to only change the page without affecting its visibility

Additional context

  • How the buttons look like when the tabs in navbar are overflowing
    • Non-active tab under the overflown area
      Screenshot from 2025-07-20 02-09-15_2
    • Active tab under the overflown
      Screenshot from 2025-07-20 02-09-15
  • Video showing what the button does on a page with a known article:
ynput_help_btn.mp4
  • Video showing button's behavior when a page does not have an article:
ynput_help_btn_2.mp4

@vignedev vignedev self-assigned this Jul 20, 2025
@vignedev vignedev added the enhancement New feature or request label Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants