Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing Css logic to correctly show rate limit banners in the correct …
…place (#6464) [Linear issue ](https://linear.app/sourcegraph/issue/QA-184/jetbrains-go-pro-label-doesnt-apply-in-each-tab-for-rate-limit) <img width="675" alt="image" src="https://github.com/user-attachments/assets/5a4f33c8-3b98-451e-84c4-6ca37765ba66" /> Currently the UI for displaying the rate limit being exceeded is bad because it shows up in the wrong place. While I am not "stopping" the user from clicking on new chat I think showing the go pro banner at the right place and then making every chat error out is a good enough mechanism to remind people to go pro. Positioning Fixes: 1. Added relative positioning to the error banner 2. Correctly aligned the banner to appear in the right place for both VS Code and JetBrains interfaces Styling Improvements: 1. Added consistent margins (12px vertical, 0px horizontal) to align with chat messages 2. Added subtle rounded corners and shadow for better visual hierarchy Improved spacing and typography 1. Added right margin to paragraph text to prevent overlap with "Cody Pro" banner 2. Tightened spacing between heading, paragraph, and button Visual Refinements: 1. Improved error card styling for better visual hierarchy 2. Ensured the banner appears properly positioned relative to the upgrade notice 3. Fixed alignment issues with the chat interface So here's what the new banners will look like after the PR ![image](https://github.com/user-attachments/assets/ef382f92-6c8a-4018-9766-3273e4fbc0cd) ## Test plan You can test this by going to [rate-limit-ui-fix-testing](https://github.com/sourcegraph/cody/tree/rate-limit-ui-fix-testing) branch and then running it in the vscode debugger and use a non-pro account with the dotcom instance and you will ALWAYS see the banner <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
- Loading branch information