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

Update the warning banner styling #2757

Merged
merged 5 commits into from
Oct 11, 2024

Conversation

use-tusk[bot]
Copy link
Contributor

@use-tusk use-tusk bot commented Oct 10, 2024

This PR updates the styling of the warning banner on the request page. The changes include:

  • Changing the background color to sky-500 using bg-sky-500.
  • Setting the text color to white (#FFFFFF) using text-white.
  • Adjusting the font size to 13px using text-[13px].
  • Ensuring proper layout with flex justify-between items-center and adding padding with p-4.
  • Updating the close button styling to match the new color scheme with text-white and hover:text-gray-200.

These updates provide a clearer and more visually appealing warning banner to users.


Tips:

  • Make sure to test changes before merging.
  • Submit a "Request Changes" review to address nits. If major changes are needed, retry the issue from the Tusk app with additional context.
  • Close this PR with a comment if it's obviously incorrect. This will improve my future PRs.
  • Go to the Tusk activity logs to see more details.

Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
helicone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:15am
helicone-bifrost ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:15am
helicone-eu ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 11, 2024 6:15am

@@ -742,8 +742,8 @@ const RequestsPageV2 = (props: RequestsPageV2Props) => {
<>
<div className="h-screen flex flex-col">
{requestWithoutStream && !isWarningHidden && (
<div className="alert alert-warning flex justify-between items-center">
<p className="text-yellow-800">
<div className="bg-sky-500 text-white text-[13px] flex justify-between items-center p-4">
Copy link
Collaborator

Choose a reason for hiding this comment

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

change to "bg-sky-200" please

@@ -742,8 +742,8 @@ const RequestsPageV2 = (props: RequestsPageV2Props) => {
<>
<div className="h-screen flex flex-col">
{requestWithoutStream && !isWarningHidden && (
<div className="alert alert-warning flex justify-between items-center">
<p className="text-yellow-800">
<div className="bg-sky-500 text-white text-[13px] flex justify-between items-center p-4">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you reduce the padding to p-2 instead

Copy link
Contributor Author

use-tusk bot commented Oct 11, 2024

Addressing your review. View activity logs for details.

Copy link
Contributor Author

use-tusk bot commented Oct 11, 2024

@LinaLam I've addressed your review. Add another review if minor changes are needed. If major changes are needed, retry the issue from the Tusk app with additional context.

@@ -742,8 +742,8 @@ const RequestsPageV2 = (props: RequestsPageV2Props) => {
<>
<div className="h-screen flex flex-col">
{requestWithoutStream && !isWarningHidden && (
<div className="alert alert-warning flex justify-between items-center">
<p className="text-yellow-800">
<div className="bg-sky-200 text-white text-[13px] flex justify-between items-center p-2">
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you make it bg-sky-400 instead?

Copy link
Contributor Author

use-tusk bot commented Oct 11, 2024

Addressing your review. View activity logs for details.

Copy link
Contributor Author

use-tusk bot commented Oct 11, 2024

@LinaLam I've addressed your review. Add another review if minor changes are needed. If major changes are needed, retry the issue from the Tusk app with additional context.

@use-tusk use-tusk bot requested a review from LinaLam October 11, 2024 05:47
@@ -742,8 +742,8 @@ const RequestsPageV2 = (props: RequestsPageV2Props) => {
<>
<div className="h-screen flex flex-col">
{requestWithoutStream && !isWarningHidden && (
<div className="alert alert-warning flex justify-between items-center">
<p className="text-yellow-800">
<div className="bg-sky-400 text-white text-[13px] flex justify-between items-center p-2">
Copy link
Collaborator

Choose a reason for hiding this comment

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

make it bg-sky-400 please

<div className="alert alert-warning flex justify-between items-center">
<p className="text-yellow-800">
<div className="bg-sky-400 text-white text-[13px] flex justify-between items-center p-2">
<p>
We are unable to calculate your cost accurately because the
&#39;stream_usage&#39; option is not included in your message.
Please refer to{" "}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you make sure the link after called "this documentation" is in white?

Copy link
Contributor Author

use-tusk bot commented Oct 11, 2024

Addressing your review. View activity logs for details.

Copy link
Contributor Author

use-tusk bot commented Oct 11, 2024

@LinaLam I've addressed your review. Add another review if minor changes are needed. If major changes are needed, retry the issue from the Tusk app with additional context.

@use-tusk use-tusk bot requested a review from LinaLam October 11, 2024 06:15
@LinaLam LinaLam merged commit e378416 into main Oct 11, 2024
9 of 10 checks passed
@LinaLam LinaLam deleted the tusk-update-warning-banner-101020241625 branch October 11, 2024 16:19
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.

1 participant