From 39ec6cf062a7e859a653f25129784db19e42c4df Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Wed, 5 Nov 2025 13:39:58 +0100 Subject: [PATCH] Replace collection with board in the code, tests green --- .../{collection-add.svg => board-add.svg} | 0 .../images/{collection.svg => board.svg} | 0 .../columns/closeds_controller.rb | 0 .../columns/not_nows_controller.rb | 0 .../columns/streams_controller.rb | 0 .../columns_controller.rb | 0 .../entropies_controller.rb | 0 .../involvements_controller.rb | 0 .../publications_controller.rb | 0 ...ons_controller.rb => boards_controller.rb} | 0 ...ons_controller.rb => boards_controller.rb} | 0 .../{collection_scoped.rb => board_scoped.rb} | 0 .../users_controller.rb | 0 .../columns/closeds_controller.rb | 0 .../columns/not_nows_controller.rb | 0 .../columns/streams_controller.rb | 0 .../columns_controller.rb | 0 ...ons_controller.rb => boards_controller.rb} | 0 app/helpers/accesses_helper.rb | 2 +- ...collections_helper.rb => boards_helper.rb} | 0 ...ontroller.js => boards_form_controller.js} | 0 .../clean_inaccessible_data_job.rb | 0 app/models/{collection.rb => board.rb} | 0 .../{collection => board}/accessible.rb | 0 .../{collection => board}/auto_closing.rb | 0 .../{collection => board}/broadcastable.rb | 0 app/models/{collection => board}/cards.rb | 0 app/models/{collection => board}/entropic.rb | 0 .../{collection => board}/publication.rb | 0 .../{collection => board}/publishable.rb | 0 .../{collection => board}/triageable.rb | 0 app/views/account/settings/_users.html.erb | 2 +- .../_access_toggle.erb | 0 .../_board.json.jbuilder} | 0 .../columns/_list.html.erb | 0 .../columns/closeds/show.html.erb | 0 .../columns/create.turbo_stream.erb | 0 .../columns/destroy.turbo_stream.erb | 0 .../columns/not_nows/show.html.erb | 0 .../columns/show.html.erb | 0 .../columns/streams/show.html.erb | 0 .../columns/update.turbo_stream.erb | 0 .../{collections => boards}/edit.html.erb | 0 .../edit/_auto_close.html.erb | 0 .../edit/_delete.html.erb | 0 .../edit/_knob.html.erb | 0 .../edit/_name.html.erb | 0 .../edit/_publication.html.erb | 0 .../edit/_users.html.erb | 0 .../entropies/update.turbo_stream.erb | 2 +- .../involvements/update.html.erb | 0 .../{collections => boards}/new.html.erb | 0 .../publications/create.turbo_stream.erb | 2 +- .../publications/destroy.turbo_stream.erb | 2 +- .../{collections => boards}/show.html.erb | 0 .../show/_closed.html.erb | 0 .../show/_column.html.erb | 0 .../show/_columns.html.erb | 2 +- .../show/_expander.html.erb | 0 .../show/_filtered_cards.html.erb | 0 .../show/_not_now.html.erb | 0 .../show/_stream.html.erb | 0 .../show/menu/_column.html.erb | 0 .../show/menu/_column_form.html.erb | 0 .../show/menu/_columns.html.erb | 0 .../show/menu/_expand.html.erb | 0 app/views/cards/_messages.html.erb | 2 +- .../{collections => boards}/edit.html.erb | 0 .../comments/reactions/_reactions.html.erb | 2 +- app/views/cards/display/_previews.html.erb | 2 +- .../cards/display/_public_previews.html.erb | 2 +- .../{_collection.html.erb => _board.html.erb} | 0 .../{_collection.html.erb => _board.html.erb} | 0 app/views/cards/display/perma/_steps.html.erb | 2 +- .../{_collection.html.erb => _board.html.erb} | 0 .../cards/previews/index.turbo_stream.erb | 2 +- .../drops/closures/create.turbo_stream.erb | 2 +- .../drops/not_nows/create.turbo_stream.erb | 2 +- .../drops/streams/create.turbo_stream.erb | 2 +- app/views/events/_day_timeline.html.erb | 2 +- .../events/day_timeline/_column.html.erb | 2 +- app/views/events/event/_attachments.html.erb | 6 +- ..._collections.html.erb => _boards.html.erb} | 0 .../bundle_mailer/notification.html.erb | 2 +- .../bundle_mailer/notification.text.erb | 2 +- ..._collections.html.erb => _boards.html.erb} | 2 +- app/views/my/menus/_saved_filter.html.erb | 2 +- app/views/my/menus/_tags.html.erb | 2 +- app/views/my/menus/_users.html.erb | 2 +- .../_board.html.erb} | 0 app/views/my/pins/index.html.erb | 2 +- app/views/notifications/index.html.erb | 4 +- .../notifications/index.turbo_stream.erb | 2 +- .../{_collection.html.erb => _board.html.erb} | 0 .../notifications/settings/show.html.erb | 2 +- app/views/notifications/trays/show.html.erb | 2 +- .../users/_user.html.erb | 0 app/views/prompts/boards/users/index.html.erb | 1 + app/views/prompts/cards/index.html.erb | 2 +- .../prompts/collections/users/index.html.erb | 1 - app/views/prompts/commands/index.html.erb | 2 +- app/views/prompts/tags/index.html.erb | 2 +- app/views/prompts/users/index.html.erb | 2 +- .../card_previews/index.turbo_stream.erb | 0 .../columns/_list.html.erb | 0 .../columns/closeds/show.html.erb | 0 .../columns/not_nows/show.html.erb | 0 .../columns/show.html.erb | 0 .../columns/streams/show.html.erb | 0 .../{collections => boards}/show.html.erb | 0 .../show/_closed.html.erb | 0 .../show/_column.html.erb | 0 .../show/_columns.html.erb | 2 +- .../show/_considering.html.erb | 0 .../show/_doing.html.erb | 0 .../show/_not_now.html.erb | 0 .../show/_on_deck.html.erb | 2 +- .../show/_stream.html.erb | 0 app/views/searches/_results.html.erb | 2 +- app/views/webhooks/form/_actions.html.erb | 2 +- app/views/webhooks/index.html.erb | 2 +- app/views/webhooks/show.html.erb | 2 +- ...251105122933_rename_collection_to_board.rb | 21 ++ db/schema.rb | 86 ++--- db/schema_cache.yml | 356 +++++++++--------- rename.sh | 31 ++ ...collections_ids.rb => reset_boards_ids.rb} | 0 .../columns/closeds_controller_test.rb | 0 .../columns/not_nows_controller_test.rb | 0 .../columns/streams_controller_test.rb | 0 .../columns_controller_test.rb | 0 .../entropies_controller_test.rb | 0 .../involvements_controller_test.rb | 0 .../publications_controller_test.rb | 0 ...ller_test.rb => boards_controller_test.rb} | 0 ...ller_test.rb => boards_controller_test.rb} | 0 .../users_controller_test.rb | 0 .../columns/closeds_controller_test.rb | 0 .../columns/not_nows_controller_test.rb | 0 .../columns/streams_controller_test.rb | 0 .../columns_controller_test.rb | 0 ...ller_test.rb => boards_controller_test.rb} | 0 test/fixtures/{collections.yml => boards.yml} | 0 .../{collection => board}/accessible_test.rb | 0 .../{collection => board}/cards_test.rb | 0 .../{collection => board}/publishable_test.rb | 0 146 files changed, 316 insertions(+), 264 deletions(-) rename app/assets/images/{collection-add.svg => board-add.svg} (100%) rename app/assets/images/{collection.svg => board.svg} (100%) rename app/controllers/{collections => boards}/columns/closeds_controller.rb (100%) rename app/controllers/{collections => boards}/columns/not_nows_controller.rb (100%) rename app/controllers/{collections => boards}/columns/streams_controller.rb (100%) rename app/controllers/{collections => boards}/columns_controller.rb (100%) rename app/controllers/{collections => boards}/entropies_controller.rb (100%) rename app/controllers/{collections => boards}/involvements_controller.rb (100%) rename app/controllers/{collections => boards}/publications_controller.rb (100%) rename app/controllers/{collections_controller.rb => boards_controller.rb} (100%) rename app/controllers/cards/{collections_controller.rb => boards_controller.rb} (100%) rename app/controllers/concerns/{collection_scoped.rb => board_scoped.rb} (100%) rename app/controllers/prompts/{collections => boards}/users_controller.rb (100%) rename app/controllers/public/{collections => boards}/columns/closeds_controller.rb (100%) rename app/controllers/public/{collections => boards}/columns/not_nows_controller.rb (100%) rename app/controllers/public/{collections => boards}/columns/streams_controller.rb (100%) rename app/controllers/public/{collections => boards}/columns_controller.rb (100%) rename app/controllers/public/{collections_controller.rb => boards_controller.rb} (100%) rename app/helpers/{collections_helper.rb => boards_helper.rb} (100%) rename app/javascript/controllers/{collections_form_controller.js => boards_form_controller.js} (100%) rename app/jobs/{collection => board}/clean_inaccessible_data_job.rb (100%) rename app/models/{collection.rb => board.rb} (100%) rename app/models/{collection => board}/accessible.rb (100%) rename app/models/{collection => board}/auto_closing.rb (100%) rename app/models/{collection => board}/broadcastable.rb (100%) rename app/models/{collection => board}/cards.rb (100%) rename app/models/{collection => board}/entropic.rb (100%) rename app/models/{collection => board}/publication.rb (100%) rename app/models/{collection => board}/publishable.rb (100%) rename app/models/{collection => board}/triageable.rb (100%) rename app/views/{collections => boards}/_access_toggle.erb (100%) rename app/views/{collections/_collection.json.jbuilder => boards/_board.json.jbuilder} (100%) rename app/views/{collections => boards}/columns/_list.html.erb (100%) rename app/views/{collections => boards}/columns/closeds/show.html.erb (100%) rename app/views/{collections => boards}/columns/create.turbo_stream.erb (100%) rename app/views/{collections => boards}/columns/destroy.turbo_stream.erb (100%) rename app/views/{collections => boards}/columns/not_nows/show.html.erb (100%) rename app/views/{collections => boards}/columns/show.html.erb (100%) rename app/views/{collections => boards}/columns/streams/show.html.erb (100%) rename app/views/{collections => boards}/columns/update.turbo_stream.erb (100%) rename app/views/{collections => boards}/edit.html.erb (100%) rename app/views/{collections => boards}/edit/_auto_close.html.erb (100%) rename app/views/{collections => boards}/edit/_delete.html.erb (100%) rename app/views/{collections => boards}/edit/_knob.html.erb (100%) rename app/views/{collections => boards}/edit/_name.html.erb (100%) rename app/views/{collections => boards}/edit/_publication.html.erb (100%) rename app/views/{collections => boards}/edit/_users.html.erb (100%) rename app/views/{collections => boards}/entropies/update.turbo_stream.erb (69%) rename app/views/{collections => boards}/involvements/update.html.erb (100%) rename app/views/{collections => boards}/new.html.erb (100%) rename app/views/{collections => boards}/publications/create.turbo_stream.erb (66%) rename app/views/{collections => boards}/publications/destroy.turbo_stream.erb (66%) rename app/views/{collections => boards}/show.html.erb (100%) rename app/views/{collections => boards}/show/_closed.html.erb (100%) rename app/views/{collections => boards}/show/_column.html.erb (100%) rename app/views/{collections => boards}/show/_columns.html.erb (87%) rename app/views/{collections => boards}/show/_expander.html.erb (100%) rename app/views/{collections => boards}/show/_filtered_cards.html.erb (100%) rename app/views/{collections => boards}/show/_not_now.html.erb (100%) rename app/views/{collections => boards}/show/_stream.html.erb (100%) rename app/views/{collections => boards}/show/menu/_column.html.erb (100%) rename app/views/{collections => boards}/show/menu/_column_form.html.erb (100%) rename app/views/{collections => boards}/show/menu/_columns.html.erb (100%) rename app/views/{collections => boards}/show/menu/_expand.html.erb (100%) rename app/views/cards/{collections => boards}/edit.html.erb (100%) rename app/views/cards/display/common/{_collection.html.erb => _board.html.erb} (100%) rename app/views/cards/display/perma/{_collection.html.erb => _board.html.erb} (100%) rename app/views/cards/display/preview/{_collection.html.erb => _board.html.erb} (100%) rename app/views/filters/settings/{_collections.html.erb => _boards.html.erb} (100%) rename app/views/my/menus/{_collections.html.erb => _boards.html.erb} (83%) rename app/views/my/menus/{collections/_collection.html.erb => boards/_board.html.erb} (100%) rename app/views/notifications/settings/{_collection.html.erb => _board.html.erb} (100%) rename app/views/prompts/{collections => boards}/users/_user.html.erb (100%) create mode 100644 app/views/prompts/boards/users/index.html.erb delete mode 100644 app/views/prompts/collections/users/index.html.erb rename app/views/public/{collections => boards}/card_previews/index.turbo_stream.erb (100%) rename app/views/public/{collections => boards}/columns/_list.html.erb (100%) rename app/views/public/{collections => boards}/columns/closeds/show.html.erb (100%) rename app/views/public/{collections => boards}/columns/not_nows/show.html.erb (100%) rename app/views/public/{collections => boards}/columns/show.html.erb (100%) rename app/views/public/{collections => boards}/columns/streams/show.html.erb (100%) rename app/views/public/{collections => boards}/show.html.erb (100%) rename app/views/public/{collections => boards}/show/_closed.html.erb (100%) rename app/views/public/{collections => boards}/show/_column.html.erb (100%) rename app/views/public/{collections => boards}/show/_columns.html.erb (85%) rename app/views/public/{collections => boards}/show/_considering.html.erb (100%) rename app/views/public/{collections => boards}/show/_doing.html.erb (100%) rename app/views/public/{collections => boards}/show/_not_now.html.erb (100%) rename app/views/public/{collections => boards}/show/_on_deck.html.erb (78%) rename app/views/public/{collections => boards}/show/_stream.html.erb (100%) create mode 100644 db/migrate/20251105122933_rename_collection_to_board.rb create mode 100755 rename.sh rename script/migrations/{reset_collections_ids.rb => reset_boards_ids.rb} (100%) rename test/controllers/{collections => boards}/columns/closeds_controller_test.rb (100%) rename test/controllers/{collections => boards}/columns/not_nows_controller_test.rb (100%) rename test/controllers/{collections => boards}/columns/streams_controller_test.rb (100%) rename test/controllers/{collections => boards}/columns_controller_test.rb (100%) rename test/controllers/{collections => boards}/entropies_controller_test.rb (100%) rename test/controllers/{collections => boards}/involvements_controller_test.rb (100%) rename test/controllers/{collections => boards}/publications_controller_test.rb (100%) rename test/controllers/{collections_controller_test.rb => boards_controller_test.rb} (100%) rename test/controllers/cards/{collections_controller_test.rb => boards_controller_test.rb} (100%) rename test/controllers/prompts/{collections => boards}/users_controller_test.rb (100%) rename test/controllers/public/{collections => boards}/columns/closeds_controller_test.rb (100%) rename test/controllers/public/{collections => boards}/columns/not_nows_controller_test.rb (100%) rename test/controllers/public/{collections => boards}/columns/streams_controller_test.rb (100%) rename test/controllers/public/{collections => boards}/columns_controller_test.rb (100%) rename test/controllers/public/{collections_controller_test.rb => boards_controller_test.rb} (100%) rename test/fixtures/{collections.yml => boards.yml} (100%) rename test/models/{collection => board}/accessible_test.rb (100%) rename test/models/{collection => board}/cards_test.rb (100%) rename test/models/{collection => board}/publishable_test.rb (100%) diff --git a/app/assets/images/collection-add.svg b/app/assets/images/board-add.svg similarity index 100% rename from app/assets/images/collection-add.svg rename to app/assets/images/board-add.svg diff --git a/app/assets/images/collection.svg b/app/assets/images/board.svg similarity index 100% rename from app/assets/images/collection.svg rename to app/assets/images/board.svg diff --git a/app/controllers/collections/columns/closeds_controller.rb b/app/controllers/boards/columns/closeds_controller.rb similarity index 100% rename from app/controllers/collections/columns/closeds_controller.rb rename to app/controllers/boards/columns/closeds_controller.rb diff --git a/app/controllers/collections/columns/not_nows_controller.rb b/app/controllers/boards/columns/not_nows_controller.rb similarity index 100% rename from app/controllers/collections/columns/not_nows_controller.rb rename to app/controllers/boards/columns/not_nows_controller.rb diff --git a/app/controllers/collections/columns/streams_controller.rb b/app/controllers/boards/columns/streams_controller.rb similarity index 100% rename from app/controllers/collections/columns/streams_controller.rb rename to app/controllers/boards/columns/streams_controller.rb diff --git a/app/controllers/collections/columns_controller.rb b/app/controllers/boards/columns_controller.rb similarity index 100% rename from app/controllers/collections/columns_controller.rb rename to app/controllers/boards/columns_controller.rb diff --git a/app/controllers/collections/entropies_controller.rb b/app/controllers/boards/entropies_controller.rb similarity index 100% rename from app/controllers/collections/entropies_controller.rb rename to app/controllers/boards/entropies_controller.rb diff --git a/app/controllers/collections/involvements_controller.rb b/app/controllers/boards/involvements_controller.rb similarity index 100% rename from app/controllers/collections/involvements_controller.rb rename to app/controllers/boards/involvements_controller.rb diff --git a/app/controllers/collections/publications_controller.rb b/app/controllers/boards/publications_controller.rb similarity index 100% rename from app/controllers/collections/publications_controller.rb rename to app/controllers/boards/publications_controller.rb diff --git a/app/controllers/collections_controller.rb b/app/controllers/boards_controller.rb similarity index 100% rename from app/controllers/collections_controller.rb rename to app/controllers/boards_controller.rb diff --git a/app/controllers/cards/collections_controller.rb b/app/controllers/cards/boards_controller.rb similarity index 100% rename from app/controllers/cards/collections_controller.rb rename to app/controllers/cards/boards_controller.rb diff --git a/app/controllers/concerns/collection_scoped.rb b/app/controllers/concerns/board_scoped.rb similarity index 100% rename from app/controllers/concerns/collection_scoped.rb rename to app/controllers/concerns/board_scoped.rb diff --git a/app/controllers/prompts/collections/users_controller.rb b/app/controllers/prompts/boards/users_controller.rb similarity index 100% rename from app/controllers/prompts/collections/users_controller.rb rename to app/controllers/prompts/boards/users_controller.rb diff --git a/app/controllers/public/collections/columns/closeds_controller.rb b/app/controllers/public/boards/columns/closeds_controller.rb similarity index 100% rename from app/controllers/public/collections/columns/closeds_controller.rb rename to app/controllers/public/boards/columns/closeds_controller.rb diff --git a/app/controllers/public/collections/columns/not_nows_controller.rb b/app/controllers/public/boards/columns/not_nows_controller.rb similarity index 100% rename from app/controllers/public/collections/columns/not_nows_controller.rb rename to app/controllers/public/boards/columns/not_nows_controller.rb diff --git a/app/controllers/public/collections/columns/streams_controller.rb b/app/controllers/public/boards/columns/streams_controller.rb similarity index 100% rename from app/controllers/public/collections/columns/streams_controller.rb rename to app/controllers/public/boards/columns/streams_controller.rb diff --git a/app/controllers/public/collections/columns_controller.rb b/app/controllers/public/boards/columns_controller.rb similarity index 100% rename from app/controllers/public/collections/columns_controller.rb rename to app/controllers/public/boards/columns_controller.rb diff --git a/app/controllers/public/collections_controller.rb b/app/controllers/public/boards_controller.rb similarity index 100% rename from app/controllers/public/collections_controller.rb rename to app/controllers/public/boards_controller.rb diff --git a/app/helpers/accesses_helper.rb b/app/helpers/accesses_helper.rb index 372ee7475..b44bf321d 100644 --- a/app/helpers/accesses_helper.rb +++ b/app/helpers/accesses_helper.rb @@ -12,7 +12,7 @@ module AccessesHelper def access_toggles_for(users, selected:) render partial: "boards/access_toggle", - board: users, as: :user, + collection: users, as: :user, locals: { selected: selected }, cached: ->(user) { [ user, selected ] } end diff --git a/app/helpers/collections_helper.rb b/app/helpers/boards_helper.rb similarity index 100% rename from app/helpers/collections_helper.rb rename to app/helpers/boards_helper.rb diff --git a/app/javascript/controllers/collections_form_controller.js b/app/javascript/controllers/boards_form_controller.js similarity index 100% rename from app/javascript/controllers/collections_form_controller.js rename to app/javascript/controllers/boards_form_controller.js diff --git a/app/jobs/collection/clean_inaccessible_data_job.rb b/app/jobs/board/clean_inaccessible_data_job.rb similarity index 100% rename from app/jobs/collection/clean_inaccessible_data_job.rb rename to app/jobs/board/clean_inaccessible_data_job.rb diff --git a/app/models/collection.rb b/app/models/board.rb similarity index 100% rename from app/models/collection.rb rename to app/models/board.rb diff --git a/app/models/collection/accessible.rb b/app/models/board/accessible.rb similarity index 100% rename from app/models/collection/accessible.rb rename to app/models/board/accessible.rb diff --git a/app/models/collection/auto_closing.rb b/app/models/board/auto_closing.rb similarity index 100% rename from app/models/collection/auto_closing.rb rename to app/models/board/auto_closing.rb diff --git a/app/models/collection/broadcastable.rb b/app/models/board/broadcastable.rb similarity index 100% rename from app/models/collection/broadcastable.rb rename to app/models/board/broadcastable.rb diff --git a/app/models/collection/cards.rb b/app/models/board/cards.rb similarity index 100% rename from app/models/collection/cards.rb rename to app/models/board/cards.rb diff --git a/app/models/collection/entropic.rb b/app/models/board/entropic.rb similarity index 100% rename from app/models/collection/entropic.rb rename to app/models/board/entropic.rb diff --git a/app/models/collection/publication.rb b/app/models/board/publication.rb similarity index 100% rename from app/models/collection/publication.rb rename to app/models/board/publication.rb diff --git a/app/models/collection/publishable.rb b/app/models/board/publishable.rb similarity index 100% rename from app/models/collection/publishable.rb rename to app/models/board/publishable.rb diff --git a/app/models/collection/triageable.rb b/app/models/board/triageable.rb similarity index 100% rename from app/models/collection/triageable.rb rename to app/models/board/triageable.rb diff --git a/app/views/account/settings/_users.html.erb b/app/views/account/settings/_users.html.erb index e44955c5b..5e571eb67 100644 --- a/app/views/account/settings/_users.html.erb +++ b/app/views/account/settings/_users.html.erb @@ -13,7 +13,7 @@ diff --git a/app/views/collections/_access_toggle.erb b/app/views/boards/_access_toggle.erb similarity index 100% rename from app/views/collections/_access_toggle.erb rename to app/views/boards/_access_toggle.erb diff --git a/app/views/collections/_collection.json.jbuilder b/app/views/boards/_board.json.jbuilder similarity index 100% rename from app/views/collections/_collection.json.jbuilder rename to app/views/boards/_board.json.jbuilder diff --git a/app/views/collections/columns/_list.html.erb b/app/views/boards/columns/_list.html.erb similarity index 100% rename from app/views/collections/columns/_list.html.erb rename to app/views/boards/columns/_list.html.erb diff --git a/app/views/collections/columns/closeds/show.html.erb b/app/views/boards/columns/closeds/show.html.erb similarity index 100% rename from app/views/collections/columns/closeds/show.html.erb rename to app/views/boards/columns/closeds/show.html.erb diff --git a/app/views/collections/columns/create.turbo_stream.erb b/app/views/boards/columns/create.turbo_stream.erb similarity index 100% rename from app/views/collections/columns/create.turbo_stream.erb rename to app/views/boards/columns/create.turbo_stream.erb diff --git a/app/views/collections/columns/destroy.turbo_stream.erb b/app/views/boards/columns/destroy.turbo_stream.erb similarity index 100% rename from app/views/collections/columns/destroy.turbo_stream.erb rename to app/views/boards/columns/destroy.turbo_stream.erb diff --git a/app/views/collections/columns/not_nows/show.html.erb b/app/views/boards/columns/not_nows/show.html.erb similarity index 100% rename from app/views/collections/columns/not_nows/show.html.erb rename to app/views/boards/columns/not_nows/show.html.erb diff --git a/app/views/collections/columns/show.html.erb b/app/views/boards/columns/show.html.erb similarity index 100% rename from app/views/collections/columns/show.html.erb rename to app/views/boards/columns/show.html.erb diff --git a/app/views/collections/columns/streams/show.html.erb b/app/views/boards/columns/streams/show.html.erb similarity index 100% rename from app/views/collections/columns/streams/show.html.erb rename to app/views/boards/columns/streams/show.html.erb diff --git a/app/views/collections/columns/update.turbo_stream.erb b/app/views/boards/columns/update.turbo_stream.erb similarity index 100% rename from app/views/collections/columns/update.turbo_stream.erb rename to app/views/boards/columns/update.turbo_stream.erb diff --git a/app/views/collections/edit.html.erb b/app/views/boards/edit.html.erb similarity index 100% rename from app/views/collections/edit.html.erb rename to app/views/boards/edit.html.erb diff --git a/app/views/collections/edit/_auto_close.html.erb b/app/views/boards/edit/_auto_close.html.erb similarity index 100% rename from app/views/collections/edit/_auto_close.html.erb rename to app/views/boards/edit/_auto_close.html.erb diff --git a/app/views/collections/edit/_delete.html.erb b/app/views/boards/edit/_delete.html.erb similarity index 100% rename from app/views/collections/edit/_delete.html.erb rename to app/views/boards/edit/_delete.html.erb diff --git a/app/views/collections/edit/_knob.html.erb b/app/views/boards/edit/_knob.html.erb similarity index 100% rename from app/views/collections/edit/_knob.html.erb rename to app/views/boards/edit/_knob.html.erb diff --git a/app/views/collections/edit/_name.html.erb b/app/views/boards/edit/_name.html.erb similarity index 100% rename from app/views/collections/edit/_name.html.erb rename to app/views/boards/edit/_name.html.erb diff --git a/app/views/collections/edit/_publication.html.erb b/app/views/boards/edit/_publication.html.erb similarity index 100% rename from app/views/collections/edit/_publication.html.erb rename to app/views/boards/edit/_publication.html.erb diff --git a/app/views/collections/edit/_users.html.erb b/app/views/boards/edit/_users.html.erb similarity index 100% rename from app/views/collections/edit/_users.html.erb rename to app/views/boards/edit/_users.html.erb diff --git a/app/views/collections/entropies/update.turbo_stream.erb b/app/views/boards/entropies/update.turbo_stream.erb similarity index 69% rename from app/views/collections/entropies/update.turbo_stream.erb rename to app/views/boards/entropies/update.turbo_stream.erb index 050c6c28c..ad6fc204a 100644 --- a/app/views/collections/entropies/update.turbo_stream.erb +++ b/app/views/boards/entropies/update.turbo_stream.erb @@ -1,2 +1,2 @@ -<%= turbo_stream.replace([ @board, :entropy ], partial: "boards/edit/auto_close", locals: { board: @board }) %> +<%= turbo_stream.replace([ @board, :entropy ], partial: "boards/edit/auto_close", locals:{ board: @board }) %> <%= turbo_stream_flash(notice: "Saved") %> diff --git a/app/views/collections/involvements/update.html.erb b/app/views/boards/involvements/update.html.erb similarity index 100% rename from app/views/collections/involvements/update.html.erb rename to app/views/boards/involvements/update.html.erb diff --git a/app/views/collections/new.html.erb b/app/views/boards/new.html.erb similarity index 100% rename from app/views/collections/new.html.erb rename to app/views/boards/new.html.erb diff --git a/app/views/collections/publications/create.turbo_stream.erb b/app/views/boards/publications/create.turbo_stream.erb similarity index 66% rename from app/views/collections/publications/create.turbo_stream.erb rename to app/views/boards/publications/create.turbo_stream.erb index 43c9896e8..01e60d4c4 100644 --- a/app/views/collections/publications/create.turbo_stream.erb +++ b/app/views/boards/publications/create.turbo_stream.erb @@ -1,2 +1,2 @@ -<%= turbo_stream.replace([ @board, :publication ], partial: "boards/edit/publication", locals: { board: @board }) %> +<%= turbo_stream.replace([ @board, :publication ], partial: "boards/edit/publication", locals:{ board: @board }) %> <%= turbo_stream_flash(notice: "Saved") %> diff --git a/app/views/collections/publications/destroy.turbo_stream.erb b/app/views/boards/publications/destroy.turbo_stream.erb similarity index 66% rename from app/views/collections/publications/destroy.turbo_stream.erb rename to app/views/boards/publications/destroy.turbo_stream.erb index 43c9896e8..01e60d4c4 100644 --- a/app/views/collections/publications/destroy.turbo_stream.erb +++ b/app/views/boards/publications/destroy.turbo_stream.erb @@ -1,2 +1,2 @@ -<%= turbo_stream.replace([ @board, :publication ], partial: "boards/edit/publication", locals: { board: @board }) %> +<%= turbo_stream.replace([ @board, :publication ], partial: "boards/edit/publication", locals:{ board: @board }) %> <%= turbo_stream_flash(notice: "Saved") %> diff --git a/app/views/collections/show.html.erb b/app/views/boards/show.html.erb similarity index 100% rename from app/views/collections/show.html.erb rename to app/views/boards/show.html.erb diff --git a/app/views/collections/show/_closed.html.erb b/app/views/boards/show/_closed.html.erb similarity index 100% rename from app/views/collections/show/_closed.html.erb rename to app/views/boards/show/_closed.html.erb diff --git a/app/views/collections/show/_column.html.erb b/app/views/boards/show/_column.html.erb similarity index 100% rename from app/views/collections/show/_column.html.erb rename to app/views/boards/show/_column.html.erb diff --git a/app/views/collections/show/_columns.html.erb b/app/views/boards/show/_columns.html.erb similarity index 87% rename from app/views/collections/show/_columns.html.erb rename to app/views/boards/show/_columns.html.erb index 2475d94b1..a2a406aff 100644 --- a/app/views/collections/show/_columns.html.erb +++ b/app/views/boards/show/_columns.html.erb @@ -16,7 +16,7 @@ <%= render "boards/show/stream", board: board, page: page %>
- <%= render partial: "boards/show/column", board: board.columns.sorted, cached: ->(column){ [ column, column.leftmost?, column.rightmost? ] } %> + <%= render partial: "boards/show/column", collection: board.columns.sorted, cached: ->(column){ [ column, column.leftmost?, column.rightmost? ] } %> <%= render "boards/show/closed", board: board %> <%= render "boards/show/menu/columns", board: board %> diff --git a/app/views/collections/show/_expander.html.erb b/app/views/boards/show/_expander.html.erb similarity index 100% rename from app/views/collections/show/_expander.html.erb rename to app/views/boards/show/_expander.html.erb diff --git a/app/views/collections/show/_filtered_cards.html.erb b/app/views/boards/show/_filtered_cards.html.erb similarity index 100% rename from app/views/collections/show/_filtered_cards.html.erb rename to app/views/boards/show/_filtered_cards.html.erb diff --git a/app/views/collections/show/_not_now.html.erb b/app/views/boards/show/_not_now.html.erb similarity index 100% rename from app/views/collections/show/_not_now.html.erb rename to app/views/boards/show/_not_now.html.erb diff --git a/app/views/collections/show/_stream.html.erb b/app/views/boards/show/_stream.html.erb similarity index 100% rename from app/views/collections/show/_stream.html.erb rename to app/views/boards/show/_stream.html.erb diff --git a/app/views/collections/show/menu/_column.html.erb b/app/views/boards/show/menu/_column.html.erb similarity index 100% rename from app/views/collections/show/menu/_column.html.erb rename to app/views/boards/show/menu/_column.html.erb diff --git a/app/views/collections/show/menu/_column_form.html.erb b/app/views/boards/show/menu/_column_form.html.erb similarity index 100% rename from app/views/collections/show/menu/_column_form.html.erb rename to app/views/boards/show/menu/_column_form.html.erb diff --git a/app/views/collections/show/menu/_columns.html.erb b/app/views/boards/show/menu/_columns.html.erb similarity index 100% rename from app/views/collections/show/menu/_columns.html.erb rename to app/views/boards/show/menu/_columns.html.erb diff --git a/app/views/collections/show/menu/_expand.html.erb b/app/views/boards/show/menu/_expand.html.erb similarity index 100% rename from app/views/collections/show/menu/_expand.html.erb rename to app/views/boards/show/menu/_expand.html.erb diff --git a/app/views/cards/_messages.html.erb b/app/views/cards/_messages.html.erb index 4356d64a2..144be94cc 100644 --- a/app/views/cards/_messages.html.erb +++ b/app/views/cards/_messages.html.erb @@ -1,6 +1,6 @@ <%= messages_tag(card) do %> <% if card.published? %> - <%= render partial: "cards/comments/comment", board: card.comments.chronologically, cached: true %> + <%= render partial: "cards/comments/comment", collection: card.comments.chronologically, cached: true %> <%= render "cards/comments/new", card: card %> <%= render "cards/comments/watchers", card: card %> diff --git a/app/views/cards/collections/edit.html.erb b/app/views/cards/boards/edit.html.erb similarity index 100% rename from app/views/cards/collections/edit.html.erb rename to app/views/cards/boards/edit.html.erb diff --git a/app/views/cards/comments/reactions/_reactions.html.erb b/app/views/cards/comments/reactions/_reactions.html.erb index 9f51d4e7e..bf3ff746a 100644 --- a/app/views/cards/comments/reactions/_reactions.html.erb +++ b/app/views/cards/comments/reactions/_reactions.html.erb @@ -1,7 +1,7 @@ <%= turbo_frame_tag comment, :reacting do %>
- <%= render partial: "cards/comments/reactions/reaction", board: comment.reactions.includes(:reacter).ordered %> + <%= render partial: "cards/comments/reactions/reaction", collection: comment.reactions.includes(:reacter).ordered %>
<%= turbo_frame_tag comment, :new_reaction do %> diff --git a/app/views/cards/display/_previews.html.erb b/app/views/cards/display/_previews.html.erb index a74396b8c..04296f763 100644 --- a/app/views/cards/display/_previews.html.erb +++ b/app/views/cards/display/_previews.html.erb @@ -1 +1 @@ -<%= render partial: "cards/display/preview", board: cards, as: :card, locals: { draggable: local_assigns.fetch(:draggable, false) }, cached: true %> +<%= render partial: "cards/display/preview", collection: cards, as: :card, locals: { draggable: local_assigns.fetch(:draggable, false) }, cached: true %> diff --git a/app/views/cards/display/_public_previews.html.erb b/app/views/cards/display/_public_previews.html.erb index a0cc0d3f9..3e97e05c1 100644 --- a/app/views/cards/display/_public_previews.html.erb +++ b/app/views/cards/display/_public_previews.html.erb @@ -1 +1 @@ -<%= render partial: "cards/display/public_preview", board: cards, as: :card, cached: true %> +<%= render partial: "cards/display/public_preview", collection: cards, as: :card, cached: true %> diff --git a/app/views/cards/display/common/_collection.html.erb b/app/views/cards/display/common/_board.html.erb similarity index 100% rename from app/views/cards/display/common/_collection.html.erb rename to app/views/cards/display/common/_board.html.erb diff --git a/app/views/cards/display/perma/_collection.html.erb b/app/views/cards/display/perma/_board.html.erb similarity index 100% rename from app/views/cards/display/perma/_collection.html.erb rename to app/views/cards/display/perma/_board.html.erb diff --git a/app/views/cards/display/perma/_steps.html.erb b/app/views/cards/display/perma/_steps.html.erb index 90293e4fe..6cca251d2 100644 --- a/app/views/cards/display/perma/_steps.html.erb +++ b/app/views/cards/display/perma/_steps.html.erb @@ -1,5 +1,5 @@
    - <%= render partial: "cards/steps/step", board: card.steps, as: :step %> + <%= render partial: "cards/steps/step", collection: card.steps, as: :step %>
  1. diff --git a/app/views/cards/display/preview/_collection.html.erb b/app/views/cards/display/preview/_board.html.erb similarity index 100% rename from app/views/cards/display/preview/_collection.html.erb rename to app/views/cards/display/preview/_board.html.erb diff --git a/app/views/cards/previews/index.turbo_stream.erb b/app/views/cards/previews/index.turbo_stream.erb index 5176b8417..a7bc7099e 100644 --- a/app/views/cards/previews/index.turbo_stream.erb +++ b/app/views/cards/previews/index.turbo_stream.erb @@ -1,7 +1,7 @@ <%= turbo_stream.remove "#{params[:target]}-load-page-#{@page.number}" %> <%= turbo_stream.append params[:target] do %> - <%= render partial: "cards/display/preview", board: @page.records, as: :card, cached: true %> + <%= render partial: "cards/display/preview", collection: @page.records, as: :card, cached: true %> <% unless @page.last? %> <%= cards_next_page_link params[:target], page: @page, filter: @filter, fetch_on_visible: @filter.indexed_by.closed? %> diff --git a/app/views/columns/cards/drops/closures/create.turbo_stream.erb b/app/views/columns/cards/drops/closures/create.turbo_stream.erb index b3bee9f84..4be411ac8 100644 --- a/app/views/columns/cards/drops/closures/create.turbo_stream.erb +++ b/app/views/columns/cards/drops/closures/create.turbo_stream.erb @@ -1 +1 @@ -<%= turbo_stream.replace("closed-cards", partial: "boards/show/closed", method: :morph, locals: { board: @card.board }) %> +<%= turbo_stream.replace("closed-cards", partial: "boards/show/closed", method: :morph, locals:{ board: @card.board }) %> diff --git a/app/views/columns/cards/drops/not_nows/create.turbo_stream.erb b/app/views/columns/cards/drops/not_nows/create.turbo_stream.erb index f78a91093..9ca8365d5 100644 --- a/app/views/columns/cards/drops/not_nows/create.turbo_stream.erb +++ b/app/views/columns/cards/drops/not_nows/create.turbo_stream.erb @@ -1 +1 @@ -<%= turbo_stream.replace("not-now", partial: "boards/show/not_now", method: :morph, locals: { board: @card.board }) %> +<%= turbo_stream.replace("not-now", partial: "boards/show/not_now", method: :morph, locals:{ board: @card.board }) %> diff --git a/app/views/columns/cards/drops/streams/create.turbo_stream.erb b/app/views/columns/cards/drops/streams/create.turbo_stream.erb index f9c63881d..3f6251645 100644 --- a/app/views/columns/cards/drops/streams/create.turbo_stream.erb +++ b/app/views/columns/cards/drops/streams/create.turbo_stream.erb @@ -1 +1 @@ -<%= turbo_stream.replace("the-stream", partial: "boards/show/stream", method: :morph, locals: { board: @card.board, page: @page }) %> +<%= turbo_stream.replace("the-stream", partial: "boards/show/stream", method: :morph, locals:{ board: @card.board, page: @page }) %> diff --git a/app/views/events/_day_timeline.html.erb b/app/views/events/_day_timeline.html.erb index 48d76c18e..244414d2a 100644 --- a/app/views/events/_day_timeline.html.erb +++ b/app/views/events/_day_timeline.html.erb @@ -1,7 +1,7 @@ <% day_timeline.events.group_by { it.created_at.hour }.each do |hour, events_grouped_by_hour| %> <% events_grouped_by_hour.group_by { event_column(it) }.each do |column, events| %> <%= event_cluster_tag(hour, column) do %> - <%= render partial: "events/event", board: events %> + <%= render partial: "events/event", collection: events %> <%= local_datetime_tag events.first.created_at, class: "event__timestamp txt-small translucent" %> <% end %> <% end %> diff --git a/app/views/events/day_timeline/_column.html.erb b/app/views/events/day_timeline/_column.html.erb index 463da27e1..aefe9258e 100644 --- a/app/views/events/day_timeline/_column.html.erb +++ b/app/views/events/day_timeline/_column.html.erb @@ -4,7 +4,7 @@

    <%= column[:title] %>

    <% column[:events].group_by { it.created_at.hour }.each do |hour, events| %> <%= event_cluster_tag(hour, column[:index]) do %> - <%= render partial: "events/event", board: events, cached: true %> + <%= render partial: "events/event", collection: events, cached: true %> <%= local_datetime_tag events.first.created_at, class: "event__timestamp txt-small translucent" %> <% end %> <% end %> diff --git a/app/views/events/event/_attachments.html.erb b/app/views/events/event/_attachments.html.erb index 3c62c8108..faaf73f5a 100644 --- a/app/views/events/event/_attachments.html.erb +++ b/app/views/events/event/_attachments.html.erb @@ -1,7 +1,7 @@ <% if eventable&.has_attachments? || eventable&.has_remote_images? || eventable&.has_remote_videos? %> - <%= render partial: "events/event/attachments/attachment", board: eventable.attachments %> - <%= render partial: "events/event/attachments/remote_image", board: eventable.remote_images %> - <%= render partial: "events/event/attachments/remote_video", board: eventable.remote_videos %> + <%= render partial: "events/event/attachments/attachment", collection: eventable.attachments %> + <%= render partial: "events/event/attachments/remote_image", collection: eventable.remote_images %> + <%= render partial: "events/event/attachments/remote_video", collection: eventable.remote_videos %> <% end %> diff --git a/app/views/filters/settings/_collections.html.erb b/app/views/filters/settings/_boards.html.erb similarity index 100% rename from app/views/filters/settings/_collections.html.erb rename to app/views/filters/settings/_boards.html.erb diff --git a/app/views/mailers/notification/bundle_mailer/notification.html.erb b/app/views/mailers/notification/bundle_mailer/notification.html.erb index d874430fe..e7478b6b7 100644 --- a/app/views/mailers/notification/bundle_mailer/notification.html.erb +++ b/app/views/mailers/notification/bundle_mailer/notification.html.erb @@ -2,7 +2,7 @@

    Everything since <%= @bundle.starts_at.strftime("%-l%P on %A, %B %-d") %>

    You have <%= link_to pluralize(@notifications.count, "new notification"), notifications_url %>.

    - <%= render partial: "notification/bundle_mailer/notification", board: @notifications, as: :notification %> + <%= render partial: "notification/bundle_mailer/notification", collection: @notifications, as: :notification %>
  2. <% if user_filtering.boards.any? %> - <%= render partial: "my/menus/boards/board", board: user_filtering.boards, as: :board %> + <%= render partial: "my/menus/boards/board", collection: user_filtering.boards, as: :board %> <% end %> <% end %> diff --git a/app/views/my/menus/_saved_filter.html.erb b/app/views/my/menus/_saved_filter.html.erb index 2a3093d9d..46dbf2f56 100644 --- a/app/views/my/menus/_saved_filter.html.erb +++ b/app/views/my/menus/_saved_filter.html.erb @@ -1,6 +1,6 @@ <%= collapsible_nav_section "Saved filters", id: "my-filters" do %> <%= form_with url: cards_path, method: :get, data: { controller: "form" } do |form| %> <%= render "my/menus/saved_filter/create" %> - <%= render partial: "my/menus/saved_filter/filter", board: filters, as: :filter %> + <%= render partial: "my/menus/saved_filter/filter", collection: filters, as: :filter %> <% end %> <% end %> diff --git a/app/views/my/menus/_tags.html.erb b/app/views/my/menus/_tags.html.erb index 05e0baa4c..9f2d27cf6 100644 --- a/app/views/my/menus/_tags.html.erb +++ b/app/views/my/menus/_tags.html.erb @@ -1,3 +1,3 @@ <%= collapsible_nav_section "Tags" do %> - <%= render partial: "my/menus/tags/tag", board: user_filtering.tags, as: :tag %> + <%= render partial: "my/menus/tags/tag", collection: user_filtering.tags, as: :tag %> <% end %> diff --git a/app/views/my/menus/_users.html.erb b/app/views/my/menus/_users.html.erb index e17de569e..b8ca2cb59 100644 --- a/app/views/my/menus/_users.html.erb +++ b/app/views/my/menus/_users.html.erb @@ -6,5 +6,5 @@ <% end %> - <%= render partial: "my/menus/users/user", board: user_filtering.users, as: :user %> + <%= render partial: "my/menus/users/user", collection: user_filtering.users, as: :user %> <% end %> diff --git a/app/views/my/menus/collections/_collection.html.erb b/app/views/my/menus/boards/_board.html.erb similarity index 100% rename from app/views/my/menus/collections/_collection.html.erb rename to app/views/my/menus/boards/_board.html.erb diff --git a/app/views/my/pins/index.html.erb b/app/views/my/pins/index.html.erb index 1b3408d27..bee9fe10b 100644 --- a/app/views/my/pins/index.html.erb +++ b/app/views/my/pins/index.html.erb @@ -1,3 +1,3 @@ <%= turbo_frame_tag "pins" do %> - <%= render partial: "my/pins/pin", board: @pins %> + <%= render partial: "my/pins/pin", collection: @pins %> <% end %> diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 260180e1d..38ac87f52 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -26,7 +26,7 @@ <% end %>
    - <%= render partial: "notifications/notification", board: @unread, cached: true %> + <%= render partial: "notifications/notification", collection: @unread, cached: true %>
    @@ -34,7 +34,7 @@

    Previously seen

    - <%= render partial: "notifications/notification", board: @page.records, cached: true %> + <%= render partial: "notifications/notification", collection: @page.records, cached: true %>
