-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/filacms 13 improve author ux of filament form #17
Feature/filacms 13 improve author ux of filament form #17
Conversation
feature: improve layout of AbstractContentResource form chore: add prettierrc
…thor-ux-of-filament-form
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.
Looks great, just a couple of small things
use HasBadge; | ||
use HasColor; | ||
|
||
// protected string $view = 'forms.components.status-badge'; |
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.
Do we need this line?
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.
Nope! Fixed.
@@ -20,9 +21,12 @@ class ContentUpdating | |||
public function __construct(public AbstractContentModel $page) | |||
{ | |||
$page->updated_user_id = auth()->user() ? auth()->user()->id : $page->created_user_id; | |||
if(!$page->is_draft && is_null($page->publish_at)) { | |||
if (!$page->is_draft && is_null($page->publish_at)) { | |||
$page->publish_at = Carbon::now()->subMinute(); | |||
} | |||
|
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.
Please add/adjust tests that cover this functionality
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.
Done!
test: add update_sets_slug chore: swap to .editorconfig
No description provided.