-
-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat(mobile): FW update changelog modal #16205
Conversation
🚀 Expo preview is ready!
|
suite-native/module-device-settings/src/screens/FirmwareUpdateScreen/FirmwareChangelog.tsx
Outdated
Show resolved
Hide resolved
a66536a
to
b95f79c
Compare
|
||
let formattedText = text; | ||
|
||
if (text.startsWith(' - ')) { |
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.
} | ||
|
||
if (typeof firmwareChangelog === 'string') { | ||
return <Text>{firmwareChangelog}</Text>; |
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.
It seems that formatting may also be used in this case.
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.
I went though changelogs in trezor/data repo and I haven't seen any single occurence of formatting so I won't be doing now, in future we may need to use full fledged markdown library, but for now it looks like overkill to me.
const key = text + index; | ||
|
||
if (text.startsWith('#')) { | ||
const strippedText = text.replaceAll('#', '').trim(); |
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.
In case the #
symbol is somewhere in the text, it'll be remove as well.
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.
I made whole parser more robust using regexp so it should work correctly.
b95f79c
to
7660859
Compare
7660859
to
0d21789
Compare
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.
Info |
Caution Review failedThe pull request is closed. WalkthroughThis pull request introduces a new selector function, Assessment against linked issues
Possibly related PRs
Suggested reviewers
Tip 🌐 Web search-backed reviews and chat
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Implement changelog bottom sheet + fix centering of Confirm on Trezor image on bottom of screen.
Related Issue
Resolve part of #15584
Resolve #16572
Screenshots: