Skip to content
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

Merged

Conversation

Kashkin
Copy link
Collaborator

@Kashkin Kashkin commented Mar 12, 2024

No description provided.

Kashkin added 2 commits March 12, 2024 16:45
feature: improve layout of AbstractContentResource form
chore: add prettierrc
@Kashkin Kashkin requested a review from kyoungportable March 12, 2024 06:48
Copy link
Contributor

@kyoungportable kyoungportable left a 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

.prettierrc Outdated Show resolved Hide resolved
use HasBadge;
use HasColor;

// protected string $view = 'forms.components.status-badge';
Copy link
Contributor

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?

Copy link
Collaborator Author

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();
}

Copy link
Contributor

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Kashkin added 2 commits March 13, 2024 01:36
test: add update_sets_slug
chore: swap to .editorconfig
@Kashkin Kashkin requested a review from kyoungportable March 12, 2024 15:43
@kyoungportable kyoungportable merged commit 7816690 into main Mar 12, 2024
2 checks passed
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