Skip to content

fix(tsc): align Read full profile buttons at bottom of member cards#383

Merged
aceppaluni merged 2 commits intohiero-ledger:mainfrom
aashu2006:fix/tsc-profile-button-alignment
Apr 13, 2026
Merged

fix(tsc): align Read full profile buttons at bottom of member cards#383
aceppaluni merged 2 commits intohiero-ledger:mainfrom
aashu2006:fix/tsc-profile-button-alignment

Conversation

@aashu2006
Copy link
Copy Markdown
Contributor

@aashu2006 aashu2006 commented Apr 12, 2026

Description

Fixes inconsistent alignment of the "Read full profile" buttons on the TSC page by applying a flex column layout to member cards, ensuring buttons stay pinned to the bottom regardless of bio length.

Changes Made

  • Applied flex flex-col to TSC member card container (<article>)
  • Updated content wrapper to flex flex-1 flex-col
  • Added grow to bio paragraph to push button to bottom
  • Added changelog entry for the fix

Related Issues

Fixes #380

Screenshots

Before:
Buttons appeared at inconsistent vertical positions across cards due to varying bio lengths.
image
After
Buttons are consistently aligned at the bottom of each card using a flex column layout.
image

Checklist

  • Tests added/updated
  • Documentation updated
  • Linting passes
  • Branch up-to-date with main

Summary by CodeRabbit

  • Bug Fixes
    • Fixed alignment of "Read full profile" buttons on the TSC page so they remain pinned to the bottom of member cards regardless of bio length.
  • Documentation
    • Added an initial changelog entry noting the TSC page fix.

Signed-off-by: aashu2006 <akshatp439@gmail.com>
@aashu2006 aashu2006 requested review from a team as code owners April 12, 2026 21:27
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 12, 2026

Deploy Preview for hiero-open-source ready!

Name Link
🔨 Latest commit fb76cd8
🔍 Latest deploy log https://app.netlify.com/projects/hiero-open-source/deploys/69dd206ef598ca00081ac2da
😎 Deploy Preview https://deploy-preview-383--hiero-open-source.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.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 12, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9ef8efae-26b1-408d-8a2d-4ae13180e1d2

📥 Commits

Reviewing files that changed from the base of the PR and between ca7a7a0 and fb76cd8.

📒 Files selected for processing (1)
  • src/app/tsc/page.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/app/tsc/page.tsx

📝 Walkthrough

Walkthrough

Updated the TSC page layout so committee member cards use vertical flex layout to pin "Read full profile" buttons to the card bottom; added an initial CHANGELOG.md entry documenting the fix.

Changes

Cohort / File(s) Summary
Documentation
CHANGELOG.md
Added initial changelog entry under [Unreleased]Fixed describing the UI alignment fix for TSC page profile buttons.
TSC page layout
src/app/tsc/page.tsx
Converted card containers and inner wrappers to vertical flex (flex flex-col / flex-1) and made bio paragraph grow to fill space so the "Read full profile" button remains pinned to the bottom; minor button alignment tweak (justify-center).

Sequence Diagram(s)

(omitted — change is layout-only and does not involve multi-component sequential interactions)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • #296: Previously added/created the TSC page component that this PR adjusts for improved member card layout and button alignment.

Suggested reviewers

  • aceppaluni
  • danielmarv
  • exploreriii

Poem

🐰 I nudged the cards to stand in line,
Flex made buttons sit where they should shine,
No more drifting, no more roam,
Each "Read full profile" finds its home! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: fixing the alignment of 'Read full profile' buttons at the bottom of TSC member cards.
Description check ✅ Passed The description follows the template structure with all major sections completed: purpose, changes made with checkboxes, related issues, before/after screenshots, and a checklist.
Linked Issues check ✅ Passed The PR fully addresses issue #380 requirements: fixes button alignment using flex column layout, follows project conventions, includes a changelog entry, and passes CI checks as confirmed.
Out of Scope Changes check ✅ Passed All changes are directly related to fixing the button alignment issue in #380. The CHANGELOG.md and src/app/tsc/page.tsx modifications focus solely on the stated objective with no unrelated changes.

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

