From aed4102878806210d9092d6a91f447adfb25180a Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Wed, 15 Oct 2025 07:02:05 +0800 Subject: [PATCH] feat: enhance post creation feedback and improve table layout in Post Management --- .../post/framework/ui/PostManagementPage.svelte | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/post/framework/ui/PostManagementPage.svelte b/frontend/src/lib/post/framework/ui/PostManagementPage.svelte index 01ac636..554b96f 100644 --- a/frontend/src/lib/post/framework/ui/PostManagementPage.svelte +++ b/frontend/src/lib/post/framework/ui/PostManagementPage.svelte @@ -26,6 +26,7 @@ const state = await createPost(params); if (state.isSuccess()) { + loadPosts({ showUnpublished: true }); toast.success(`Post created successfully with ID: ${state.data.id}`); } else if (state.isError()) { toast.error('Failed to create post', { @@ -56,13 +57,15 @@ {#each postsListedState.data as postInfo (postInfo.id)} {postInfo.id} - {postInfo.title} - - {#each postInfo.labels as label (label.id)} - - {/each} + {postInfo.title} + +
+ {#each postInfo.labels as label (label.id)} + + {/each} +
- {postInfo.formattedPublishedTime || '---'} + {postInfo.formattedPublishedTime}
{/each} {/if}