[No QA] Display nested doc folders as grouped sections in help site UI#84318
[No QA] Display nested doc folders as grouped sections in help site UI#84318MonilBhavsar merged 3 commits intomainfrom
Conversation
Updates section.html and lhn-template.html to visually group articles from nested subfolders (e.g. Troubleshooting/) under their own heading instead of flattening them into the main article list. Co-authored-by: Stephanie Elliott <stephanieelliott@users.noreply.github.com>
Co-authored-by: Stephanie Elliott <stephanieelliott@users.noreply.github.com>
|
Fixed the failing |
|
@ChavdaSachin Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@MelvinBot this is still not quite right :
Troubleshoot Authentication and Login Errors, , Troubleshoot Connection Errors, etc. are nested folders UNDER the Troubleshooting heading, which each contain articles. So the structure should be: Expensify Classic > Connections > Certinia> Troubleshooting > Authentication and Login Errors > [article] [article] |
The templates were only grouping by the first path segment (e.g., "Troubleshooting"), rendering all nested articles flat under that heading. The actual folder structure has an additional level: Troubleshooting > Authentication-and-Login-errors > Overview.md Updated both section.html and lhn-template.html to detect 3-segment article paths and render them with sub-headings for each error category (e.g., "Authentication and Login errors", "Connection errors") beneath the top-level "Troubleshooting" heading. Co-authored-by: Stephanie Elliott <stephanieelliott@users.noreply.github.com>
|
A preview of your ExpensifyHelp changes have been deployed to https://head.helpdot.pages.dev ⚡️ |
|
Good catch — the templates were only grouping by the first path segment ( I've updated both Main section (
Left-hand navigation (
Also updated the PR test steps to reflect the correct expected structure. The Cloudflare Pages preview should show the updated rendering once the deploy finishes. |
|
@MelvinBot does this PR require an engineering reviewer, or can anyone with write access approve and merge it? |
|
Based on what's documented in the repo's contributing guides:
That said, this PR modifies Liquid/HTML templates ( |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
All checks on this PR are currently passing. There was a previous |
|
🚧 @MonilBhavsar has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.3.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.33-5 🚀
|

Follow-up to #84217
Explanation of Change
PR #84217 added nested folder structure for integration troubleshooting docs (e.g.,
Troubleshooting/Export-Errors/Overview.md). ThecreateDocsRoutes.tsscript correctly generates route data with these nested articles, but the rendering templates (section.htmlandlhn-template.html) were flattening all articles into one list — so the folder grouping was invisible in the UI.This PR updates both templates to detect articles with nested paths (containing
/in their href) and visually group them under their subfolder headings. The full hierarchy is preserved:Section > Troubleshooting > Error Category > Article(s)
What changed:
section.html: Direct articles render first in the main cards grid. Nested articles are grouped by top-level folder (e.g., "Troubleshooting") with an<h3>heading, then further grouped by sub-folder (e.g., "Authentication and Login errors") with<h4>headings and article cards underneath each.lhn-template.html: Direct articles render first as flat links. Nested articles are grouped under a top-level subfolder label, then further nested under sub-subfolder labels with article links below each.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/469226
PROPOSAL: N/A
Tests
Offline tests
N/A — docs site only
QA Steps
N/A, no QA — docs rendering only
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A — docs site changes only, will be visible in Cloudflare Pages preview
Android: mWeb Chrome
N/A — docs site changes only, will be visible in Cloudflare Pages preview
iOS: Native
N/A — docs site changes only, will be visible in Cloudflare Pages preview
iOS: mWeb Safari
N/A — docs site changes only, will be visible in Cloudflare Pages preview
MacOS: Chrome / Safari
N/A — docs site changes only, will be visible in Cloudflare Pages preview