-
Notifications
You must be signed in to change notification settings - Fork 0
Add stream date column to episode list view #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@saebyn 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you fix the biome format errors?
Co-authored-by: saebyn <185030+saebyn@users.noreply.github.com>
@copilot can you fix the build failure? |
Co-authored-by: saebyn <185030+saebyn@users.noreply.github.com>
Fixed the biome format errors in commit 4dfbe5e. The formatting issues in src/api.ts, src/ra/authProvider.ts, and src/resources/episodes/List.tsx have been resolved and the biome:ci check now passes.
Fixed the build failure in commit 4dfbe5e. The build now completes successfully with exit code 0. The issue was related to biome formatting errors which have been resolved. |
There was a problem hiding this comment.
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 enhances the episode list view by adding a "Stream Date" column that displays the original stream date for each episode, improving content visibility without requiring navigation to detail pages. Additionally, it implements mock authentication support for local development.
- Added a "Stream Date" column to the episode list using React Admin's ReferenceField and DateField components
- Enhanced auth provider and API layer to support mock authentication when
VITE_MOCKS_ENABLED=true
- Positioned the new column between "Series" and "Order index" for logical information flow
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/resources/episodes/List.tsx | Added DateField import and new ReferenceField column to display stream dates |
src/ra/authProvider.ts | Added mock user support for checkAuth and getIdentity methods when mocks enabled |
src/api.ts | Enhanced authenticatedFetch to handle mock scenarios with mock token headers |
This PR adds a new "Stream Date" column to the episode list view that displays the date of the source stream for each episode.
Changes Made
Episode List Enhancement
DateField
import to support proper date formattingReferenceField
column that references thestreams
resource viastream_id
stream_date
field from the related stream with a clear "Stream Date" labelDevelopment Support
VITE_MOCKS_ENABLED=true
Implementation Details
The solution leverages React Admin's built-in relationship handling:
ReferenceField
creates a clickable link to the stream detail viewDateField
ensures proper date formatting and localizationVisual Impact
The episode list now shows stream dates (e.g., "8/9/2025") in a dedicated column, making it easy for users to see when the source content was originally streamed without having to navigate to individual episode or stream detail pages.
Fixes #93.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.