effective_messaging 0.10.2 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89ab9d94b48072ed7367e0cac20539946a5e744d48e0bb2a947332c8a092b012
4
- data.tar.gz: 0f8d2953c3c7aca70ae27fe326258676348f6ba4efee12bf7c67b7fa8e641b0f
3
+ metadata.gz: 2fe14923df11de2dddfd94f0abd846be5626d621e85f5161f6459fae12d1ca77
4
+ data.tar.gz: a22a0c35c235640bb941724b77d9b09080e58aeeb67866d628e9f76817ce4621
5
5
  SHA512:
6
- metadata.gz: 3b1b431e8e3881932523dcec78eb5d2d6778d4bd076eddd8a5936059ed73f2f5f5888300bf7fa4603629655a4a8683e00a37e21913a3eda5dee30837c2956b89
7
- data.tar.gz: 666e014a57a908e37c6e65dccd0dfd31a3a4458e8467ec38f37354c5a4d970b29405394ffab5709fd4215dab9649bf0cda3128dd695e5b63ab9c2977adc78ce4
6
+ metadata.gz: a86a0a712ea702cdacfd4477eac7417f493626a398ddfce5b95466fba85ec905221426d1ef39b2045a3ed1182c3c7115590700df901f4ae6c5192bb1780b4038
7
+ data.tar.gz: b5a51b9d8c5510212d06973f91125c924ebe1c3fd54d16b5fbdaf4c63f1d744c1caddfe9c06b075513574d022e8dde26353af7b2b071b27146e60ad1962e3527
@@ -86,7 +86,7 @@ module Effective
86
86
  end
87
87
 
88
88
  scope :sorted, -> { order(:id) }
89
- scope :deep, -> { includes(report: :report_columns) }
89
+ scope :deep, -> { includes(report: [:report_columns, :report_scopes, :notifications]) }
90
90
 
91
91
  scope :enabled, -> { where(enabled: true) }
92
92
  scope :disabled, -> { where(enabled: false) }
@@ -1,8 +1,9 @@
1
1
  .effective-chat-message
2
2
  .card
3
3
  .card-header
4
- %strong= chat_message.name
5
- commented on
6
- = chat_message.created_at.strftime('%F %T')
4
+ .row
5
+ .col
6
+ %strong= chat_message.name
7
+ .col.text-right= chat_message.created_at.strftime("%b %e, %Y %k:%M")
7
8
  .card-body
8
9
  = simple_format(chat_message.body)
@@ -6,22 +6,13 @@
6
6
  = render('effective/chats/summary', chat: chat)
7
7
  = render(partial: 'effective/chats/chat_message', collection: chat.chat_messages, chat: chat)
8
8
 
9
- - if chat.chat_messages.blank?
10
- %p There are no #{etsd(chat.chat_messages)} so far. Please send one!
11
-
12
- %hr
13
-
14
9
  - chat_message = chat.build_chat_message(user: current_user)
15
10
  - chat_user = chat.chat_user(user: current_user)
16
11
 
17
12
  .card
18
- .card-header.bg-secondary
19
- = et('effective_messaging.send')
20
- .card-body
21
- %p Your name is displayed as <strong>#{chat_user.name}</strong>
22
-
13
+ .card-body.pb-0
23
14
  = f.fields_for :chat_messages, chat_message do |fcm|
24
15
  - # The user and name are set by controller's current_user
25
- = fcm.text_area :body, required: true, label: 'Send a message...'
16
+ = fcm.text_area :body, required: true, label: 'Message'
26
17
 
27
- = f.submit et('effective_messaging.send')
18
+ = f.submit et('effective_messaging.send'), border: false
@@ -1,22 +1,14 @@
1
1
  - current_chat_user = chat.chat_user(user: current_user)
2
2
  - chat_users_count = chat.chat_users.count
3
3
 
4
- %p
5
- - if chat.anonymous?
6
- = badges('anonymous')
7
-
8
- = succeed('.') do
9
- A #{etd(chat)} with
4
+ - if chat.anonymous?
5
+ .alert.alert-danger.my-4
6
+ This is an anonymous #{etd(chat)}.
7
+ %strong Do not reveal any potentially personally identifying information
8
+ like your name or employer.
10
9
 
11
- - if current_chat_user.present? && chat_users_count < 5
12
- = (chat.chat_users - [current_chat_user]).map(&:name).to_sentence
13
- - else
14
- = pluralize(chat_users_count, etd(chat.chat_users))
15
-
16
- opened
17
- = time_ago_in_words(chat.created_at)
18
- ago on
19
- = chat.created_at.strftime('%F')
10
+ %p
11
+ This #{etd(chat)} includes:
20
12
 
21
- = succeed('.') do
22
- = pluralize(chat.chat_messages_count, etd(chat.chat_messages))
13
+ - if current_chat_user.present? && chat_users_count
14
+ = (chat.chat_users).map(&:name).to_sentence
@@ -3,7 +3,7 @@ en:
3
3
  name: 'Effective Messaging'
4
4
  acronym: 'Messaging'
5
5
  dashboard: 'Chat Messages'
6
- send: 'Send Message'
6
+ send: 'Send'
7
7
 
8
8
  activerecord:
9
9
  models:
@@ -1,3 +1,3 @@
1
1
  module EffectiveMessaging
2
- VERSION = '0.10.2'.freeze
2
+ VERSION = '0.11.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-01 00:00:00.000000000 Z
11
+ date: 2025-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails