docs: source account implementation plan (#9, #10)#37
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds a new, detailed implementation plan document for “source account” support, covering per-hashtag account filtering (#9) and a brand account feed (#10) derived from the approved design spec.
Changes:
- Adds a task-by-task plan (with code snippets and test steps) for implementing
account_filter+ DB migration + admin UI (#9). - Adds a task-by-task plan for implementing
get_account_posts(), plus shortcode/block display surfaces and cron warming (#10). - Documents proposed testing approach (PHPUnit + Brain Monkey) and sequencing across two PRs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| **Architecture:** Additive to the existing static-class plugin. #9 adds an `account_filter` column + a global `outpost_brand_account` option, with filtering applied in `OUTPOST_Feed_Fetcher::get_posts()`. #10 adds `get_account_posts()` plus a new `[outpost_account_feed]` shortcode and `outpost/account-feed` block that reuse the existing post-card markup via a shared render helper. | ||
|
|
||
| **Tech Stack:** WordPress 7+, PHP 8.3, `$wpdb` + `dbDelta`, `wp_remote_get`, WP-Cron, shortcodes + dynamic blocks (no JS build), PHPUnit 10 + Brain Monkey for isolated unit tests. |
| * @return string | ||
| */ | ||
| public static function normalize_handle( $handle ) { | ||
| return strtolower( ltrim( trim( (string) $handle ), '@' ) ); |
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.
The task-by-task implementation plan for #9 + #10, derived from the approved design spec. Docs only.
Refs #9, #10
🤖 Generated with Claude Code