- One card per app (grouped by client_id) showing distinct device and category counts; the whole card opens the details modal (with hover and focus highlight) instead of a separate Details button - Details modal: access list styled like the OAuth consent dialog via a shared RsScopeListComponent, plus per-token device, connected date and expiry, each with its own Revoke - "folder" -> "category" in the card, modal, consent dialog and the auth-created notification - Make revoke a real DELETE: it was a GET link that Turbo 8's prefetch-on-hover fired on its own, silently deleting authorizations. Missing or foreign authorizations now return 404 instead of 500. - Move "Launch app" to the app level (GET /services/storage/apps/:client_id/launch); no token id in the URL Part of #254
15 lines
241 B
Ruby
15 lines
241 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RsScopeListComponent < ViewComponent::Base
|
|
include OauthHelper
|
|
|
|
def initialize(scopes:, root: false)
|
|
@scopes = scopes
|
|
@root = root
|
|
end
|
|
|
|
def read_only?
|
|
@scopes.include?(":r")
|
|
end
|
|
end
|