[PR #1013] [MERGED] Add Egg copy from & ReplicateAction #1113

Closed
opened 2026-02-04 19:18:38 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1013
Author: @rmartinoscar
Created: 2/17/2025
Status: Merged
Merged: 2/19/2025
Merged by: @rmartinoscar

Base: mainHead: feature/EggCopyFrom


📝 Commits (9)

  • c270df9 Add Egg copy from for Process & Install Script
  • 2ab5398 Add builtin ReplicateAction
  • e80f500 Use CopyFrom for less duplicated code
  • 326ad13 Hide label & add tooltip to ReplicateAction
  • e55b16f use iconButton() instead of hiddenLabel()
  • 6ea50c9 use iconButton() for every Actions
  • 5da9e70 Use our translation instead
  • 4d0bd6f Copy egg_variables aswell
  • a18047e remove get()

📊 Changes

5 files changed (+112 additions, -27 deletions)

View changed files

📝 app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php (+5 -10)
📝 app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php (+10 -14)
📝 app/Filament/Admin/Resources/EggResource/Pages/ListEggs.php (+24 -3)
app/Filament/Components/Forms/Fields/CopyFrom.php (+69 -0)
📝 resources/views/filament/plugins/monaco-editor.blade.php (+4 -0)

📄 Description

Add ReplicateAction on ListEggs
Changed incorrect defaults.
Made script_entry a Select as it should be.

image
I would have put it in bulkActions() rather then actions() but it doesn't work
Filament ticket


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1013 **Author:** [@rmartinoscar](https://github.com/rmartinoscar) **Created:** 2/17/2025 **Status:** ✅ Merged **Merged:** 2/19/2025 **Merged by:** [@rmartinoscar](https://github.com/rmartinoscar) **Base:** `main` ← **Head:** `feature/EggCopyFrom` --- ### 📝 Commits (9) - [`c270df9`](https://github.com/pelican-dev/panel/commit/c270df94ab5e5e25d8ceb35ea947bbf0615c59be) Add `Egg` `copy from` for Process & Install Script - [`2ab5398`](https://github.com/pelican-dev/panel/commit/2ab539810fc77306d5fcb1b4e342406625ec4d5e) Add builtin `ReplicateAction` - [`e80f500`](https://github.com/pelican-dev/panel/commit/e80f500453f6ff9a7ae2fa59b24820ea8734b7fd) Use `CopyFrom` for less duplicated code - [`326ad13`](https://github.com/pelican-dev/panel/commit/326ad13d0e1d2d8ad878a8db1be6e6e9848515cf) Hide label & add tooltip to `ReplicateAction` - [`e55b16f`](https://github.com/pelican-dev/panel/commit/e55b16f9649b54a360a2d2b2ad1f6109ae2c32e1) use `iconButton()` instead of `hiddenLabel()` - [`6ea50c9`](https://github.com/pelican-dev/panel/commit/6ea50c9dfe6b0f94b2079625caa482a84dabccf1) use `iconButton()` for every Actions - [`5da9e70`](https://github.com/pelican-dev/panel/commit/5da9e7040478cfdc308b5664e969232779cf11a7) Use our translation instead - [`4d0bd6f`](https://github.com/pelican-dev/panel/commit/4d0bd6f5b383a3ff4869d2baa98142fa81225739) Copy egg_variables aswell - [`a18047e`](https://github.com/pelican-dev/panel/commit/a18047e5a7cd44b2be0c02741c549676dc77faf1) remove `get()` ### 📊 Changes **5 files changed** (+112 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `app/Filament/Admin/Resources/EggResource/Pages/CreateEgg.php` (+5 -10) 📝 `app/Filament/Admin/Resources/EggResource/Pages/EditEgg.php` (+10 -14) 📝 `app/Filament/Admin/Resources/EggResource/Pages/ListEggs.php` (+24 -3) ➕ `app/Filament/Components/Forms/Fields/CopyFrom.php` (+69 -0) 📝 `resources/views/filament/plugins/monaco-editor.blade.php` (+4 -0) </details> ### 📄 Description Add `ReplicateAction` on `ListEggs` Changed incorrect defaults. Made `script_entry` a `Select` as it should be. ![image](https://github.com/user-attachments/assets/062082e5-0668-4cba-89f1-7fc57d34d48c) I would have put it in `bulkActions()` rather then `actions()` but it doesn't work [Filament ticket](https://discord.com/channels/883083792112300104/1340843092579717213/1340843092579717213) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 19:18:38 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1113