diff --git a/app/assets/stylesheets/card-columns.css b/app/assets/stylesheets/card-columns.css index 088e1ce0b..d7207cfab 100644 --- a/app/assets/stylesheets/card-columns.css +++ b/app/assets/stylesheets/card-columns.css @@ -119,6 +119,19 @@ } } + .cards--related:not(:hover):not(.drag-and-drop__hover-container) { + .card { + box-shadow: 0 0 1px var(--color-ink-medium); + opacity: 0.9; + transition: box-shadow 450ms ease-in-out, opacity 150ms ease-in-out; + + @media (prefers-color-scheme: dark) { + opacity: 0.8; + transition: opacity 150ms ease-in-out; + } + } + } + /* Column elements /* ------------------------------------------------------------------------ */ diff --git a/app/controllers/accounts/entropy_configurations_controller.rb b/app/controllers/account/entropy_configurations_controller.rb similarity index 81% rename from app/controllers/accounts/entropy_configurations_controller.rb rename to app/controllers/account/entropy_configurations_controller.rb index 07e828242..f3e1b7ebd 100644 --- a/app/controllers/accounts/entropy_configurations_controller.rb +++ b/app/controllers/account/entropy_configurations_controller.rb @@ -1,4 +1,4 @@ -class Accounts::EntropyConfigurationsController < ApplicationController +class Account::EntropyConfigurationsController < ApplicationController def update Entropy::Configuration.default.update!(entropy_configuration_params) diff --git a/app/controllers/accounts/join_codes_controller.rb b/app/controllers/account/join_codes_controller.rb similarity index 78% rename from app/controllers/accounts/join_codes_controller.rb rename to app/controllers/account/join_codes_controller.rb index b6f08bf3c..5c981a2ba 100644 --- a/app/controllers/accounts/join_codes_controller.rb +++ b/app/controllers/account/join_codes_controller.rb @@ -1,4 +1,4 @@ -class Accounts::JoinCodesController < ApplicationController +class Account::JoinCodesController < ApplicationController def show render svg: RQRCode::QRCode.new(join_url(Account.sole.join_code)).as_svg(viewbox: true, fill: :white, color: :black) end diff --git a/app/controllers/accounts/settings_controller.rb b/app/controllers/account/settings_controller.rb similarity index 62% rename from app/controllers/accounts/settings_controller.rb rename to app/controllers/account/settings_controller.rb index e915ad10c..8bad68103 100644 --- a/app/controllers/accounts/settings_controller.rb +++ b/app/controllers/account/settings_controller.rb @@ -1,4 +1,4 @@ -class Accounts::SettingsController < ApplicationController +class Account::SettingsController < ApplicationController include FilterScoped def show diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index abb1e7947..b6b95418b 100644 --- a/app/helpers/filters_helper.rb +++ b/app/helpers/filters_helper.rb @@ -43,4 +43,17 @@ module FiltersHelper concat tag.kbd(key) end end + + def sorted_by_label(sort_value) + case sort_value + when "newest" + "Newest to oldest" + when "oldest" + "Oldest to newest" + when "latest" + "Recently updated" + else + sort_value.humanize + end + end end diff --git a/app/helpers/hotkeys_helper.rb b/app/helpers/hotkeys_helper.rb index 7bd0424d1..062f6ca2d 100644 --- a/app/helpers/hotkeys_helper.rb +++ b/app/helpers/hotkeys_helper.rb @@ -1,19 +1,14 @@ module HotkeysHelper + # Pass in an array of chorded keys, e.g. ["ctrl", "shift", "J"] def hotkey_label(hotkey) - hotkey.split(",").first if hotkey - case hotkey - when Array - hotkey.map { |key| - if key == "ctrl" && platform.mac? - "⌘" - elsif key == "enter" - platform.mac? ? "return" : "enter" - else - key - end - }.join() - else - hotkey.split(",").first if hotkey - end + hotkey.map do |key| + if key == "ctrl" && platform.mac? + "⌘" + elsif key == "enter" + platform.mac? ? "return" : "enter" + else + key + end.capitalize + end.join("+").gsub(/⌘\+/, "⌘") end end diff --git a/app/models/user.rb b/app/models/user.rb index af3ff9315..6c2cc14b8 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,6 +1,6 @@ class User < ApplicationRecord - include Accessor, Attachable, Assignee, Mentionable, Named, Role, Searcher, - SignalUser, Staff, Transferable, Conversational, AiQuota + include Accessor, AiQuota, Assignee, Attachable, Mentionable, Named, Role, + Searcher, SignalUser, Staff, Transferable, Conversational include Timelined # Depends on Accessor has_one_attached :avatar diff --git a/app/models/user/filtering.rb b/app/models/user/filtering.rb index 448445c0b..065e3bfb0 100644 --- a/app/models/user/filtering.rb +++ b/app/models/user/filtering.rb @@ -56,6 +56,7 @@ class User::Filtering end def show_tags? + return unless Tag.any? expanded? || filter.tags.any? end diff --git a/app/views/accounts/_invite.html.erb b/app/views/account/_invite.html.erb similarity index 100% rename from app/views/accounts/_invite.html.erb rename to app/views/account/_invite.html.erb diff --git a/app/views/accounts/_user.html.erb b/app/views/account/_user.html.erb similarity index 100% rename from app/views/accounts/_user.html.erb rename to app/views/account/_user.html.erb diff --git a/app/views/accounts/settings/_entropy_configuration.html.erb b/app/views/account/settings/_entropy_configuration.html.erb similarity index 86% rename from app/views/accounts/settings/_entropy_configuration.html.erb rename to app/views/account/settings/_entropy_configuration.html.erb index 12dea2bbc..53992b1c4 100644 --- a/app/views/accounts/settings/_entropy_configuration.html.erb +++ b/app/views/account/settings/_entropy_configuration.html.erb @@ -1,5 +1,5 @@
Choose default settings for this account. You can override them in individual collections.
<%= render "entropy/auto_close", model: account.default_entropy_configuration, url: account_entropy_configuration_path %>Back to The Stream after…
<%= form_with model: model, url: url, data: { controller: "form" } do |form| %> <%= render "entropy/knob", diff --git a/app/views/filters/menu/collections/_all_option.html.erb b/app/views/filters/menu/collections/_all_option.html.erb index b499eb0eb..d5b5ade05 100644 --- a/app/views/filters/menu/collections/_all_option.html.erb +++ b/app/views/filters/menu/collections/_all_option.html.erb @@ -1,13 +1,6 @@ <% clear_url_path = user_filtering.self_filter_path(user_filtering.as_params.except(:collection_ids)) %> -<% if Current.user.collections.one? %> - <%= link_to clear_url_path, class: "popup__group", id: "filter-collection-init", data: { filter_target: "item", navigable_list_target: "item" } do %> - <%= tag.div class: "popup__item btn" do %> - <%= Current.user.collections.first.name %> - GO TO › - <% end %> - <% end %> -<% elsif Current.user.collections.many? %> +<% if Current.user.collections.many? %>