-
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
Feature/43097 - "Export onyx state" button in the troubleshoot section #43552
Feature/43097 - "Export onyx state" button in the troubleshoot section #43552
Conversation
9e8a60e
to
fca2b12
Compare
@ZhenjaHorbach 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] |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safariios-web.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
@burczu 2024-06-27.16.24.16.mov |
Hey @ZhenjaHorbach! I've checked the desktop app and it looks ok on my end: Screen.Recording.2024-06-28.at.12.22.13.movMaybe it's something with the state of your project? I've just synced it with the latest main - please check if it helps, maybe? |
Oh @burczu |
@ZhenjaHorbach fixed eslint errors + added the check for null data. I hope this fixes all the issues. |
@ZhenjaHorbach I've added |
Nice |
✋ 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/puneetlath in version: 9.0.4-0 🚀
|
🚀 Cherry-picked to staging by https://github.com/tgolen in version: 9.0.4-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
const readFromOnyxDatabase = () => | ||
new Promise<Record<string, unknown>>((resolve) => { | ||
let db: IDBDatabase; | ||
const openRequest = indexedDB.open(CONST.DEFAULT_DB_NAME, 1); |
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.
We should not have had set the default version for database, this caused #45232. Database version was a optional parameter here.
Details
This PR implements the new "Export Onyx state" functionality that adds new button in the "Troubleshoot" section that exports the current Onyx state object as a TXT file.
Fixed Issues
$ #43097
PROPOSAL: #43097 (comment)
Tests
Offline tests
Same as above.
QA Steps
Same as above.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Screen.Recording.2024-06-19.at.12.38.38.mov
Android: mWeb Chrome
Screen.Recording.2024-06-19.at.12.01.12.mov
iOS: Native
Screen.Recording.2024-06-19.at.11.54.39.mov
iOS: mWeb Safari
Screen.Recording.2024-06-19.at.11.16.32.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-19.at.11.12.55.mov
MacOS: Desktop
Screen.Recording.2024-06-19.at.11.15.25.mov