SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
12 stars 1 forks source link

feat(demo): lists page state management #128

Closed jboix closed 9 months ago

jboix commented 9 months ago

Description

Closes #109

Query parameters have been added to the URL whenever a section is opened on the lists page, making it navigable through the browser history stack. Examples of decoded urls :

/lists?section=tv-topics&bu=rts&nodes=urn:rts:topic:tv:665
/lists?section=radio-shows&bu=rts&nodes=a9e7621504c6959e35c3ecbe7f6bed0446cdf8da,urn:rts:show:radio:9801398

Changes made

Refactor the state management of the lists page to introduce the ListsPageStateManager class. This class facilitates navigation and retrieval of section data.

github-actions[bot] commented 9 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.37% 482/490
🟒 Branches 93.44% 228/244
🟒 Functions 100% 136/136
🟒 Lines 99.15% 465/469

Test suite run success

145 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from 5fe549555d74f2d2bbd37213b632b627136f568a