replace HybridSet with NoteUnits

This will unify the collections that hold the notes to timelines
and threads and allow the notifications timeline to have grouped
notifications, among other things

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-08-24 23:32:25 -04:00
parent 4992e25b3a
commit 1a93663b1a
7 changed files with 756 additions and 106 deletions

View File

@@ -26,14 +26,16 @@ use std::{rc::Rc, time::SystemTime};
use tracing::{debug, error, info, warn};
pub mod cache;
mod hybrid_set;
pub mod kind;
mod note_units;
pub mod route;
pub mod thread;
mod unit;
pub use cache::TimelineCache;
pub use hybrid_set::{HybridSet, InsertionResponse};
pub use kind::{ColumnTitle, PubkeySource, ThreadSelection, TimelineKind};
pub use note_units::{InsertionResponse, NoteUnits};
pub use unit::{CompositeUnit, NoteUnit, ReactionUnit};
#[derive(Copy, Clone, Eq, PartialEq, Debug, Default)]
pub enum ViewFilter {