Add status property to content item structure (#44)
* Add status property to content item structure This commit introduces a new `status` property to the content item structure, allowing content items to maintain a status such as 'draft', 'published', 'review', 'pending'. This status is mapped to the corresponding status in Wordpress and Keystatic clients to ensure consistent usage across platforms. Content retrieval methods now also include a status filter. * Refactor code for style and readability improvements This commit includes changes in various files across different packages to improve code readability, including adjusting spacing and breaking down complex lines into simpler parts. In addition, the switch statement in `wp-client.ts` has been refactored and status values are now held in variables, and the CSS classes in `global-loader.tsx` have been reorganized.
This commit is contained in:
committed by
GitHub
parent
21f42f14ce
commit
3393863dd2
@@ -5,6 +5,7 @@ categories: []
|
||||
tags: []
|
||||
image: "/images/posts/indie-hacker.webp"
|
||||
publishedAt: 2024-04-12
|
||||
status: "published"
|
||||
---
|
||||
|
||||
# Brainstorming Ideas for Your Next Micro SaaS
|
||||
|
||||
Reference in New Issue
Block a user