Text chat 40: fluxer-core announcements, thread administration and personal notes #325

Closed
opened 2026-11-12 18:16:20 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 40". Spec: §18 of docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md (channel types, added 2026-11-12 when Charles overruled #286 Q4).

Task 40: fluxer-core announcements, thread administration and personal notes

Issue: (to be created)

Files:

  • Modify: crates/fluxer-core/src/chat/{announcements.rs,thread_admin.rs}, crates/fluxer-core/src/chat/threads.rs (member lists from THREAD_MEMBER_LIST_UPDATE, additive)
  • Test: crates/fluxer-core/tests/{chat_announcements.rs,chat_thread_admin.rs}

Interfaces:

  • Consumes: Text chat 15 (confirm pattern, ActionsModel), 18, 38.

  • Produces: spec §18.2.4, §18.2.5 (browser, menu, settings, composer notices, starter), §18.2.7 purge; selectors::announcement_actions(&App, channel, message) -> Vec<BarItem> ("Publish" / disabled "Published"), can_crosspost, Confirm::Crosspost (a new confirm kind alongside Text chat 15's), selectors::crosspost_nudge(&App, channel) -> Option<Snowflake> (the user's newest unpublished message; not when dismissed or hide_crosspost_nudge), can_follow(&App) -> bool (MANAGE_WEBHOOKS in any guild), selectors::follow_targets(&App) -> Vec<(guild, Vec<channel>)> (GUILD_TEXT with MANAGE_WEBHOOKS), selectors::crosspost_card(&App, message) -> Option<CrosspostCardModel> (fetches CrosspostSource once per message); selectors::thread_header(&App, thread) -> ThreadHeaderModel { parent: Option<(Snowflake, String, ChannelIcon)>, name, muted, browser: bool, members: bool, is_post: bool }; selectors::thread_composer_notice(&App, thread) -> Option<ThreadNotice::{Locked, Closed, Join}> (locked hides the composer without MANAGE_THREADS); selectors::thread_starter(&App, &Message) -> Option<StarterModel::{Message(Box<Message>), Deleted, Loading}> (type 21: fetches the referenced message with FetchMessages { around } of the parent when absent); selectors::thread_welcome(&App, thread) -> WelcomeModel { icon, name, started_by: Option<String> }; thread browser state and selectors::thread_browser(&App) -> ThreadBrowserModel { tabs, tab, query, joined, other, state, can_load_more, can_create }; selectors::thread_menu(&App, thread) -> Vec<MenuItem> (the original's items and permissions); edit/close/reopen/lock/unlock/delete (confirm)/leave (private-thread confirm)/remove member/notification level; selectors::thread_members(&App, thread) -> Vec<MemberRow> from THREAD_MEMBER_LIST_UPDATE; PurgeNotes with confirm and the result toast strings.

  • Step 1: Write failing tests: crosspost_rules_table (channel type, message type, state, snapshots, already crosspost, permission, author), publish_confirm_unless_shift, published_after_crossposted_flag, nudge_newest_own_unpublished_and_dismiss_forever, follow_needs_manage_webhooks_targets_text_only, crosspost_card_fetched_once, thread_header_full_view_and_post, composer_notice_locked_closed_join, locked_hides_composer_without_manage_threads, starter_message_present_deleted_loading, welcome_started_by_not_for_posts, browser_tabs_private_only_with_manage_threads, browser_search_and_load_more, menu_items_by_permission, close_reopen_lock_unlock_patch, delete_thread_confirms, leave_private_confirms, archived_thread_cannot_join_or_leave, notification_level_flags_exactly_one, member_list_update_rows, purge_notes_confirm_and_toast.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): announcements, thread administration and personal notes.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 40". Spec: §18 of `docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md` (channel types, added 2026-11-12 when Charles overruled #286 Q4). ### Task 40: `fluxer-core` announcements, thread administration and personal notes **Issue:** (to be created) **Files:** - Modify: `crates/fluxer-core/src/chat/{announcements.rs,thread_admin.rs}`, `crates/fluxer-core/src/chat/threads.rs` (member lists from `THREAD_MEMBER_LIST_UPDATE`, additive) - Test: `crates/fluxer-core/tests/{chat_announcements.rs,chat_thread_admin.rs}` **Interfaces:** - Consumes: Text chat 15 (confirm pattern, `ActionsModel`), 18, 38. - Produces: spec §18.2.4, §18.2.5 (browser, menu, settings, composer notices, starter), §18.2.7 purge; `selectors::announcement_actions(&App, channel, message) -> Vec<BarItem>` ("Publish" / disabled "Published"), `can_crosspost`, `Confirm::Crosspost` (a new confirm kind alongside Text chat 15's), `selectors::crosspost_nudge(&App, channel) -> Option<Snowflake>` (the user's newest unpublished message; not when dismissed or `hide_crosspost_nudge`), `can_follow(&App) -> bool` (MANAGE_WEBHOOKS in any guild), `selectors::follow_targets(&App) -> Vec<(guild, Vec<channel>)>` (GUILD_TEXT with MANAGE_WEBHOOKS), `selectors::crosspost_card(&App, message) -> Option<CrosspostCardModel>` (fetches `CrosspostSource` once per message); `selectors::thread_header(&App, thread) -> ThreadHeaderModel { parent: Option<(Snowflake, String, ChannelIcon)>, name, muted, browser: bool, members: bool, is_post: bool }`; `selectors::thread_composer_notice(&App, thread) -> Option<ThreadNotice::{Locked, Closed, Join}>` (locked hides the composer without MANAGE_THREADS); `selectors::thread_starter(&App, &Message) -> Option<StarterModel::{Message(Box<Message>), Deleted, Loading}>` (type 21: fetches the referenced message with `FetchMessages { around }` of the parent when absent); `selectors::thread_welcome(&App, thread) -> WelcomeModel { icon, name, started_by: Option<String> }`; thread browser state and `selectors::thread_browser(&App) -> ThreadBrowserModel { tabs, tab, query, joined, other, state, can_load_more, can_create }`; `selectors::thread_menu(&App, thread) -> Vec<MenuItem>` (the original's items and permissions); edit/close/reopen/lock/unlock/delete (confirm)/leave (private-thread confirm)/remove member/notification level; `selectors::thread_members(&App, thread) -> Vec<MemberRow>` from `THREAD_MEMBER_LIST_UPDATE`; `PurgeNotes` with confirm and the result toast strings. - [ ] **Step 1: Write failing tests**: `crosspost_rules_table` (channel type, message type, state, snapshots, already crosspost, permission, author), `publish_confirm_unless_shift`, `published_after_crossposted_flag`, `nudge_newest_own_unpublished_and_dismiss_forever`, `follow_needs_manage_webhooks_targets_text_only`, `crosspost_card_fetched_once`, `thread_header_full_view_and_post`, `composer_notice_locked_closed_join`, `locked_hides_composer_without_manage_threads`, `starter_message_present_deleted_loading`, `welcome_started_by_not_for_posts`, `browser_tabs_private_only_with_manage_threads`, `browser_search_and_load_more`, `menu_items_by_permission`, `close_reopen_lock_unlock_patch`, `delete_thread_confirms`, `leave_private_confirms`, `archived_thread_cannot_join_or_leave`, `notification_level_flags_exactly_one`, `member_list_update_rows`, `purge_notes_confirm_and_toast`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): announcements, thread administration and personal notes`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 18:16:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#325
No description provided.