-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HelpDot] Show platforms and hubs #27932
Conversation
// Path name is of the form /articles/[platform]/[hub]/[resource] | ||
const path = window.location.pathname.split('/'); | ||
if (path[2] && path[3]) { | ||
window.location.href = `/${path[2]}/hubs/${path[3]}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
navigates to [platform-name]/hubs/[hub-name]
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@roryabraham try deleting and run |
@roryabraham what is the output of |
Sorry, hadn't run |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://127.0.0.1:4000/new-expensify/hubs/exports is giving me a blank page, let's add a coming soon page for it please
Also providing faster feedback in https://expensify.slack.com/archives/C02QSAC6BJ8/p1695350666656869 |
✋ 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/roryabraham in version: 1.3.73-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.73-1 🚀
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 1.3.74-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.74-3 🚀
|
Details
In this PR, we're displaying all the platforms, hubs and articles for them.
The hubs are in a 6x2 grid, the platforms don't have the correct image, styling and description. That'll be done in the next PR.
Design doc link
Fixed Issues
$ #27150
PROPOSAL: N.A.
Tests
cd docs && npm run createDocsRoutes
bundle exec jekyll serve --livereload
to start HelpDotHome page
>
oldDot hubs
newDot hubs
Hub page showing articles and section - Bank Accounts & Credit Cards
Article - Getting Started - Playbook
<
Deep link test
<
Offline tests
QA Steps
Verify that help.expensify.com is working
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Home page
oldDot hubs
newDot hubs
Hub page showing articles and section - Bank Accounts & Credit Cards
Article - Getting Started - Playbook
testing back button
Screen.Recording.2023-09-21.at.16.11.59.mov
Deep link test
Screen.Recording.2023-09-21.at.16.14.14.mov
M-Web
Screen.Recording.2023-09-21.at.16.42.54.mov