Unify OAuth application views - #1615
Open
skyfallwastaken wants to merge 2 commits into
Open
Conversation
Contributor
Greptile SummaryThe PR consolidates owner and admin OAuth application pages around shared Inertia/Svelte components and a shared Rails presenter.
Confidence Score: 5/5The PR appears safe to merge with no concrete blocking or independently actionable non-blocking issues identified. The shared presenter and Svelte mode branches preserve distinct owner and admin parameter keys, routes, permissions and actions, with focused controller coverage for the changed admin behavior. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart LR
OwnerRoute[Owner OAuth routes] --> OwnerController[Doorkeeper ApplicationsController]
AdminRoute[Admin OAuth routes] --> AdminController[Admin OauthApplicationsController]
OwnerController --> Presenter[OauthApplicationPageProps]
AdminController --> Presenter
Presenter --> SharedIndex[OAuthApplications Index]
Presenter --> SharedShow[OAuthApplications Show]
Presenter --> SharedForm[OAuthApplications New/Edit Form]
SharedIndex -->|admin_mode false| OwnerActions[Owner routes and actions]
SharedIndex -->|admin_mode true| AdminActions[Admin routes and actions]
SharedShow -->|admin_mode false| OwnerActions
SharedShow -->|admin_mode true| AdminActions
SharedForm -->|doorkeeper_application params| OwnerController
SharedForm -->|oauth_application params| AdminController
Reviews (1): Last reviewed commit: "Centralise OAuth application page props" | Re-trigger Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the problem
OAuth application management had separate owner and admin Svelte pages, which allowed the interfaces and their page props to drift apart.
Closes #1583.
Describe your changes
Admin routes now render the shared OAuth application index, detail and edit components while retaining admin actions and owner metadata. A shared page props presenter centralises application details, form configuration and scope options. The superseded admin pages and their unused icon component have been removed.
Screenshots / Media
Not included. The admin routes now use the existing owner-facing interface.