diff --git a/app/views/notifications/index.turbo_stream.erb b/app/views/notifications/index.turbo_stream.erb index 869582ef7..4d74e0941 100644 --- a/app/views/notifications/index.turbo_stream.erb +++ b/app/views/notifications/index.turbo_stream.erb @@ -1,2 +1,2 @@ -<%= turbo_stream.append :notifications_list_read, partial: "notifications/notification", board: @page.records %> +<%= turbo_stream.append :notifications_list_read, partial: "notifications/notification", collection: @page.records %> <%= turbo_stream.replace :next_page, notifications_next_page_link(@page) %> diff --git a/app/views/notifications/settings/_collection.html.erb b/app/views/notifications/settings/_board.html.erb similarity index 100% rename from app/views/notifications/settings/_collection.html.erb rename to app/views/notifications/settings/_board.html.erb diff --git a/app/views/notifications/settings/show.html.erb b/app/views/notifications/settings/show.html.erb index 76b891f2a..8c1e94b19 100644 --- a/app/views/notifications/settings/show.html.erb +++ b/app/views/notifications/settings/show.html.erb @@ -8,7 +8,7 @@

Boards

- <%= render partial: "notifications/settings/board", board: @boards, locals: { user: Current.user } %> + <%= render partial: "notifications/settings/board", collection: @boards, locals: { user: Current.user } %>
diff --git a/app/views/notifications/trays/show.html.erb b/app/views/notifications/trays/show.html.erb index 4bbf2e78c..f61c52d51 100644 --- a/app/views/notifications/trays/show.html.erb +++ b/app/views/notifications/trays/show.html.erb @@ -1,3 +1,3 @@ <%= turbo_frame_tag "notifications" do %> - <%= render partial: "notifications/notification", board: @notifications, cached: true %> + <%= render partial: "notifications/notification", collection: @notifications, cached: true %> <% end %> diff --git a/app/views/prompts/collections/users/_user.html.erb b/app/views/prompts/boards/users/_user.html.erb similarity index 100% rename from app/views/prompts/collections/users/_user.html.erb rename to app/views/prompts/boards/users/_user.html.erb diff --git a/app/views/prompts/boards/users/index.html.erb b/app/views/prompts/boards/users/index.html.erb new file mode 100644 index 000000000..c05adae5f --- /dev/null +++ b/app/views/prompts/boards/users/index.html.erb @@ -0,0 +1 @@ +<%= render partial: "prompts/boards/users/user", collection: @users %> diff --git a/app/views/prompts/cards/index.html.erb b/app/views/prompts/cards/index.html.erb index 39e1f2bd6..253e6e543 100644 --- a/app/views/prompts/cards/index.html.erb +++ b/app/views/prompts/cards/index.html.erb @@ -1 +1 @@ -<%= render partial: "prompts/cards/card", board: @cards %> +<%= render partial: "prompts/cards/card", collection: @cards %> diff --git a/app/views/prompts/collections/users/index.html.erb b/app/views/prompts/collections/users/index.html.erb deleted file mode 100644 index 1d2e6d564..000000000 --- a/app/views/prompts/collections/users/index.html.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render partial: "prompts/boards/users/user", board: @users %> diff --git a/app/views/prompts/commands/index.html.erb b/app/views/prompts/commands/index.html.erb index 7a6ef82ac..5ade0e353 100644 --- a/app/views/prompts/commands/index.html.erb +++ b/app/views/prompts/commands/index.html.erb @@ -1 +1 @@ -<%= render partial: "prompts/commands/command", board: @commands %> +<%= render partial: "prompts/commands/command", collection: @commands %> diff --git a/app/views/prompts/tags/index.html.erb b/app/views/prompts/tags/index.html.erb index 0ccedfcc9..7ff9bbb1f 100644 --- a/app/views/prompts/tags/index.html.erb +++ b/app/views/prompts/tags/index.html.erb @@ -1 +1 @@ -<%= render partial: "prompts/tags/tag", board: @tags %> +<%= render partial: "prompts/tags/tag", collection: @tags %> diff --git a/app/views/prompts/users/index.html.erb b/app/views/prompts/users/index.html.erb index 1d2e6d564..c05adae5f 100644 --- a/app/views/prompts/users/index.html.erb +++ b/app/views/prompts/users/index.html.erb @@ -1 +1 @@ -<%= render partial: "prompts/boards/users/user", board: @users %> +<%= render partial: "prompts/boards/users/user", collection: @users %> diff --git a/app/views/public/collections/card_previews/index.turbo_stream.erb b/app/views/public/boards/card_previews/index.turbo_stream.erb similarity index 100% rename from app/views/public/collections/card_previews/index.turbo_stream.erb rename to app/views/public/boards/card_previews/index.turbo_stream.erb diff --git a/app/views/public/collections/columns/_list.html.erb b/app/views/public/boards/columns/_list.html.erb similarity index 100% rename from app/views/public/collections/columns/_list.html.erb rename to app/views/public/boards/columns/_list.html.erb diff --git a/app/views/public/collections/columns/closeds/show.html.erb b/app/views/public/boards/columns/closeds/show.html.erb similarity index 100% rename from app/views/public/collections/columns/closeds/show.html.erb rename to app/views/public/boards/columns/closeds/show.html.erb diff --git a/app/views/public/collections/columns/not_nows/show.html.erb b/app/views/public/boards/columns/not_nows/show.html.erb similarity index 100% rename from app/views/public/collections/columns/not_nows/show.html.erb rename to app/views/public/boards/columns/not_nows/show.html.erb diff --git a/app/views/public/collections/columns/show.html.erb b/app/views/public/boards/columns/show.html.erb similarity index 100% rename from app/views/public/collections/columns/show.html.erb rename to app/views/public/boards/columns/show.html.erb diff --git a/app/views/public/collections/columns/streams/show.html.erb b/app/views/public/boards/columns/streams/show.html.erb similarity index 100% rename from app/views/public/collections/columns/streams/show.html.erb rename to app/views/public/boards/columns/streams/show.html.erb diff --git a/app/views/public/collections/show.html.erb b/app/views/public/boards/show.html.erb similarity index 100% rename from app/views/public/collections/show.html.erb rename to app/views/public/boards/show.html.erb diff --git a/app/views/public/collections/show/_closed.html.erb b/app/views/public/boards/show/_closed.html.erb similarity index 100% rename from app/views/public/collections/show/_closed.html.erb rename to app/views/public/boards/show/_closed.html.erb diff --git a/app/views/public/collections/show/_column.html.erb b/app/views/public/boards/show/_column.html.erb similarity index 100% rename from app/views/public/collections/show/_column.html.erb rename to app/views/public/boards/show/_column.html.erb diff --git a/app/views/public/collections/show/_columns.html.erb b/app/views/public/boards/show/_columns.html.erb similarity index 85% rename from app/views/public/collections/show/_columns.html.erb rename to app/views/public/boards/show/_columns.html.erb index 9b02db191..03e4fcfe0 100644 --- a/app/views/public/collections/show/_columns.html.erb +++ b/app/views/public/boards/show/_columns.html.erb @@ -8,7 +8,7 @@ <%= render "public/boards/show/stream", board: board, page: page %>
- <%= render partial: "public/boards/show/column", board: board.columns, cached: true %> + <%= render partial: "public/boards/show/column", collection: board.columns, cached: true %> <%= render "public/boards/show/closed", board: board %>
diff --git a/app/views/public/collections/show/_considering.html.erb b/app/views/public/boards/show/_considering.html.erb similarity index 100% rename from app/views/public/collections/show/_considering.html.erb rename to app/views/public/boards/show/_considering.html.erb diff --git a/app/views/public/collections/show/_doing.html.erb b/app/views/public/boards/show/_doing.html.erb similarity index 100% rename from app/views/public/collections/show/_doing.html.erb rename to app/views/public/boards/show/_doing.html.erb diff --git a/app/views/public/collections/show/_not_now.html.erb b/app/views/public/boards/show/_not_now.html.erb similarity index 100% rename from app/views/public/collections/show/_not_now.html.erb rename to app/views/public/boards/show/_not_now.html.erb diff --git a/app/views/public/collections/show/_on_deck.html.erb b/app/views/public/boards/show/_on_deck.html.erb similarity index 78% rename from app/views/public/collections/show/_on_deck.html.erb rename to app/views/public/boards/show/_on_deck.html.erb index 2ccac6066..539efa64c 100644 --- a/app/views/public/collections/show/_on_deck.html.erb +++ b/app/views/public/boards/show/_on_deck.html.erb @@ -4,7 +4,7 @@ <% if page.used? %> - <%= render partial: "cards/display/public_preview", board: page.records, as: :card, cached: true %> + <%= render partial: "cards/display/public_preview", collection: page.records, as: :card, cached: true %> <% unless page.last? %>
diff --git a/app/views/public/collections/show/_stream.html.erb b/app/views/public/boards/show/_stream.html.erb similarity index 100% rename from app/views/public/collections/show/_stream.html.erb rename to app/views/public/boards/show/_stream.html.erb diff --git a/app/views/searches/_results.html.erb b/app/views/searches/_results.html.erb index c43852131..7cdd92df9 100644 --- a/app/views/searches/_results.html.erb +++ b/app/views/searches/_results.html.erb @@ -15,7 +15,7 @@
diff --git a/app/views/webhooks/form/_actions.html.erb b/app/views/webhooks/form/_actions.html.erb index bd57f00ed..a887fa644 100644 --- a/app/views/webhooks/form/_actions.html.erb +++ b/app/views/webhooks/form/_actions.html.erb @@ -1,5 +1,5 @@