Open KojiAndoJC opened 2 months ago
Thank you for your excellent suggestion about using the awsc-session-data
meta tag, @KojiAndoJC san!
I've verified its presence in the AWS console, and it seems to contain the right information even for Assume Role and root user scenarios. This approach looks nice for improving color application speed and make code easy to understand.
I'm considering incorporating this method in an upcoming release, but contributions are also very welcome if you'd like to implement it yourself. Your feedback is truly appreciated😀
Thank you for considering my suggestion, @xhiroga! I'm looking forward to your implementation and happy to provide any additional input if needed.
Description
There is a meta tag named
awsc-session-data
which containsaccountId
andinfrastructureRegion
. I would appreciate if the extension could use this data to apply background colors earlier.Motivation
Even after setting colors with this extension, the default color of the AWS Management Console is displayed for a few seconds. This is confusing for users.
Additionally, I attempted to implement this feature, but encountered some difficulties:
accountMenuButtonBackgroundColor
was not applied correctly.span[data-testid="account-menu-button__background"]
and couldn't design the proper logic.You can see my implementation attempt here: https://github.com/KojiAndoJC/aws-peacock-management-console/commit/be123329be2c166832f162d9bc4bff83f0463a2d
Sign in Method
Acknowledge