[TS migration] Migrate 'Docs' files to TypeScript#37973
Conversation
|
Note: deploy part of the integration flow is expected to fail, comment from another PR |
| if (option.value === selectedValue) { | ||
| const toShow = document.getElementsByClassName(option.value); | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/prefer-for-of -- for-of doesn't work with this data |
There was a problem hiding this comment.
just curious: why doesn't it work?
| if (option.value === selectedValue) { | ||
| const toShow = document.getElementsByClassName(option.value); | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/prefer-for-of -- for-of doesn't work with this data |
There was a problem hiding this comment.
Maybe we should disable this rule?
There was a problem hiding this comment.
Do you mean on the file level?
There was a problem hiding this comment.
I have looked through the app and there are not a lot of places where this eslint rule causes problems. Also, this case is kind of specific due to the used data, so I think it's okay to leave it as is
There was a problem hiding this comment.
Okay, let's leave it as is 😄
|
|
@blazejkustra see my comment |
|
@parasharrajat 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] |
|
Noticing a navigation issue. Is it expected? Am I missing something from the test steps?
Screen.Recording.2024-03-13.at.11.24.06.PM.mov |
|
@parasharrajat I've re-run Docs from scratch and I was able to reproduce the issue you have mentioned. I think I haven't noticed it initially due to the local cache when tested it on my own 😞 |
|
I think it is fine but let's raise this in Slack first. |
|
@parasharrajat I haven't got any feedback in Slack, I'll wait till EOD and then close the PR/issue. What do you think? |
|
Works for me. Thanks. |

Details
[TS migration] Migrate 'Docs' files to TypeScript
Fixed Issues
$ #25358
PROPOSAL: N/A
Tests
cd docs&&npm run createDocsRoutes&&bundle exec jekyll serve --livereload)6.1 Go to Expensify Classic > Getting Started > Join Your Company's Workspace
6.2 Verify that the desktop selector is selected by default
6.3 Click the selector and change the value to Mobile.
6.4 Verify that the content changes and shows content related to mobile.
6.5 Verify that all other selectors in the page are in sync and are selected to mobile.
Offline tests
N/A
QA Steps
Same as in the Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Docs
Docs1.mp4