Skip to content

Restyle Tiles #2370

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

Merged
merged 7 commits into from
Mar 31, 2025
Merged

Restyle Tiles #2370

merged 7 commits into from
Mar 31, 2025

Conversation

SHolleworth
Copy link
Contributor

image
image
image
image

Copy link

(auto-deploy) A deployment has been created for this Pull Request

Preview links

As part of the code review process, please ensure that you test against the following

Version URL
Web https://web.env.reactivetrader.com/pull/2370
OpenFin - FX fins://openfin.env.reactivetrader.com/pull/2370/config/rt-fx.json
OpenFin - Credit fins://openfin.env.reactivetrader.com/pull/2370/config/rt-credit.json
OpenFin - Launcher fins://openfin.env.reactivetrader.com/pull/2370/config/launcher.json
OpenFin - Workspace fins://openfin.env.reactivetrader.com/pull/2370/workspace/config/workspace.json

Performance

Please ensure that this PR does not degrade the performance of the UI. We should maintain a performance score of 95+.

https://developers.google.com/speed/pagespeed/insights/?url=https://web.env.reactivetrader.com/pull/2370

case isTooLong:
return <WarningOverlay {...currencyPair} />
}
})()}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will understand if you dislike this pattern, but I got it from Victor Olivia if that gives it anymore credibility!

Copy link
Contributor

Choose a reason for hiding this comment

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

you were right, I don't like it .. cunning, tho, I have to admit .. I can't claim a readability fail, as it is pretty clear what's going on, even if it takes you a few seconds to realise how 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

and, the alternative is not exactly pretty ..

algreasley
algreasley previously approved these changes Mar 27, 2025
case isTooLong:
return <WarningOverlay {...currencyPair} />
}
})()}
Copy link
Contributor

Choose a reason for hiding this comment

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

you were right, I don't like it .. cunning, tho, I have to admit .. I can't claim a readability fail, as it is pretty clear what's going on, even if it takes you a few seconds to realise how 😄

case isTooLong:
return <WarningOverlay {...currencyPair} />
}
})()}
Copy link
Contributor

Choose a reason for hiding this comment

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

and, the alternative is not exactly pretty ..

color="Colors/Text/text-primary (900)"
role="alert"
>
{(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

different pattern here 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

which one do you dislike least?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I prefer this .. although would it be better as a sub-component .. perhaps not as abstracting away could lead to less readable component overall

Copy link
Contributor

Choose a reason for hiding this comment

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

gotta choose one, tho, I'd say .. so my vote is for this, your vote is equal, so we may need to draft in a 3rd party 😁

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll go for this one

Copy link
Contributor

@algreasley algreasley left a comment

Choose a reason for hiding this comment

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

great .. nice bit of tidying up into the bargain 🚀

@SHolleworth SHolleworth merged commit 99e588a into master Mar 31, 2025
6 checks passed
@SHolleworth SHolleworth deleted the tile branch March 31, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants