Skip to content
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

transport bridge UI #12050

Merged
merged 2 commits into from
Apr 18, 2024
Merged

transport bridge UI #12050

merged 2 commits into from
Apr 18, 2024

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Apr 17, 2024

bridge-node status page

part of #11532

Features:

  • data parity with the old bridge status page
  • dark/light theme using autodetect
  • support for translations

Todo:

  • design
image

Copy link

socket-security bot commented Apr 17, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@mroz22 mroz22 force-pushed the transport-bridge-ui branch 2 times, most recently from 2ff0ca6 to 2734383 Compare April 18, 2024 07:03
@mroz22 mroz22 changed the title [wip] Transport bridge UI transport bridge UI Apr 18, 2024
@mroz22 mroz22 marked this pull request as ready for review April 18, 2024 07:28
@mroz22 mroz22 requested a review from komret as a code owner April 18, 2024 07:28
return 'Trezor model T/R Bootloader';
case 5:
return 'Emulator';
default:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would prefer to have it strict mapping without having default case


const { ext } = path.parse(pathname);

fs.exists(pathname, function (exist) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: arrow function? I think we use (prefer) them everywhere

if (fs.statSync(pathname).isDirectory()) pathname += '/index' + ext;

// read file from file system
fs.readFile(pathname, function (err, data) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: arrow function? I think we use (prefer) them everywhere

Copy link
Contributor

@peter-sanderson peter-sanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just nits

@mroz22
Copy link
Contributor Author

mroz22 commented Apr 18, 2024

forced pushed the nitpicks

@mroz22 mroz22 enabled auto-merge (rebase) April 18, 2024 13:24
@mroz22 mroz22 merged commit 10d75fe into develop Apr 18, 2024
62 of 68 checks passed
@mroz22 mroz22 deleted the transport-bridge-ui branch April 18, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants