Skip to content

Add interface function to auto fill plugin settings form#2453

Open
Boy132 wants to merge 1 commit into
mainfrom
boy132/fill-plugin-settings
Open

Add interface function to auto fill plugin settings form#2453
Boy132 wants to merge 1 commit into
mainfrom
boy132/fill-plugin-settings

Conversation

@Boy132

@Boy132 Boy132 commented Jul 14, 2026

Copy link
Copy Markdown
Member

Adds getSettingsFormData to the HasPluginSettings interface (breaking change for plugins that implement this interface) so the settings form can be automatically filled with data.

@Boy132 Boy132 self-assigned this Jul 14, 2026
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 9db55df0-5179-4167-b09b-99fb914bac16

📥 Commits

Reviewing files that changed from the base of the PR and between 1f2ff09 and e0f38a8.

📒 Files selected for processing (3)
  • app/Contracts/Plugins/HasPluginSettings.php
  • app/Filament/Admin/Resources/Plugins/PluginResource.php
  • app/Models/Plugin.php

📝 Walkthrough

Walkthrough

Changes

Plugin settings form prefill

Layer / File(s) Summary
Settings data contract and retrieval
app/Contracts/Plugins/HasPluginSettings.php, app/Models/Plugin.php
The settings contract adds getSettingsFormData(), and Plugin retrieves data from compatible plugin instances while returning an empty array on failure or unsupported plugins.
Settings form prefill
app/Filament/Admin/Resources/Plugins/PluginResource.php
The settings action pre-fills the form with the plugin’s settings data when opened.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding an interface method to auto-fill plugin settings forms.
Description check ✅ Passed The description is directly related to the change and mentions the new settings data method and its effect.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants