feat(admin): staff content — news posts + wiki taxonomy (M10 Phase 3, part 2)
Second staff group over the existing /admin routes (any staff role; bearer-authed, role re-checked every request). AdminApi/AdminDto/AdminRepository gain posts (list/create/publish-toggle/delete) and wiki taxonomy (list categories + tags, create/delete category). AdminContentScreen is a two-tab screen (Posts | Wiki) with create dialogs; the CMS block/hero editor stays out of scope. Admin wiki DTOs are prefixed (AdminWikiCategoryDto/AdminWikiTagDto) to avoid colliding with the public wiki DTOs. Verified on emulator against the dev backend: posts list with published/draft pills; publish/unpublish flips the DB row with live reload; create a news post; create + delete a wiki category (confirmed in MariaDB). assembleDebug + lint green. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -68,6 +68,37 @@
|
||||
<string name="admin_count_posts">Posts</string>
|
||||
<string name="admin_forbidden">You don\'t have permission for that action.</string>
|
||||
<string name="admin_action_failed">That action couldn\'t be completed. Please try again.</string>
|
||||
<string name="action_cancel">Cancel</string>
|
||||
|
||||
<!-- Staff content (posts + wiki) -->
|
||||
<string name="admin_content_tab_posts">Posts</string>
|
||||
<string name="admin_content_tab_wiki">Wiki</string>
|
||||
<string name="admin_content_new_post">New post</string>
|
||||
<string name="admin_content_new_category">New category</string>
|
||||
<string name="admin_content_create">Create</string>
|
||||
<string name="admin_content_published">Published</string>
|
||||
<string name="admin_content_draft">Draft</string>
|
||||
<string name="admin_content_publish">Publish</string>
|
||||
<string name="admin_content_unpublish">Unpublish</string>
|
||||
<string name="admin_content_delete">Delete</string>
|
||||
<string name="admin_content_publish_now">Publish now</string>
|
||||
<string name="admin_content_field_title">Title</string>
|
||||
<string name="admin_content_field_excerpt">Excerpt</string>
|
||||
<string name="admin_content_field_body">Body</string>
|
||||
<string name="admin_content_field_slug">Slug</string>
|
||||
<string name="admin_content_field_description">Description</string>
|
||||
<string name="admin_content_field_sort">Sort order</string>
|
||||
<!-- %1$s slug, %2$d page count -->
|
||||
<string name="admin_content_cat_meta">%1$s · %2$d pages</string>
|
||||
<!-- %1$s comma-separated tag labels -->
|
||||
<string name="admin_content_tags">Tags: %1$s</string>
|
||||
<string name="admin_content_post_created">Post created.</string>
|
||||
<string name="admin_content_post_updated">Post updated.</string>
|
||||
<string name="admin_content_post_deleted">Post deleted.</string>
|
||||
<string name="admin_content_cat_created">Category created.</string>
|
||||
<string name="admin_content_cat_deleted">Category deleted.</string>
|
||||
<string name="admin_content_title_required">A title is required.</string>
|
||||
<string name="admin_content_cat_fields_required">Slug and title are required.</string>
|
||||
|
||||
<!-- ── Auth: login (§4.1) ──────────────────────────────────────────── -->
|
||||
<string name="login_title">Sign in</string>
|
||||
|
||||
Reference in New Issue
Block a user