from django.urls import path

from apps.billboard import views

app_name = "billboard"

urlpatterns = [
    path("", views.billboard, name="billboard"),
    path("toggle-applets", views.toggle_billboard_applets, name="toggle_applets"),
    path("my-notes/", views.my_notes, name="my_notes"),
    path("note/<slug:slug>/set-palette", views.note_set_palette, name="note_set_palette"),
    path("note/<slug:slug>/don", views.don_title, name="don_title"),
    path("note/<slug:slug>/doff", views.doff_title, name="doff_title"),
    path("room/<uuid:room_id>/scroll/", views.scroll, name="scroll"),
    path("room/<uuid:room_id>/scroll-position/", views.save_scroll_position, name="save_scroll_position"),
    # Post/Line CRUD (relocated from apps.dashboard.urls)
    path("new-post", views.new_post, name="new_post"),
    path("post/<uuid:post_id>/", views.view_post, name="view_post"),
    path("post/<uuid:post_id>/share-post", views.share_post, name="share_post"),
    path("post/<uuid:post_id>/delete", views.delete_post, name="delete_post"),
    path("post/<uuid:post_id>/abandon", views.abandon_post, name="abandon_post"),
    path("users/<uuid:user_id>/", views.my_posts, name="my_posts"),
    path("my-buds/", views.my_buds, name="my_buds"),
    path("buds/add", views.add_bud, name="add_bud"),
    path("buds/search", views.search_buds, name="search_buds"),
    path("buds/<uuid:bud_id>/", views.bud_page, name="bud_page"),
    path("buds/<uuid:bud_id>/shoptalk", views.save_bud_shoptalk, name="save_bud_shoptalk"),
    path("buds/<uuid:bud_id>/delete", views.delete_bud, name="delete_bud"),
    path("my-sign/", views.my_sign, name="my_sign"),
    path("my-sign/save", views.save_sign, name="save_sign"),
    path("my-sign/clear", views.clear_sign, name="clear_sign"),
]
