-
-
Notifications
You must be signed in to change notification settings - Fork 254
Fix finish & add translation for Installer title #1659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughAdds a public getTitle() method and changes wizard nextAction in PanelInstaller to an explicit closure with a translated label and preserved Enter keybinding; fixes finish button translation rendering. Replaces hard-coded submit labels with translation calls in two Filament pages and adds corresponding translation keys for installer, admin node, and admin server. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant PanelInstaller
participant WizardUI
participant Translator
User->>PanelInstaller: Open installer
PanelInstaller->>Translator: trans('installer.title')
Translator-->>PanelInstaller: "Panel Installer"
PanelInstaller->>WizardUI: configure nextAction (closure)<br/>label = trans('installer.next_step'), keyBindings('enter')
WizardUI->>Translator: trans('installer.next_step')
Translator-->>WizardUI: "Next Step"
User->>WizardUI: Click Finish / Enter
WizardUI->>Translator: trans('installer.finish') via Blade echo
Translator-->>WizardUI: "Finish"
WizardUI-->>User: Render translated labels
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
lang/en/installer.php (1)
101-103: Ensure installer.next_step in all locale files
Only lang/en/installer.php defines bothtitleandnext_step. Create or update lang//installer.php for each supported locale to include these keys and avoid English fallbacks.app/Livewire/Installer/PanelInstaller.php (2)
49-52: Localized page title — LGTM (optional: widen return type)Matches project pattern. If you ever need rich titles, consider returning
string|Htmlable.Apply if desired:
+use Illuminate\Contracts\Support\Htmlable; @@ - public function getTitle(): string + public function getTitle(): string|Htmlable { return trans('installer.title'); }
87-91: Use array form for keyBindings in PanelInstaller
Change->keyBindings('enter')to
->keyBindings(['enter'])to match the array usage elsewhere (e.g. Settings.php uses
->keyBindings(['mod+s'])).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (2)
app/Livewire/Installer/PanelInstaller.php(2 hunks)lang/en/installer.php(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
app/Livewire/Installer/PanelInstaller.php (7)
app/Filament/Admin/Pages/Health.php (1)
getTitle(25-28)app/Filament/Admin/Pages/Settings.php (1)
getTitle(87-90)app/Filament/Server/Pages/Settings.php (1)
getTitle(304-307)app/Filament/Server/Resources/FileResource/Pages/SearchFiles.php (1)
getTitle(77-80)app/Filament/Server/Resources/UserResource/Pages/ListUsers.php (1)
getTitle(167-170)app/Filament/Server/Resources/FileResource/Pages/ListFiles.php (1)
getTitle(610-613)app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php (1)
getTitle(80-83)
🔇 Additional comments (2)
lang/en/installer.php (1)
4-4: Title translation key added — LGTMKey path
installer.titlematches usage in PanelInstaller. No issues.app/Livewire/Installer/PanelInstaller.php (1)
98-98: Finish label translation fixed — LGTMUsing Blade-rendered
{{ trans('installer.finish') }}is correct and safe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (4)
app/Filament/Admin/Resources/NodeResource/Pages/CreateNode.php(1 hunks)app/Filament/Admin/Resources/ServerResource/Pages/CreateServer.php(1 hunks)lang/en/admin/node.php(1 hunks)lang/en/admin/server.php(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- lang/en/admin/server.php
🔇 Additional comments (1)
app/Filament/Admin/Resources/NodeResource/Pages/CreateNode.php (1)
403-409: Submit button now uses translation key: LGTM
{{ trans('admin/node.create') }}matches the new lang entry and keeps UI consistent.
No description provided.