Repository navigation
Calendar chips colored by content category - #242
Merged
Merged
Conversation
Posts get a category column (default, morning, evening_carousel), editable via API, MCP update_post, and the post Overview, without resetting approval. Existing scheduled posts are backfilled from their earliest PostSyncer time in the workspace timezone. Videos derive Bangla or English from language. The calendar colors chips by category, keeps scheduled dashed and published solid with a check, and shows a legend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Five calendar categories, each with its own color: Post, Morning post, Evening carousel, Bangla video, English video.
posts.categorycolumn:default|morning|evening_carousel(defaultdefault).POST /api/v1/postsandPATCH /api/v1/posts/{id}acceptcategory(validated withRule::in(Post::CATEGORIES));PostResourcereturns it, slim index includes it.update_postacceptscategory(enum in schema, validated in the dispatcher).scheduled_atin the workspace timezone: 09-11 morning, 20-22 evening carousel, else default (App\Support\Posts\PostCategoryFromSchedule).video_enfromlanguage = en, otherwisevideo_bn. No new column.category(post_default,post_morning,post_evening_carousel,video_bn,video_en). Chips getis-cat-<category>: category owns the hue (tint + 4px left border); scheduled is dashed with a light tint, published is solid with a stronger tint and a check. Legend row above the grid.Tests
tsc --noEmit, ESLint, Prettier, build.Generated with Claude Code