Skip to content

refactor(summit): drop unused year props from session cards [INTORG-1127] - #915

Merged
Anca2022 merged 1 commit into
stagingfrom
jm/intorg-1127-cleanup-props-summit
Nov 25, 2026
Merged

Anca2022 merged 1 commit into
stagingfrom
jm/intorg-1127-cleanup-props-summit

Conversation

@JonathanMatthey

Copy link
Copy Markdown
Collaborator

Summary

SessionCard and SessionsList still declared a year prop they never read, and their parents still passed it. The speaker cards already stopped doing this. The pages that need the year keep it: the talks list uses it for the pagination label, and the speaker page uses it to load talks and build their links.

Related Issue

Fixes INTORG-1127

Manual Test

Open a summit talks list and a speaker page that has sessions. The cards and the session list should look the same as before.

Checks

  • pnpm run format (Prettier on the four changed files)
  • pnpm run lint (ESLint on the four changed files)

PR Checklist

  • PR title follows Conventional Commits (e.g. feat: ..., fix: ...)
  • Linked issue included
  • Scope is focused (target ~10-20 files when possible)
  • Screenshots for UI changes (if applicable)

…127]

SessionCard and SessionsList declared year and their parents passed it, but neither component read the prop. The pages that need the year still keep it.
Copilot AI balanced review requested due to automatic review settings November 24, 2026 18:48
@netlify

netlify Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for interledger-org-v5 ready!

Name Link
🔨 Latest commit 25ca2c3
🔍 Latest deploy log https://app.netlify.com/projects/interledger-org-v5/deploys/6b05dc1e972f08c032f4bdad
😎 Deploy Preview https://deploy-preview-915--interledger-org-v5.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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified for the unused year prop cleanup.

No open issues 🎉

What changed in this PR

Removes unused year props from summit session components and their callers, while preserving page-level year handling for pagination labels, session loading, and links.

Changes:

  • Removes year from the SessionCard and SessionsList prop interfaces.
  • Stops passing year from their parent pages, with no intended rendering changes.
File Description
src/​components/​summit/​SessionsList.astro Removes the unused year prop declaration.
src/​components/​summit/​SessionCard.astro Removes the unused year prop declaration.
src/​components/​pages/​SpeakerDetailPage.astro Stops passing year to SessionsList.
src/​components/​pages/​SessionsListPage.astro Stops passing year to SessionCard.

Review effort: Balanced

@JonathanMatthey JonathanMatthey self-assigned this Nov 25, 2026

@Anca2022 Anca2022 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, thanks @JonathanMatthey 😁

@Anca2022
Anca2022 merged commit bfb3f67 into staging Nov 25, 2026
11 checks passed
@Anca2022
Anca2022 deleted the jm/intorg-1127-cleanup-props-summit branch November 25, 2026 13:09
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.

3 participants