Skip to content

Search index: plumb active letter_id into IndexableMessage #441

@intendednull

Description

@intendednull

Search index hard-code letter_id: None in crates/web/src/app.rs indexer effect. in:#letter / SearchScope::ThisLetter operator never match anything that lives inside a letter.

Sibling issue #355 fix has_image / has_file. Letter id park here — need new active-letter Leptos signal piped into indexer effect, plus letter-context detection on DisplayMessage (no letter_id field on it today).

Fix:

  • Add active-letter signal on AppState (or read from existing letter focus state)
  • Pass into indexer effect in app.rs
  • Pass through IndexableMessage::from_display_message(..., letter_id) (already param)
  • Verify SearchScope::ThisLetter(id) + in:#letter:NAME match real msgs

Touch app-state shape so park behind own issue.

Refs #355

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions