diff --git a/app/javascript/controllers/bridge/page_controller.js b/app/javascript/controllers/bridge/title_controller.js similarity index 85% rename from app/javascript/controllers/bridge/page_controller.js rename to app/javascript/controllers/bridge/title_controller.js index e5a7c74b3..5ea8c7b7f 100644 --- a/app/javascript/controllers/bridge/page_controller.js +++ b/app/javascript/controllers/bridge/title_controller.js @@ -3,7 +3,7 @@ import { viewport } from "helpers/bridge/viewport_helpers" import { nextFrame } from "helpers/timing_helpers" export default class extends BridgeComponent { - static component = "page" + static component = "title" static targets = [ "header" ] static values = { title: String } @@ -20,18 +20,6 @@ export default class extends BridgeComponent { window.removeEventListener("resize", this.windowResized) } - receive(message) { - switch (message.event) { - case "set-text-size": - this.setTextSize(message.data) - break - } - } - - setTextSize(data) { - document.documentElement.dataset.textSize = data.textSize - } - notifyBridgeOfVisibilityChange(visible) { this.send("visibility", { title: this.title, elementVisible: visible }) } diff --git a/app/views/account/settings/show.html.erb b/app/views/account/settings/show.html.erb index 0e6fcf1c2..438560635 100644 --- a/app/views/account/settings/show.html.erb +++ b/app/views/account/settings/show.html.erb @@ -1,7 +1,7 @@ <% @page_title = "Account Settings" %> <% content_for :header do %> -

+

<%= @page_title %> <% unless Current.user.admin? %>
Only admins can change these settings
diff --git a/app/views/boards/columns/closeds/show.html.erb b/app/views/boards/columns/closeds/show.html.erb index 1397bb4bc..ca6c48e83 100644 --- a/app/views/boards/columns/closeds/show.html.erb +++ b/app/views/boards/columns/closeds/show.html.erb @@ -5,7 +5,7 @@ <%= link_back_to_board(@board) %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/boards/columns/not_nows/show.html.erb b/app/views/boards/columns/not_nows/show.html.erb index fdb8d6dcc..e7de8a522 100644 --- a/app/views/boards/columns/not_nows/show.html.erb +++ b/app/views/boards/columns/not_nows/show.html.erb @@ -5,7 +5,7 @@ <%= link_back_to_board(@board) %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/boards/columns/show.html.erb b/app/views/boards/columns/show.html.erb index 5e527826a..e514b75ae 100644 --- a/app/views/boards/columns/show.html.erb +++ b/app/views/boards/columns/show.html.erb @@ -5,7 +5,7 @@ <%= link_back_to_board(@column.board) %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/boards/columns/streams/show.html.erb b/app/views/boards/columns/streams/show.html.erb index ae1d7e5a6..26dce763d 100644 --- a/app/views/boards/columns/streams/show.html.erb +++ b/app/views/boards/columns/streams/show.html.erb @@ -5,7 +5,7 @@ <%= link_back_to_board(@board) %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/boards/edit.html.erb b/app/views/boards/edit.html.erb index 92b74ebbb..978208e92 100644 --- a/app/views/boards/edit.html.erb +++ b/app/views/boards/edit.html.erb @@ -5,7 +5,7 @@ <%= link_back_to_board(@board) %> -

+

<%= @page_title %>
<% unless Current.user.can_administer_board?(@board) %>
Only admins can change these settings
diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 320788a8d..bcccf4512 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -9,7 +9,7 @@ <%= link_to_webhooks(@board) if Current.user.admin? %> -

+

<%= @board.name %>

diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index 97ee29b59..0611370bd 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -4,7 +4,7 @@ <%= render "cards/broadcasts", filter: @filter %> <% content_for :header do %> -

+

<%= @user_filtering.selected_boards_label %>

diff --git a/app/views/events/day_timeline/columns/show.html.erb b/app/views/events/day_timeline/columns/show.html.erb index ae85d6ace..f939e516f 100644 --- a/app/views/events/day_timeline/columns/show.html.erb +++ b/app/views/events/day_timeline/columns/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to "Activity", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

+

<%= @column.title %>

<% end %> diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index c9b9d0e8c..d65176784 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -6,7 +6,7 @@ <% content_for :header do %> <%= render "events/index/add_card_button", user_filtering: @user_filtering %> -

+

<% if @user_filtering.boards.many? %> Activity <%= @user_filtering.filter.boards.any? ? "in" : "across" %> <% else %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 670232e36..e4418b670 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -3,9 +3,9 @@ <%= render "layouts/shared/head" %> > + data-platform="<%= platform.type %>" <%= "data-bridge--title-title-value=#{@page_title}" if @page_title %>>
-

<%= @page_title %>

+

<%= @page_title %>

<% end %>
diff --git a/app/views/my/access_tokens/new.html.erb b/app/views/my/access_tokens/new.html.erb index 3e5c1d9d3..27e7fbffc 100644 --- a/app/views/my/access_tokens/new.html.erb +++ b/app/views/my/access_tokens/new.html.erb @@ -5,7 +5,7 @@ <%= back_link_to "tokens", my_access_tokens_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

<%= @page_title %>

+

<%= @page_title %>

<% end %>
diff --git a/app/views/my/access_tokens/show.html.erb b/app/views/my/access_tokens/show.html.erb index 4b78c754d..761137710 100644 --- a/app/views/my/access_tokens/show.html.erb +++ b/app/views/my/access_tokens/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to "Tokens", my_access_tokens_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

<%= @page_title %>

+

<%= @page_title %>

<% end %>
diff --git a/app/views/my/pins/index.html.erb b/app/views/my/pins/index.html.erb index b4a7cf328..eabe156f9 100644 --- a/app/views/my/pins/index.html.erb +++ b/app/views/my/pins/index.html.erb @@ -5,7 +5,7 @@ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

<%= @page_title %>

+

<%= @page_title %>

<% end %>
diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index a9b176629..add5e69d7 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -6,7 +6,7 @@ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
-

<%= @page_title %>

+

<%= @page_title %>

<%= link_to notifications_settings_path, class: "btn", data: { bridge__overflow_menu_target: "item", bridge_title: "Notification settings" } do %> diff --git a/app/views/notifications/settings/show.html.erb b/app/views/notifications/settings/show.html.erb index d7d2a0a6a..2a37b3092 100644 --- a/app/views/notifications/settings/show.html.erb +++ b/app/views/notifications/settings/show.html.erb @@ -1,7 +1,7 @@ <% @page_title = "Notification Settings" %> <% content_for :header do %> -

<%= @page_title %>

+

<%= @page_title %>

<% end %>
diff --git a/app/views/public/boards/columns/closeds/show.html.erb b/app/views/public/boards/columns/closeds/show.html.erb index eb3861810..638d497c6 100644 --- a/app/views/public/boards/columns/closeds/show.html.erb +++ b/app/views/public/boards/columns/closeds/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to @board.name, published_board_url(@board), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
-

+

<%= @page_title %>

<% end %> diff --git a/app/views/public/boards/columns/not_nows/show.html.erb b/app/views/public/boards/columns/not_nows/show.html.erb index ffe0c4d2e..35f7aa186 100644 --- a/app/views/public/boards/columns/not_nows/show.html.erb +++ b/app/views/public/boards/columns/not_nows/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to @board.name, published_board_url(@board), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/public/boards/columns/show.html.erb b/app/views/public/boards/columns/show.html.erb index af220d22b..6cad25730 100644 --- a/app/views/public/boards/columns/show.html.erb +++ b/app/views/public/boards/columns/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to @column.board.name, published_board_url(@column.board), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/public/boards/columns/streams/show.html.erb b/app/views/public/boards/columns/streams/show.html.erb index 343d2ae68..147d9a382 100644 --- a/app/views/public/boards/columns/streams/show.html.erb +++ b/app/views/public/boards/columns/streams/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to @board.name, published_board_url(@board), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/public/boards/show.html.erb b/app/views/public/boards/show.html.erb index c73738e2b..b73a17050 100644 --- a/app/views/public/boards/show.html.erb +++ b/app/views/public/boards/show.html.erb @@ -14,7 +14,7 @@ <% end %> <% content_for :header do %> -

+

<%= @page_title %>

<% end %> diff --git a/app/views/searches/show.html.erb b/app/views/searches/show.html.erb index 50af61227..776ab9d38 100644 --- a/app/views/searches/show.html.erb +++ b/app/views/searches/show.html.erb @@ -5,7 +5,7 @@ <%= back_link_to "Home", root_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

<%= @page_title %>

+

<%= @page_title %>

<% end %>
diff --git a/app/views/webhooks/index.html.erb b/app/views/webhooks/index.html.erb index b06841fc2..987ae0094 100644 --- a/app/views/webhooks/index.html.erb +++ b/app/views/webhooks/index.html.erb @@ -5,7 +5,7 @@ <%= link_back_to_board(@board) %>
-

<%= @page_title %>

+

<%= @page_title %>

<% end %> <%= tag.section class: "panel panel--wide shadow center webhooks" do %> diff --git a/app/views/webhooks/new.html.erb b/app/views/webhooks/new.html.erb index 1e9fd2105..9d2873ece 100644 --- a/app/views/webhooks/new.html.erb +++ b/app/views/webhooks/new.html.erb @@ -5,7 +5,7 @@ <%= back_link_to "Webhooks", board_webhooks_path, "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %> -

<%= @page_title %>

+

<%= @page_title %>

<% end %>