reorganize page loading methods

This commit is contained in:
yggverse 2025-01-19 10:17:12 +02:00
parent 8d3c4319c6
commit 0ff182f15d
4 changed files with 354 additions and 369 deletions

View file

@ -9,7 +9,6 @@ pub enum Status {
Input { time: DateTime },
Loading { time: DateTime },
New { time: DateTime },
Redirect { time: DateTime },
SessionRestore { time: DateTime },
SessionRestored { time: DateTime },
Success { time: DateTime },
@ -40,10 +39,7 @@ impl Status {
Gemini::Complete { .. } => Some(0.9),
},
},
Self::Failure { .. }
| Self::Success { .. }
| Self::Redirect { .. }
| Self::Input { .. } => Some(1.0),
Self::Failure { .. } | Self::Success { .. } | Self::Input { .. } => Some(1.0),
Self::New { .. } | Self::SessionRestored { .. } => None,
}
}