881e1d07fc
* main: (27 commits) Leave some space for the tray Let's not assume it's a due date Avoid overlap Let's try without the big drag button, extend beyond the column a touch Tighten labels Match notification dot Spacing Add more context Avoid leaving the tray open This shouldn't be here Paginate the read notifications Add a test case Split up a big view Allow filtering by stage Send beacon request on disconnect as well Wire up notifications "Mark all as read" button Add unread dot Set state for when there are no new notifications Move to right side, smooth transition Open tray on click, stub mark-as-read button ...
79 lines
1.7 KiB
Ruby
79 lines
1.7 KiB
Ruby
Rails.application.routes.draw do
|
|
root "buckets#index"
|
|
|
|
resource :account do
|
|
scope module: :accounts do
|
|
resource :join_code
|
|
resources :users
|
|
end
|
|
end
|
|
|
|
resolve "Bubble" do |bubble, options|
|
|
route_for :bucket_bubble, bubble.bucket, bubble, options
|
|
end
|
|
|
|
resolve "Comment" do |comment, options|
|
|
options[:anchor] = ActionView::RecordIdentifier.dom_id(comment)
|
|
route_for :bucket_bubble, comment.bubble.bucket, comment.bubble, options
|
|
end
|
|
|
|
resources :bubbles
|
|
resources :notifications, only: :index
|
|
namespace :notifications do
|
|
resource :tray, only: :show
|
|
resource :mark_all_read, only: :create
|
|
end
|
|
|
|
resources :buckets do
|
|
resources :bubbles do
|
|
resources :boosts
|
|
resources :comments
|
|
resource :readings, only: :create
|
|
|
|
scope module: :bubbles do
|
|
resource :image
|
|
resource :pop
|
|
resource :publish
|
|
resource :stage_picker
|
|
resources :stagings
|
|
end
|
|
|
|
namespace :assignments, as: :assignment do
|
|
resources :toggles
|
|
end
|
|
|
|
namespace :taggings, as: :tagging do
|
|
resources :toggles
|
|
end
|
|
end
|
|
end
|
|
|
|
resources :events
|
|
resources :filters
|
|
resource :first_run
|
|
resources :qr_codes
|
|
|
|
resource :session do
|
|
scope module: "sessions" do
|
|
resources :transfers, only: %i[ show update ]
|
|
end
|
|
end
|
|
|
|
resources :uploads, only: :create
|
|
get "/u/*slug" => "uploads#show", as: :upload
|
|
|
|
resources :users do
|
|
scope module: :users do
|
|
resource :avatar
|
|
end
|
|
end
|
|
|
|
resources :workflows do
|
|
resources :stages, module: :workflows
|
|
end
|
|
|
|
get "join/:join_code", to: "users#new", as: :join
|
|
post "join/:join_code", to: "users#create"
|
|
get "up", to: "rails/health#show", as: :rails_health_check
|
|
end
|