Skip to content

enhc: enchanced the look of Governance Board overview sections by adding borders and shadows#5319

Open
vaidik-bajpai wants to merge 1 commit into
asyncapi:masterfrom
vaidik-bajpai:enhc/governance-card
Open

enhc: enchanced the look of Governance Board overview sections by adding borders and shadows#5319
vaidik-bajpai wants to merge 1 commit into
asyncapi:masterfrom
vaidik-bajpai:enhc/governance-card

Conversation

@vaidik-bajpai
Copy link
Copy Markdown

@vaidik-bajpai vaidik-bajpai commented Apr 5, 2026

Description

  • The fix was pretty straight forward I just copied the card layout of the Board Members section and replicated the same for the cards above. It looks clean and blends with the rest of the layout and especially card styles.
image

Related issue(s)

Resolves #5135

Summary by CodeRabbit

  • Style
    • Improved the visual design of three informational sections on the community board with rounded corners, borders, padding, centered text alignment, and drop shadows for better visual distinction and interface consistency.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 5, 2026

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 53d9c32
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/69d2c21299e2d000083f5975
😎 Deploy Preview https://deploy-preview-5319--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@asyncapi-bot
Copy link
Copy Markdown
Contributor

asyncapi-bot commented Apr 5, 2026

We require all PRs to follow Conventional Commits specification.
More details 👇🏼

 Unknown release type "enhc" found in pull request title "enhc: enchanced the look of Governance Board overview sections by adding borders and shadows". 

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 5, 2026

📝 Walkthrough

Walkthrough

The change applies consistent card styling to three informational sections on the Governance Board overview page by adding Tailwind CSS classes for rounded corners, borders, padding, text alignment, and shadow effects.

Changes

Cohort / File(s) Summary
Governance Board Card Styling
pages/community/board.tsx
Applied uniform Tailwind classes (rounded-md, border border-gray-200, p-4, text-center, shadow-md) to three informational section containers to establish consistent card layout styling.

Estimated Code Review Effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 Three boxes now wear their finest attire,
With borders and shadows that inspire,
Rounded corners dance, padding flows free,
The Board page now styled consistently!

🚥 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 directly addresses the main change: adding borders and shadows to Governance Board sections. However, it contains a typo ('enhc' and 'enchanced') that obscures clarity.
Linked Issues check ✅ Passed The code changes fully implement the requirements from issue #5135: adding card styling (borders, shadows, padding, rounded corners) to the three overview sections to match the Board Members card presentation.
Out of Scope Changes check ✅ Passed The changes are strictly scoped to styling the three overview sections as required by issue #5135. No unrelated modifications, control flow changes, or structural alterations are present.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ 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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (278f84d) to head (53d9c32).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #5319   +/-   ##
=========================================
  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.

@asyncapi-bot
Copy link
Copy Markdown
Contributor

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 43
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-5319--asyncapi-website.netlify.app/

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
pages/community/board.tsx (1)

11-49: ⚠️ Potential issue | 🟠 Major

Use the shared Card layout/component here, not duplicated utility classes.

The three overview blocks match the style visually, but they don’t satisfy the issue objective of reusing the shared card pattern/component. This duplicates presentation logic and can drift from the “Current Board members” cards over time.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pages/community/board.tsx` around lines 11 - 49, The three duplicated card
blocks using the div with classes 'rounded-md border border-gray-200 p-4
text-center shadow-md' should be replaced with the shared Card layout/component
used for the "Current Board members" cards to avoid duplicating presentation
logic; locate the repeated blocks (including the h3/title and p/body that
currently include an anchor and the TextLink component) and render the shared
Card component instead, passing the title string and the paragraph content
(preserving the external anchor link and TextLink usage/props like href, target
and rel) as children or via the Card's title/body props so styling and structure
are driven by the single shared component.
🧹 Nitpick comments (1)
pages/community/board.tsx (1)

10-49: Add base spacing between stacked cards on mobile.

At Line 10, spacing is only defined for lg (lg:gap-8). On smaller viewports, these card sections stack without vertical gap. Add a base gap (for example gap-4) and keep the larger breakpoint gap.

Suggested tweak
-      <div className='mx-auto my-0 grid max-w-xl lg:max-w-screen-xl lg:grid-cols-3 lg:gap-8' data-testid='GB-content'>
+      <div className='mx-auto my-0 grid max-w-xl gap-4 lg:max-w-screen-xl lg:grid-cols-3 lg:gap-8' data-testid='GB-content'>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@pages/community/board.tsx` around lines 10 - 49, The grid container with
data-testid='GB-content' only defines lg:gap-8 so stacked cards on mobile lack
vertical spacing; update the className on that div (the one with 'mx-auto my-0
grid max-w-xl lg:max-w-screen-xl lg:grid-cols-3 lg:gap-8') to include a base gap
(e.g., add 'gap-4') while retaining 'lg:gap-8' so small viewports get vertical
spacing and large screens keep the larger gap.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@pages/community/board.tsx`:
- Around line 11-49: The three duplicated card blocks using the div with classes
'rounded-md border border-gray-200 p-4 text-center shadow-md' should be replaced
with the shared Card layout/component used for the "Current Board members" cards
to avoid duplicating presentation logic; locate the repeated blocks (including
the h3/title and p/body that currently include an anchor and the TextLink
component) and render the shared Card component instead, passing the title
string and the paragraph content (preserving the external anchor link and
TextLink usage/props like href, target and rel) as children or via the Card's
title/body props so styling and structure are driven by the single shared
component.

---

Nitpick comments:
In `@pages/community/board.tsx`:
- Around line 10-49: The grid container with data-testid='GB-content' only
defines lg:gap-8 so stacked cards on mobile lack vertical spacing; update the
className on that div (the one with 'mx-auto my-0 grid max-w-xl
lg:max-w-screen-xl lg:grid-cols-3 lg:gap-8') to include a base gap (e.g., add
'gap-4') while retaining 'lg:gap-8' so small viewports get vertical spacing and
large screens keep the larger gap.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9b4ab81b-eac6-4039-913a-c9f41ad4d23e

📥 Commits

Reviewing files that changed from the base of the PR and between 278f84d and 53d9c32.

📒 Files selected for processing (1)
  • pages/community/board.tsx

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.

[DESIGN]: Use consistent card layout for Governance Board overview sections

2 participants