Text chat 17: fluxer-core search #267

Closed
opened 2026-11-12 11:07:41 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 17". Spec: docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md.

Issue: #TBD

Files:

  • Modify: crates/fluxer-core/src/chat/search.rs
  • Test: crates/fluxer-core/tests/chat_search.rs

Interfaces:

  • Produces: spec §6.2 "Search"; search::parse(&str, utc_offset) -> SearchQuery (keys and aliases of feat/search/utils/SearchQueryParser.ts:46-79 and SearchUtils.ts:250-460; dates to snowflake bounds; unknown keys kept as text); SearchQuery::to_request(&App, page) -> SearchRequest; selectors::search_results(&App) -> SearchResultsModel { total, page, pages, groups: Vec<ResultGroup { channel_id, messages }>, state: Idle | Loading | Indexing | Empty | Error } (groups = runs of consecutive same-channel results); selectors::search_suggestions(&App, text, cursor) -> Vec<SuggestionSection> (Recent searches (10, local), Filters, Users, Channels, Dates); indexing poll 1500 × 1.25 ≤ 5000 ms.

  • Step 1: Write failing tests: table parse_cases (≥ 15: from:, -from:, has:image, has:forward, before:/after:/during:/on:, in:, pinned:true, sort:relevance, quoted values, unknown key), request_scope_and_context, page_size_25, indexing_poll_backoff, grouping_runs_by_channel, recent_searches_kept_10, jump_from_result.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): message search.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 17". Spec: `docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md`. ### Task 17: `fluxer-core` search **Issue:** #TBD **Files:** - Modify: `crates/fluxer-core/src/chat/search.rs` - Test: `crates/fluxer-core/tests/chat_search.rs` **Interfaces:** - Produces: spec §6.2 "Search"; `search::parse(&str, utc_offset) -> SearchQuery` (keys and aliases of `feat/search/utils/SearchQueryParser.ts:46-79` and `SearchUtils.ts:250-460`; dates to snowflake bounds; unknown keys kept as text); `SearchQuery::to_request(&App, page) -> SearchRequest`; `selectors::search_results(&App) -> SearchResultsModel { total, page, pages, groups: Vec<ResultGroup { channel_id, messages }>, state: Idle | Loading | Indexing | Empty | Error }` (groups = runs of consecutive same-channel results); `selectors::search_suggestions(&App, text, cursor) -> Vec<SuggestionSection>` (Recent searches (10, local), Filters, Users, Channels, Dates); indexing poll 1500 × 1.25 ≤ 5000 ms. - [ ] **Step 1: Write failing tests**: table `parse_cases` (≥ 15: `from:`, `-from:`, `has:image`, `has:forward`, `before:/after:/during:/on:`, `in:`, `pinned:true`, `sort:relevance`, quoted values, unknown key), `request_scope_and_context`, `page_size_25`, `indexing_poll_backoff`, `grouping_runs_by_channel`, `recent_searches_kept_10`, `jump_from_result`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): message search`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 11:07:41 +00:00
charles referenced this issue from a commit 2026-11-12 19:12:27 +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#267
No description provided.