Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Conversation

Copy link
Contributor

Copilot AI commented Jan 7, 2026

The episodes and podcasts views had grown into monolithic files mixing distinct concerns (bookmarks, history, player controls, subscriptions, private feeds). This reorganizes them into focused modules aligned with feature boundaries.

Episodes Split

  • bookmarks - bookmarks(), add_bookmark(), remove_bookmark()
  • history - history(), mark_complete(), remove_audio_log()
  • player - start_player(), close_player(), player_time_update()
  • episodes (core) - index(), episode_detail(), search_episodes()

Podcasts Split

  • subscriptions - subscriptions(), subscribe(), unsubscribe()
  • private_feeds - private_feeds(), add_private_feed(), remove_private_feed()
  • podcasts (core) - discover(), podcast_detail(), latest_episode(), episodes(), season(), similar(), search views, category views

Structure

Each module consists of:

  • simplecasts/views/{module}.py - view functions
  • simplecasts/urls/{module}.py - URL patterns with dedicated app_name namespace
  • simplecasts/tests/views/test_{module}.py - test classes

Example URL namespace change:

# Before: episodes:bookmarks, episodes:add_bookmark
# After:  bookmarks:bookmarks, bookmarks:add_bookmark

All URL patterns and view signatures remain unchanged for backward compatibility.

Files changed: 22 files (7 views, 7 URLs, 7 tests, 1 main URL config)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: /usr/bin/curl curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Reorganize episodes and podcasts views</issue_title>
<issue_description>1. Episodes:

  • views/bookmarks.py + urls/bookmarks.py
  • views/history.py + urls/history.py
  • views/player.py + urls/player.py
  • views/episodes.py
  1. Podcasts:
  • views/subscriptions.py + urls
  • views/private_feeds.py + urls
  • views/podcasts.py

bookmarks:

bookmarks, add/remove bookmark

history:

history, remove_audio_log, mark complete

player:

start player, close player, player time update

episodes:

all other views currently in episodes.py

subscriptions:

subscriptions, unsubscribe, subscribe

private feeds:

private feeds, add private feed,remove private feed

podcasts:

all other views currently in podcasts.py

Tests:

Break up tests/views/test_episodes.py and tests/views/test_podcasts.py to follow same pattern as above e.g. test_bookmarks.py</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

danjac and others added 30 commits January 6, 2026 14:50
Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
…y to cookie_banner.py (#360)

* Initial plan

* Move title_tag and meta_tags from page_layout.py to head_tags.py

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Rename page_layout.py to cookie_banner.py and update all template references

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* fix: precommit fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
* Initial plan

* Rename audio_player.py to player.py and update all references

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* fix: precommit fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
…on (#364)

* Initial plan

* Create merged templatetags.py and update all template files

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Remove old templatetags directory and update imports

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Add templatetags to TEMPLATES builtins and remove load statements

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Remove section separator comments from templatetags.py

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* fix: precommit fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
* Initial plan

* Move search functions and update all URL references

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Remove moved functions from views/search.py and urls/search.py

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Update search_people.html to use new podcast search URL

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
* Initial plan

* Merge all middleware modules into single middleware.py file

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Delete old middleware directory

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Fix import in test_templatetags.py for middleware module

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac@users.noreply.github.com>
* Initial plan

* Move search_people view to views/podcasts and update all references

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* fix: test fixes

* fix: test fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
* Initial plan

* Merge views and URLs for history and bookmarks into episodes

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* fix: test fixes

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot AI and others added 10 commits January 7, 2026 13:08
* Initial plan

* Merge test_history.py and test_bookmarks.py into test_episodes.py

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Fix duplicate assertion and pytest marker syntax

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
* Initial plan

* Merge player views, URLs, and tests into episodes module

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Remove old player module files

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Update templatetags import to use episodes module

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Resolve merge conflict in test_episodes.py

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Merge main branch into player merge branch

Properly merge the main branch which consolidated episode-related tests into test_episodes.py. This resolves the merge conflict by combining all test classes from both branches.

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Fix pytest marker syntax error in test_episodes.py

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* fix: test fixes

* refactor: tidy up views

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
* Initial plan

* Merge subscriptions into podcasts module

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Move private function to end of module

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* refactor: tidy up views

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: Dan Jacob <danjac2018@gmail.com>
* Initial plan

* Move private feeds functionality to podcasts module

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

* Delete old private_feeds files

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
* Initial plan

* Merge categories functionality into podcasts module

- Merged views from views/categories.py into views/podcasts.py
- Merged URLs from urls/categories.py into urls/podcasts.py
- Updated URL references (categories:index -> podcasts:categories, categories:detail -> podcasts:category_detail)
- Updated Category model's get_absolute_url method
- Merged tests from test_categories.py into test_podcasts.py
- Moved templates to podcasts directory
- Removed old categories files and references

Co-authored-by: danjac <249779+danjac@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Copilot AI and others added 2 commits January 7, 2026 15:08
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Co-authored-by: danjac <249779+danjac@users.noreply.github.com>
Copilot AI changed the title [WIP] Reorganize episodes and podcasts views for better structure Reorganize episodes and podcasts views into focused modules Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorganize episodes and podcasts views

2 participants