@@ -78,6 +71,33 @@ pub async fn family_wordmark(cx: &Cx) -> Result
> {
.boxed())
}
+/// The flyout's marks as final HTML, pure over resolved probes: im's own
+/// row filtered out, every sibling a plain link carrying its probe's dot
+/// — `health-on` while it answers `ok`, `health-off` while it does not —
+/// middots between. Dots only: the probe's body and latency belong to
+/// the admin table, never to the chrome. Extracted from
+/// `family_wordmark` so the tests pin this exact markup without a
+/// router or an asset bundle.
+pub(crate) fn trio_marks<'a>(
+ rows: impl IntoIterator- ,
+) -> String {
+ rows.into_iter()
+ .filter(|(key, _, _)| *key != "im")
+ .map(|(key, url, probe)| {
+ let key = crate::pages::escape(key);
+ let url = crate::pages::escape(url);
+ let dot = match probe {
+ Probe::Up { .. } => "health-on",
+ Probe::Down => "health-off",
+ };
+ format!(
+ r#"{key}"#
+ )
+ })
+ .collect::>()
+ .join(r#"·"#)
+}
+
/// The profile card's face: the photo when the account has one, the name's
/// first letter on a quiet tile when it does not. The URL's `?v=` is the
/// row's `photo_version` — the same number `/directory` answers with — so