Repository navigation
refactor(summit): drop unused year props from session cards [INTORG-1127] - #915
Merged
Merged
Conversation
…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.
✅ Deploy Preview for interledger-org-v5 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
🟢 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
yearfrom theSessionCardandSessionsListprop interfaces. - Stops passing
yearfrom 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
Anca2022
approved these changes
Nov 25, 2026
Anca2022
left a comment
Contributor
There was a problem hiding this comment.
lgtm, thanks @JonathanMatthey 😁
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SessionCardandSessionsListstill declared ayearprop 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
feat: ...,fix: ...)