ideasbugs 0.7.4 → 0.7.6
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 +4 -4
- data/CHANGELOG.md +11 -0
- data/app/controllers/ideasbugs/application_controller.rb +4 -0
- data/app/controllers/ideasbugs/feedbacks_controller.rb +1 -1
- data/lib/generators/ideasbugs/install/templates/initializer.rb +4 -0
- data/lib/ideasbugs/configuration.rb +5 -0
- data/lib/ideasbugs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 659f5e82f9d21b72a031e45469050b6fe445d1fe84d651bcb4278cdf0d7b1593
|
|
4
|
+
data.tar.gz: 4f528fa59bdadfcef7068a941946f278f1aa2364edc32a6c4584f9b4144d12c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b4f1a43a56ba6886d0613a302b6fb0f1ca3aa50b72ecd948079c47adad26a6e8f08d59b45aef0171343a2c42518a3dc9b277a88596b2ec8f2a1cafd9204abf5
|
|
7
|
+
data.tar.gz: a268ac3feb78f5ca3325141e4e7af87bd87fd60d0774d0df912fccd62a1a6f9ce2408c3e6e2fee0d3fd72f11c5ef7ae6d004c5b3a4b28b8ddf7ce67718de7ff9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.6 (2026-07-31)
|
|
4
|
+
|
|
5
|
+
- Fixed the trusted publishing workflow by building and pushing the gem
|
|
6
|
+
directly with RubyGems OIDC credentials after the test suite passes.
|
|
7
|
+
|
|
8
|
+
## 0.7.5 (2026-07-31)
|
|
9
|
+
|
|
10
|
+
- Added `config.admin_layout`, letting host apps render the Ideasbugs dashboard
|
|
11
|
+
inside their own admin layout while keeping the standalone gem layout as the
|
|
12
|
+
default.
|
|
13
|
+
|
|
3
14
|
## 0.7.4 (2026-07-31)
|
|
4
15
|
|
|
5
16
|
- Redesigned the admin feedback dashboard into a two-column triage layout with
|
|
@@ -4,7 +4,7 @@ module Ideasbugs
|
|
|
4
4
|
class FeedbacksController < ApplicationController
|
|
5
5
|
PER_PAGE = 50
|
|
6
6
|
|
|
7
|
-
layout
|
|
7
|
+
layout :ideasbugs_admin_layout, except: :create
|
|
8
8
|
|
|
9
9
|
# The widget posts here; everything else is the triage dashboard.
|
|
10
10
|
before_action :require_enabled, only: :create
|
|
@@ -8,6 +8,10 @@ Ideasbugs.configure do |config|
|
|
|
8
8
|
# Who can browse and triage feedback at the mount path. Defaults to
|
|
9
9
|
# development only — override before deploying.
|
|
10
10
|
# config.authorize_admin = ->(request) { request.env["warden"]&.user&.admin? }
|
|
11
|
+
#
|
|
12
|
+
# Render the dashboard inside your app's admin layout. Default: the gem's
|
|
13
|
+
# standalone dashboard layout.
|
|
14
|
+
# config.admin_layout = "admin/application"
|
|
11
15
|
|
|
12
16
|
# Attribute feedback to a user (optional). Return an object responding to
|
|
13
17
|
# #id, or nil. Receives the request.
|
|
@@ -16,6 +16,10 @@ module Ideasbugs
|
|
|
16
16
|
# deploying, e.g. with an admin check.
|
|
17
17
|
attr_accessor :authorize_admin
|
|
18
18
|
|
|
19
|
+
# Layout used by the built-in dashboard. Override this to render Ideasbugs
|
|
20
|
+
# inside your app's admin shell, e.g. "admin/application".
|
|
21
|
+
attr_accessor :admin_layout
|
|
22
|
+
|
|
19
23
|
# Resolve the current user for attribution (optional). Return an object
|
|
20
24
|
# responding to #id, or nil. Receives the request.
|
|
21
25
|
attr_accessor :current_user
|
|
@@ -79,6 +83,7 @@ module Ideasbugs
|
|
|
79
83
|
def initialize
|
|
80
84
|
@enabled = ->(_request) { true }
|
|
81
85
|
@authorize_admin = ->(_request) { Rails.env.development? }
|
|
86
|
+
@admin_layout = 'ideasbugs/application'
|
|
82
87
|
@current_user = ->(_request) {}
|
|
83
88
|
@tenant = ->(_request) {}
|
|
84
89
|
@author_label = ->(user) { user.respond_to?(:email) ? user.email : user&.to_s }
|
data/lib/ideasbugs/version.rb
CHANGED