📋 Issue Planner

Built with CodeRabbit's Coding Plans for faster development and fewer bugs.

View plan used: #380

✨ 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.

@lfdt-bot
Copy link
Copy Markdown
Contributor

lfdt-bot commented Apr 12, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 12, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

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.

🧹 Nitpick comments (1)
src/app/tsc/page.tsx (1)

168-239: Consider adding a small regression test for card layout contract.

This fix is clean, but since behavior depends on specific class combinations, a lightweight test asserting the card/content/bio wrapper class contract would help prevent future regressions.

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

In `@src/app/tsc/page.tsx` around lines 168 - 239, Add a lightweight regression
test that mounts the component rendering the sorted.map list (the card markup in
the page.tsx diff) and asserts the layout class contract: verify each article
element includes the expected wrapper classes (e.g., rounded-2xl, border-2,
bg-white, p-6 sm:p-7), the image or placeholder div has the aspect-square class,
the bio paragraph element contains the grow mt-4 text-base text-gray classes,
and that when a member has a bio the Read full profile button with id pattern
tsc-read-profile-{index} is present (and absent when no bio); use queries by
role/text/id and assert className contains the class tokens rather than exact
string to avoid brittle spacing differences.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/app/tsc/page.tsx`:
- Around line 168-239: Add a lightweight regression test that mounts the
component rendering the sorted.map list (the card markup in the page.tsx diff)
and asserts the layout class contract: verify each article element includes the
expected wrapper classes (e.g., rounded-2xl, border-2, bg-white, p-6 sm:p-7),
the image or placeholder div has the aspect-square class, the bio paragraph
element contains the grow mt-4 text-base text-gray classes, and that when a
member has a bio the Read full profile button with id pattern
tsc-read-profile-{index} is present (and absent when no bio); use queries by
role/text/id and assert className contains the class tokens rather than exact
string to avoid brittle spacing differences.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bcaf5e20-628a-45f3-9036-e6e78a47bc21

📥 Commits

Reviewing files that changed from the base of the PR and between 977bd34 and ca7a7a0.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • src/app/tsc/page.tsx

@aashu2006
Copy link
Copy Markdown
Contributor Author

Hi @exploreriii, I’ve done the alignment fix using flex column pattern as suggested.

One thing I noticed that the "Read full profile" button now like stretches to full width due to the flex layout, should we keep it this way, or match the previous compact button style?

Happy to adjust based on your preference.

@aceppaluni
Copy link
Copy Markdown
Contributor

Hi @exploreriii, I’ve done the alignment fix using flex column pattern as suggested.

One thing I noticed that the "Read full profile" button now like stretches to full width due to the flex layout, should we keep it this way, or match the previous compact button style?

Happy to adjust based on your preference.

Hi @aashu2006,

What do you think of centering the text?

@aashu2006
Copy link
Copy Markdown
Contributor Author

@aceppaluni That sounds good to me 👍
Centering the text would make the full-width button look more balanced. I can update it accordingly.

@aceppaluni
Copy link
Copy Markdown
Contributor

@aashu2006 Sounds good, will keep an eye out for your update. Thank you!

Signed-off-by: aashu2006 <akshatp439@gmail.com>
@aashu2006
Copy link
Copy Markdown
Contributor Author

@aceppaluni updated!

Copy link
Copy Markdown
Contributor

@aceppaluni aceppaluni left a comment

Choose a reason for hiding this comment

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

@aashu2006 Great work!!

@aceppaluni aceppaluni merged commit 08b4b9f into hiero-ledger:main Apr 13, 2026
15 checks passed
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.

[Intermediate]: Align profile section in the TSC

3 participants