Commit b35b754
Implement Electronic Program Guide from ATSC PSIP Data (#228)
* Initial plan
* feat: Implement EPG core components and utilities
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* feat: Integrate EPG with ATSCPlayer page
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* docs: Add EPG implementation documentation
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* style: Fix markdown formatting in EPG README
* fix: Address PR review comments
- Use slotDurationMinutes parameter consistently in ProgramGrid
- Fix channel number matching logic to use exact formatted channel number
- Remove unused channels dependency from useMemo hooks
- Fix grid column calculation to use Math.ceil for better positioning
- Implement basic US TV rating parsing from Content Advisory Descriptor
- Fix SCSU mode handling to return empty string instead of attempting UTF-8
- Fix test expectations to match actual decoded output
- Update test query to match exact aria-label
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* fix: Address remaining PR review comments
- Convert EPGStorage from static class to namespace pattern
- Fix handleTuneFromEPG callback signature to accept both channelNumber and startTime parameters
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* fix: Address additional PR review feedback
- Cache GPS epoch constant for efficiency (avoid creating Date on every call)
- Fix fallback behavior for unknown text modes to return empty string instead of attempting UTF-8
- Fix useEffect dependency array to avoid unnecessary re-renders
- Add documentation for rating parsing limitation (only primary age-based rating)
- Fix inconsistent startTime parameter for past programs (use program.startTime instead of new Date())
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* fix: Address performance and UX issues from PR review
- Update currentPrograms periodically (every 30s) to show live updates
- Add channels as dependency for allGenres and searchResults memos
- Memoize gridEndTime and timeSlots calculations to avoid re-creating on every render
- Replace alert() calls with console.info() for better UX
- Add aria-hidden to close button symbol for better accessibility
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* fix: Improve accessibility with aria-hidden on decorative elements
- Add aria-hidden="true" to current time marker (visual indicator only)
- Add aria-hidden="true" to channel header spacer (layout element)
- Add aria-hidden="true" to HD badge and live indicator (duplicate info in aria-label)
- Add aria-hidden="true" to clear search button symbol
- Include loadEPGData in useEffect dependency array per React best practices
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
* fix: Resolve TypeScript type checking issues
- Remove unused ExtendedTextTable import from test file
- Add proper undefined checks for Uint8Array access in parseContentAdvisoryDescriptor
- Replace non-null assertions with explicit undefined checks to satisfy linter rules
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexthemitchell <5687158+alexthemitchell@users.noreply.github.com>1 parent d8edd1c commit b35b754
File tree
17 files changed
+3445
-42
lines changed- src
- components/EPG
- __tests__
- hooks
- pages
- utils
- __tests__
17 files changed
+3445
-42
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments