Skip to content

fix(ui): resolve Copilot PR reviews for newsletter and loader contrast#5408

Open
sammy200-ui wants to merge 2 commits into
asyncapi:website-uifrom
sammy200-ui:website-ui-newsletter-copilot-fixes
Open

fix(ui): resolve Copilot PR reviews for newsletter and loader contrast#5408
sammy200-ui wants to merge 2 commits into
asyncapi:website-uifrom
sammy200-ui:website-ui-newsletter-copilot-fixes

Conversation

@sammy200-ui
Copy link
Copy Markdown
Contributor

@sammy200-ui sammy200-ui commented May 12, 2026

Issue was that the text was black
Screenshot 2026-05-12 at 10 03 52 PM

The loader was not visible
Screenshot 2026-05-12 at 10 05 00 PM

ref : #5399 (comment)

Summary by CodeRabbit

  • Style
    • Improved dark mode support for loader text, enabling automatic color switching for better visibility.
    • Updated TSC community newsletter CTA styling and surrounding gradient container for improved contrast and dark mode compatibility.

Review Change Stack

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit dcc7013
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/6a035e90ed102a0008aee7b6
😎 Deploy Preview https://deploy-preview-5408--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: efbe0d92-361f-488a-a7e1-171d838fd876

📥 Commits

Reviewing files that changed from the base of the PR and between c508ecd and dcc7013.

📒 Files selected for processing (2)
  • components/Loader.tsx
  • pages/community/tsc.tsx

📝 Walkthrough

Walkthrough

Loader text now supports Tailwind dark mode (text-black dark:text-white). The TSC community page's newsletter CTA passes a dark prop to NewsletterSubscribe (removing hardcoded text-white) and reforms the CTA gradient style into object form without changing colors.

Changes

Dark Mode Support

Layer / File(s) Summary
Loader dark mode text styling
components/Loader.tsx
Loader text class updated to text-black dark:text-white so the text color automatically switches with Tailwind dark mode.
TSC page newsletter and CTA updates
pages/community/tsc.tsx
NewsletterSubscribe is passed a dark prop instead of a hardcoded className='text-white'; the "Want to join TSC?" CTA style is reformatted to an object with the same gradient stops.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 In code I nibble, tweak, and write,
Small changes glow in day and night,
Text flips colors, gradients hum,
Dark and light at last become,
A quiet hop — the theme is done.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: fixing UI contrast issues in the newsletter and loader components by addressing Copilot-identified review feedback.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sammy200-ui
Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2026

✅ Actions performed

Full review triggered.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses dark-theme visibility issues in UI components, specifically improving contrast for the Newsletter subscription section on the TSC page and ensuring loader text remains readable in dark mode.

Changes:

  • Updated pages/community/tsc.tsx to use the dark prop on NewsletterSubscribe and reformatted inline gradient styles.
  • Updated components/Loader.tsx to apply dark:text-white so loader text remains visible when the site is in dark mode.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pages/community/tsc.tsx Switches TSC newsletter section to NewsletterSubscribe dark and reformats gradient style objects.
components/Loader.tsx Ensures loader text switches to white under Tailwind dark mode when dark={false}.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pages/community/tsc.tsx
<NewsletterSubscribe
type='TSC Voting'
title='Get notified when TSC is voting'
subtitle="You'll receive an email whenever someone requests the TSC to vote"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

considered

@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c508ecd) to head (dcc7013).

Additional details and impacted files
@@             Coverage Diff              @@
##           website-ui     #5408   +/-   ##
============================================
  Coverage      100.00%   100.00%           
============================================
  Files              22        22           
  Lines             830       830           
  Branches          159       159           
============================================
  Hits              830       830           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sammy200-ui sammy200-ui force-pushed the website-ui-newsletter-copilot-fixes branch from 5220f20 to 321ea2a Compare May 12, 2026 16:45
@sammy200-ui sammy200-ui force-pushed the website-ui-newsletter-copilot-fixes branch from 321ea2a to f7240cc Compare May 12, 2026 16:55
@sonarqubecloud
Copy link
Copy Markdown

@sammy200-ui sammy200-ui requested a review from Copilot May 12, 2026 17:11
@sammy200-ui
Copy link
Copy Markdown
Contributor Author

@coderabbitai full review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2026

✅ Actions performed

Full review triggered.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread pages/community/tsc.tsx
title='Get notified when TSC is voting'
subtitle="You'll receive an email whenever someone requests the TSC to vote"
className='text-white'
className='text-center'
Comment thread components/Loader.tsx
<div className={twMerge(`w-fit flex gap-4 m-auto items-center ${pulsating ? 'animate-pulse ' : ''} ${className}`)}>
{loaderIcon}
<div className={`my-2 ${dark ? 'text-white' : 'text-black'}`}>{loaderText}</div>
<div className={`my-2 ${dark ? 'text-white' : 'text-black dark:text-white'}`}>{loaderText}</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

2 participants