Skip to content

Show derived session posts as cards#91

Merged
dekanbro merged 1 commit into
stagingfrom
feat/session-derived-post-cards
Jun 10, 2026
Merged

Show derived session posts as cards#91
dekanbro merged 1 commit into
stagingfrom
feat/session-derived-post-cards

Conversation

@dekanbro

@dekanbro dekanbro commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • UI Improvements
    • Enhanced the display of related posts on session detail pages with an improved card-based layout for better organization and readability.

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 617cbd56-d7ba-49b5-bb24-17b3616fc4bd

📥 Commits

Reviewing files that changed from the base of the PR and between 74438e9 and bc536f2.

📒 Files selected for processing (1)
  • src/app/(frontend)/events/[id]/page.tsx

📝 Walkthrough

Walkthrough

Event detail page imports the Card component and refactors the "Derived Posts" section to display posts using individual cards within an updated grid/container layout instead of link-based list markup. Card props specify post relation targeting and disable category display.

Changes

Event Detail Post Rendering

Layer / File(s) Summary
Post display with Card component
src/app/(frontend)/events/[id]/page.tsx
Card component is imported and used in the "Derived Posts" section to render grouped posts with updated layout structure, relationTo="posts", and showCategories={false} configuration.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

A rabbit hops through posts so bright,
Each card now gleams in grid delight,
No links today, just cards so neat,
Events display, the change complete! 🐰✨

🚥 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
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and clearly describes the main change: displaying derived session posts as cards instead of links.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/session-derived-post-cards

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

src/app/(frontend)/events/[id]/page.tsx

Oops! Something went wrong! :(

ESLint: 9.39.3

TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'configs' -> object with constructor 'Object'
| property 'flat' -> object with constructor 'Object'
| ...
| property 'plugins' -> object with constructor 'Object'
--- property 'react' closes the circle
Referenced from: /.eslintrc.cjs
at JSON.stringify ()
at /node_modules/.pnpm/@eslint+eslintrc@3.3.3/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2255:45
at Array.map ()
at ConfigValidator.formatErrors (/node_modules/.pnpm/@eslint+eslintrc@3.3.3/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2246:23)
at ConfigValidator.validateConfigSchema (/node_modules/.pnpm/@eslint+eslintrc@3.3.3/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2277:84)
at ConfigArrayFactory._normalizeConfigData (/node_modules/.pnpm/@eslint+eslintrc@3.3.3/node_modules/@eslint/e

... [truncated 445 characters] ...

c/dist/eslintrc.cjs:3261:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/.pnpm/@eslint+eslintrc@3.3.3/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3199:25)
(node:2) ESLintRCWarning: You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.
(Use node --trace-warnings ... to show where the warning was created)


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.

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the session detail page’s “Derived Posts” section to render related posts using the shared Card component, improving visual consistency with other post listings across the portal.

Changes:

  • Replaced the derived post title links with Card components for each derived post.
  • Adjusted the layout grids to display derived posts in a responsive card grid per content type group.

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

@dekanbro
dekanbro merged commit 5fd7d7c into staging Jun 10, 2026
2 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.

2 participants