From fdcf1200fb6107329ab138b916d1cd52d6088851 Mon Sep 17 00:00:00 2001
From: fylorn <249551762+fylorn@users.noreply.github.com>
Date: Fri, 18 Sep 2026 20:25:41 +0800
Subject: [PATCH] feat: choose per category whether a notice interrupts, and
report unreachable upstreams
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Each category of notice can now raise a system notification, stay in the
app's list, or be turned off, from a new section in Settings. A notice
that interrupted also offers "不再弹出此类" in the list, which keeps that
category in the app from then on. The setting is per category, not per
notice: the same kind of thing will happen again tomorrow, and what the
user means is "this kind of thing should not interrupt me".
Turning a category off also withdraws what is open in it, because keeping
an old notice around would ignore what the user just said.
Upstreams that cannot be reached are now reported as well. Core's
circuit-breaker "closed" after its cooldown means "may try again", not
"recovered", so treating it as recovery would let an upstream that is still
down open and close every minute and never outlast the hold. Recovery is
taken only from a request the upstream actually served. The category stays
in the app by default: most setups have a fallback, and a failure the
fallback caught is not worth an interruption.
Co-Authored-By: Claude Opus 5
---
src-tauri/src/lib.rs | 41 +++++++++-
src-tauri/src/notices/mod.rs | 85 ++++++++++++++++++---
src-tauri/src/notices/prefs.rs | 134 +++++++++++++++++++++++++++++++++
src-tauri/src/notices/rules.rs | 20 +++++
src-tauri/src/notices/tests.rs | 93 +++++++++++++++++++++++
src/Config.tsx | 2 +
src/NoticeSettings.tsx | 76 +++++++++++++++++++
src/Notices.tsx | 29 ++++++-
8 files changed, 469 insertions(+), 11 deletions(-)
create mode 100644 src-tauri/src/notices/prefs.rs
create mode 100644 src/NoticeSettings.tsx
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index b97cd8a9..15d3a94b 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -1256,6 +1256,8 @@ pub fn run() {
upstreams::test_proxy,
notices_list,
dismiss_notice,
+ notice_prefs,
+ set_notice_pref,
chatgpt::start_chatgpt_login,
chatgpt::reopen_chatgpt_login,
chatgpt::chatgpt_login_status,
@@ -1326,7 +1328,7 @@ pub fn run() {
Box::new(notices::sink::AppSink::new(handle.clone())),
Box::new(notices::SystemSink::new(handle.clone())),
],
- Some(data_dir().join("notices.json")),
+ Some(data_dir()),
);
app.manage(notices.clone());
app.manage(AppState {
@@ -1632,6 +1634,43 @@ fn dismiss_notice(notices: tauri::State<'_, Arc>, key: String)
notices.dismiss(&key);
}
+/// 设置页上的一行:一类提醒,和它现在怎么对待
+#[derive(serde::Serialize)]
+struct NoticePref {
+ category: notices::Category,
+ label: &'static str,
+ mode: notices::Mode,
+}
+
+fn notice_prefs_view(n: ¬ices::Notices) -> Vec {
+ n.modes()
+ .into_iter()
+ .map(|(category, mode)| NoticePref {
+ category,
+ label: category.label(),
+ mode,
+ })
+ .collect()
+}
+
+#[tauri::command]
+fn notice_prefs(notices: tauri::State<'_, Arc>) -> Vec {
+ notice_prefs_view(¬ices)
+}
+
+/// 改一类提醒的对待方式。**返回改完之后的全部**,界面以它为准
+#[tauri::command]
+fn set_notice_pref(
+ notices: tauri::State<'_, Arc>,
+ category: notices::Category,
+ mode: notices::Mode,
+) -> Result, String> {
+ notices
+ .set_mode(category, mode)
+ .map_err(|e| format!("无法保存设置:{e}"))?;
+ Ok(notice_prefs_view(¬ices))
+}
+
/// 第一次开机自启之后提示一次「我在菜单栏这儿」,之后永不再弹。
///
/// **每次开机都弹是噪音**,而噪音的代价是用户学会忽略通知 —— 包括那些
diff --git a/src-tauri/src/notices/mod.rs b/src-tauri/src/notices/mod.rs
index 043080c1..75a2be96 100644
--- a/src-tauri/src/notices/mod.rs
+++ b/src-tauri/src/notices/mod.rs
@@ -26,10 +26,12 @@ use std::collections::{HashMap, VecDeque};
use std::sync::{Arc, Mutex};
use std::time::{Duration, Instant};
+pub mod prefs;
pub mod rules;
pub mod sink;
mod store;
+pub use prefs::{Category, Mode};
pub use sink::{Sink, SystemSink};
/// 去抖:故障类要持续这么久才说。用户已经在等结果的那几件事不等(见 [`Signal::hold`])
@@ -142,6 +144,8 @@ impl Signal {
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct Notice {
pub key: String,
+ /// 属于哪一类。「不再通知此类」按它来
+ pub category: Category,
pub level: Level,
pub title: String,
pub body: String,
@@ -184,14 +188,26 @@ struct State {
pub struct Notices {
state: Mutex,
sinks: Vec>,
- /// 落盘的位置。关窗期间发生的事要留得住
- file: Option,
+ /// 每一类怎么对待
+ prefs: Mutex,
+ /// 落盘的目录。关窗期间发生的事要留得住,设置也在这里
+ dir: Option,
}
+const OPEN_FILE: &str = "notices.json";
+const PREFS_FILE: &str = "notice-prefs.json";
+
impl Notices {
- /// `file` 是留存的位置;`None` 表示只在内存里(测试用)
- pub fn new(sinks: Vec>, file: Option) -> Arc {
- let open = file.as_deref().map(store::load).unwrap_or_default();
+ /// `dir` 是留存的目录;`None` 表示只在内存里(测试用)
+ pub fn new(sinks: Vec>, dir: Option) -> Arc {
+ let open = dir
+ .as_deref()
+ .map(|d| store::load(&d.join(OPEN_FILE)))
+ .unwrap_or_default();
+ let prefs = dir
+ .as_deref()
+ .map(|d| prefs::load(&d.join(PREFS_FILE)))
+ .unwrap_or_default();
Arc::new(Self {
state: Mutex::new(State {
open: open
@@ -211,10 +227,53 @@ impl Notices {
..Default::default()
}),
sinks,
- file,
+ prefs: Mutex::new(prefs),
+ dir,
})
}
+ /// 每一类现在怎么对待,按设置页的顺序
+ pub fn modes(&self) -> Vec<(Category, Mode)> {
+ let p = self.prefs.lock().expect("锁未中毒");
+ Category::ALL.iter().map(|c| (*c, p.mode(*c))).collect()
+ }
+
+ /// 改一类的对待方式。**改成「关闭」时,这一类挂着的也一并撤掉** —— 用户说的是
+ /// 「这类事别再出现」,留着一条旧的等于没听见
+ pub fn set_mode(&self, category: Category, mode: Mode) -> std::io::Result<()> {
+ let saved = {
+ let mut p = self.prefs.lock().expect("锁未中毒");
+ p.set(category, mode);
+ p.clone()
+ };
+ if let Some(dir) = &self.dir {
+ prefs::save(&dir.join(PREFS_FILE), &saved)?;
+ }
+ if mode == Mode::Off {
+ let gone: Vec = {
+ let mut g = self.state.lock().expect("锁未中毒");
+ let keys: Vec = g
+ .open
+ .values()
+ .filter(|o| o.notice.category == category)
+ .map(|o| o.notice.key.clone())
+ .collect();
+ for k in &keys {
+ g.open.remove(k);
+ }
+ keys
+ };
+ for k in &gone {
+ for s in &self.sinks {
+ s.withdraw(k);
+ }
+ }
+ self.persist();
+ self.changed();
+ }
+ Ok(())
+ }
+
/// 界面要显示的那一份,最近的在前
pub fn list(&self) -> Vec {
let g = self.state.lock().expect("锁未中毒");
@@ -263,6 +322,11 @@ impl Notices {
}
fn raise(self: &Arc, signal: Signal, at_ms: u64) {
+ let category = Category::of(&signal.key);
+ let mode = self.prefs.lock().expect("锁未中毒").mode(category);
+ if mode == Mode::Off {
+ return;
+ }
let now = Instant::now();
let (notice, deliver, due) = {
let mut g = self.state.lock().expect("锁未中毒");
@@ -285,6 +349,7 @@ impl Notices {
},
None => Notice {
key: signal.key.clone(),
+ category,
level: signal.level,
title: signal.title.clone(),
body: signal.body.clone(),
@@ -297,7 +362,8 @@ impl Notices {
};
// 抖动中、被抑制、或者已经弹过:只留记号
let quiet = muted.is_some_and(|until| now < until) || suppressed || notice.notified;
- let wants = signal.level.interrupts() && !quiet;
+ // 用户说了「只进应用内」的,级别再高也不打断
+ let wants = mode == Mode::System && signal.level.interrupts() && !quiet;
let due = (wants && signal.hold).then(|| now + HOLD);
let deliver = wants && !signal.hold && take_token(&mut g, signal.level);
g.open.insert(
@@ -416,6 +482,7 @@ impl Notices {
for s in &self.sinks {
s.show(&Notice {
key: format!("{key}:recovered"),
+ category: was.notice.category,
level: Level::Info,
title: format!("{}已恢复", was.notice.title),
body: String::new(),
@@ -432,9 +499,9 @@ impl Notices {
}
fn persist(&self) {
- let Some(file) = &self.file else { return };
+ let Some(dir) = &self.dir else { return };
let list = self.list();
- store::save(file, &list);
+ store::save(&dir.join(OPEN_FILE), &list);
}
/// 界面在开着的话,让它重画
diff --git a/src-tauri/src/notices/prefs.rs b/src-tauri/src/notices/prefs.rs
new file mode 100644
index 00000000..88e73222
--- /dev/null
+++ b/src-tauri/src/notices/prefs.rs
@@ -0,0 +1,134 @@
+//! 每一类提醒怎么对待:弹系统通知、只进应用内、还是不要。
+//!
+//! **按类,不按条。**「不再提醒这一条」对一个明天还会再发生的事没有意义;用户
+//! 真正要表达的是「这一类事别打断我」。
+
+use std::collections::BTreeMap;
+use std::path::Path;
+
+/// 提醒的类别。**和去重键的前缀一一对应**(见 [`Category::of`])
+#[derive(
+ Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, serde::Serialize, serde::Deserialize,
+)]
+#[serde(rename_all = "snake_case")]
+pub enum Category {
+ /// 网关停止转发
+ Gateway,
+ /// 上游无法连接
+ Upstream,
+ /// 订阅额度用完
+ Quota,
+ /// 凭据失效、被拒绝、写不回配置
+ Credential,
+ /// 代理不通
+ Proxy,
+ /// 可疑的工具调用、客户端配置里出现的可疑内容
+ Security,
+ /// 配置文件没过校验
+ Config,
+ /// 磁盘空间不足
+ Storage,
+}
+
+impl Category {
+ /// 设置页上的顺序:先是「什么都用不了了」,再是「某一处要处理」
+ pub const ALL: [Category; 8] = [
+ Category::Gateway,
+ Category::Upstream,
+ Category::Quota,
+ Category::Credential,
+ Category::Proxy,
+ Category::Security,
+ Category::Config,
+ Category::Storage,
+ ];
+
+ /// 去重键属于哪一类
+ pub fn of(key: &str) -> Category {
+ let kind = key.split(':').next().unwrap_or(key);
+ match kind {
+ "gateway" => Category::Gateway,
+ "upstream" => Category::Upstream,
+ "quota" => Category::Quota,
+ "credential" | "auth" | "writeback" => Category::Credential,
+ "proxy" => Category::Proxy,
+ "toolwall" | "scan" => Category::Security,
+ "storage" => Category::Storage,
+ // 认不出来的归到配置:那是唯一一个不挂在某个对象上的类
+ _ => Category::Config,
+ }
+ }
+
+ pub fn label(self) -> &'static str {
+ match self {
+ Category::Gateway => "网关停止转发",
+ Category::Upstream => "上游无法连接",
+ Category::Quota => "订阅额度用完",
+ Category::Credential => "凭据失效或被拒绝",
+ Category::Proxy => "代理不通",
+ Category::Security => "可疑的工具调用与客户端配置",
+ Category::Config => "配置文件未通过校验",
+ Category::Storage => "磁盘空间不足",
+ }
+ }
+
+ /// 出厂设置。
+ ///
+ /// **上游无法连接默认只进应用内**:多数人配了回退,一家上游挂了请求照样有人接,
+ /// 为一次被接住的故障打断用户不值得;而熔断信号本身就会随流量开开合合。
+ fn default_mode(self) -> Mode {
+ match self {
+ Category::Upstream => Mode::App,
+ _ => Mode::System,
+ }
+ }
+}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
+#[serde(rename_all = "snake_case")]
+pub enum Mode {
+ /// 弹系统通知(级别够的话)
+ System,
+ /// 只进应用内的提醒列表
+ App,
+ /// 不记录
+ Off,
+}
+
+/// 用户改过的那几类。**没改过的不存**,出厂设置变了会跟着变
+#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
+pub struct Prefs {
+ #[serde(default)]
+ modes: BTreeMap,
+}
+
+impl Prefs {
+ pub fn mode(&self, c: Category) -> Mode {
+ self.modes.get(&c).copied().unwrap_or(c.default_mode())
+ }
+
+ pub fn set(&mut self, c: Category, m: Mode) {
+ if m == c.default_mode() {
+ self.modes.remove(&c);
+ } else {
+ self.modes.insert(c, m);
+ }
+ }
+}
+
+/// 读不出来就按出厂设置:一份坏掉的设置不该挡住提醒
+pub fn load(file: &Path) -> Prefs {
+ std::fs::read(file)
+ .ok()
+ .and_then(|b| serde_json::from_slice(&b).ok())
+ .unwrap_or_default()
+}
+
+pub fn save(file: &Path, p: &Prefs) -> std::io::Result<()> {
+ if let Some(dir) = file.parent() {
+ std::fs::create_dir_all(dir)?;
+ }
+ let mut text = serde_json::to_vec_pretty(p).map_err(std::io::Error::other)?;
+ text.push(b'\n');
+ std::fs::write(file, text)
+}
diff --git a/src-tauri/src/notices/rules.rs b/src-tauri/src/notices/rules.rs
index 1836d4cc..39e2cfbe 100644
--- a/src-tauri/src/notices/rules.rs
+++ b/src-tauri/src/notices/rules.rs
@@ -21,6 +21,7 @@ const CONFIG: &str = "config";
pub fn suppresses(key: &str) -> &'static [&'static str] {
match key {
"gateway" => &[
+ "upstream:",
"quota:",
"credential:",
"auth:",
@@ -69,6 +70,25 @@ pub fn from_event(ev: &Event) -> Vec {
.filter(|w| w.status.as_deref() != Some("rejected"))
.map(|w| Signal::cleared(format!("quota:{provider}:{}", w.window)))
.collect(),
+ // **熔断打开才算出事。**冷却到点的那条 `closed` 只是「可以再试」,不是恢复了 ——
+ // 当成恢复的话,一家一直不通的上游每分钟开合一次,去抖永远等不满
+ Event::HealthChanged {
+ provider, state, ..
+ } if state == "open" => vec![
+ Signal::raised(
+ format!("upstream:{provider}"),
+ Level::Warning,
+ format!("上游「{provider}」无法连接"),
+ )
+ .body("连续多次请求失败,暂停向其转发。".to_string())
+ .view(UPSTREAMS),
+ ],
+ // 恢复要有证据:这家真的又接下了一个请求
+ Event::RequestRouted { attempts, .. } => attempts
+ .iter()
+ .filter(|a| a.outcome == "served")
+ .map(|a| Signal::cleared(format!("upstream:{}", a.provider)))
+ .collect(),
Event::CredentialExpired {
provider, detail, ..
} => vec![
diff --git a/src-tauri/src/notices/tests.rs b/src-tauri/src/notices/tests.rs
index bedfdf02..e128c6e6 100644
--- a/src-tauri/src/notices/tests.rs
+++ b/src-tauri/src/notices/tests.rs
@@ -204,6 +204,99 @@ async fn what_is_dismissed_stays_dismissed_until_it_happens_again() {
assert_eq!(b.titles().len(), 2, "划掉之后再次发生要重新说");
}
+// ---------------------------------------------------------------- 每一类的设置
+
+#[tokio::test]
+async fn a_category_turned_off_is_not_even_recorded() {
+ let b = bed();
+ b.bus.set_mode(Category::Quota, Mode::Off).unwrap();
+ b.bus.ingest(quota("relay"), T0);
+ assert!(b.titles().is_empty());
+ assert!(b.bus.list().is_empty(), "关闭的一类不该留在列表里");
+}
+
+#[tokio::test]
+async fn a_category_kept_in_the_app_is_listed_but_never_interrupts() {
+ let b = bed();
+ b.bus.set_mode(Category::Quota, Mode::App).unwrap();
+ b.bus.ingest(quota("relay"), T0);
+ assert!(b.titles().is_empty(), "只进应用内的不该弹");
+ assert_eq!(b.bus.list().len(), 1);
+ assert_eq!(b.bus.list()[0].category, Category::Quota);
+}
+
+#[tokio::test]
+async fn turning_a_category_off_takes_what_is_open_with_it() {
+ let b = bed();
+ b.bus.ingest(quota("relay"), T0);
+ b.bus.ingest(
+ Signal::raised("proxy:hk", Level::Warning, "代理「hk」不通").now(),
+ T0 + 1,
+ );
+ b.bus.set_mode(Category::Quota, Mode::Off).unwrap();
+ let keys: Vec = b.bus.list().into_iter().map(|n| n.key).collect();
+ assert_eq!(keys, ["proxy:hk"]);
+ assert!(
+ b.withdrawn
+ .lock()
+ .unwrap()
+ .contains(&"quota:relay:weekly".to_string())
+ );
+}
+
+#[test]
+fn every_key_belongs_to_the_category_its_setting_is_shown_under() {
+ for (key, c) in [
+ ("gateway", Category::Gateway),
+ ("upstream:relay", Category::Upstream),
+ ("quota:chatgpt:5h", Category::Quota),
+ ("credential:chatgpt", Category::Credential),
+ ("auth:relay", Category::Credential),
+ ("writeback:claude-max", Category::Credential),
+ ("proxy:hk", Category::Proxy),
+ ("toolwall:relay", Category::Security),
+ ("scan", Category::Security),
+ ("config", Category::Config),
+ ("storage", Category::Storage),
+ ] {
+ assert_eq!(Category::of(key), c, "{key}");
+ }
+}
+
+#[tokio::test(start_paused = true)]
+async fn an_unreachable_upstream_stays_in_the_app_by_default_and_needs_real_evidence_to_clear() {
+ let b = bed();
+ let health = |state: &str| tw_api::Event::HealthChanged {
+ id: 1,
+ provider: "relay".into(),
+ state: state.into(),
+ at_ms: T0,
+ };
+ b.bus.on_event(&health("open"));
+ // 冷却到点的那条「关闭」只是可以再试,**不是恢复**
+ b.bus.on_event(&health("closed"));
+ tokio::time::advance(Duration::from_secs(90)).await;
+ tokio::task::yield_now().await;
+ assert!(b.titles().is_empty(), "多数人配了回退,默认不打断");
+ assert_eq!(b.bus.list().len(), 1, "冷却结束不该把它撤掉");
+
+ // 这家真的又接下了一个请求
+ b.bus.on_event(&tw_api::Event::RequestRouted {
+ id: 2,
+ rule: "兜底".into(),
+ group: None,
+ attempts: vec![tw_api::AttemptView {
+ provider: "relay".into(),
+ outcome: "served".into(),
+ status: Some(200),
+ error: None,
+ ms: 800,
+ }],
+ billing: "per-token".into(),
+ });
+ assert!(b.bus.list().is_empty());
+}
+
// ---------------------------------------------------------------- 规则
#[test]
diff --git a/src/Config.tsx b/src/Config.tsx
index 7638d1a4..5338defb 100644
--- a/src/Config.tsx
+++ b/src/Config.tsx
@@ -6,6 +6,7 @@ import { invoke } from "@tauri-apps/api/core";
import { useEffect } from "react";
import DryRun from "./DryRun";
import Update from "./Update";
+import NoticeSettings from "./NoticeSettings";
import type { ConfigText, NicView, Overview, PatchOp } from "./types";
import { Button } from "@/ui/button";
import { Input } from "@/ui/input";
@@ -816,6 +817,7 @@ export default function Config({
)}
{section === "settings" && }
+ {section === "settings" && }
{section === "gateway" && (
diff --git a/src/NoticeSettings.tsx b/src/NoticeSettings.tsx
new file mode 100644
index 00000000..763a44b8
--- /dev/null
+++ b/src/NoticeSettings.tsx
@@ -0,0 +1,76 @@
+import { useEffect, useState } from "react";
+import { invoke } from "@tauri-apps/api/core";
+import { toast } from "sonner";
+import { NativeSelect, NativeSelectOption } from "@/ui/native-select";
+
+export type NoticeMode = "system" | "app" | "off";
+
+export interface NoticePref {
+ category: string;
+ label: string;
+ mode: NoticeMode;
+}
+
+export const MODES: { id: NoticeMode; label: string }[] = [
+ { id: "system", label: "系统通知" },
+ { id: "app", label: "仅在应用内" },
+ { id: "off", label: "关闭" },
+];
+
+/**
+ * 设置里的「提醒」:每一类怎么对待。
+ *
+ * **按类,不按条** —— 「不再提醒这一条」对明天还会再发生的事没有意义。
+ */
+export default function NoticeSettings() {
+ const [prefs, setPrefs] = useState(null);
+
+ useEffect(() => {
+ void invoke("notice_prefs")
+ .then(setPrefs)
+ .catch(() => {});
+ }, []);
+
+ if (!prefs) return null;
+
+ async function set(category: string, mode: NoticeMode) {
+ const before = prefs;
+ // 先画上,以后端返回的为准 —— 写不进去的时候要弹回去
+ setPrefs((p) => p?.map((x) => (x.category === category ? { ...x, mode } : x)) ?? p);
+ try {
+ setPrefs(await invoke("set_notice_pref", { category, mode }));
+ } catch (e) {
+ setPrefs(before);
+ toast.error(typeof e === "string" ? e : String(e));
+ }
+ }
+
+ return (
+
+ 提醒
+
+ 选择「系统通知」的类别在需要处理时弹出系统通知,其余只记录在工具栏的提醒列表中。
+
+
+ {prefs.map((p) => (
+
+
+ void set(p.category, e.target.value as NoticeMode)}
+ >
+ {MODES.map((m) => (
+
+ {m.label}
+
+ ))}
+
+
+ ))}
+
+
+ );
+}
diff --git a/src/Notices.tsx b/src/Notices.tsx
index 2bb636ef..b31da2b9 100644
--- a/src/Notices.tsx
+++ b/src/Notices.tsx
@@ -4,12 +4,15 @@ import { invoke } from "@tauri-apps/api/core";
import { listen } from "@tauri-apps/api/event";
import { Button } from "@/ui/button";
import { Popover, PopoverContent, PopoverTrigger } from "@/ui/popover";
+import { toast } from "sonner";
import { when } from "@/format";
import { cn } from "@/lib/utils";
/** 一条提醒。判定在 Rust 侧,这里只负责显示 */
export interface Notice {
key: string;
+ /** 属于哪一类。「不再弹出此类」按它来 */
+ category: string;
level: "info" | "warning" | "critical";
title: string;
body: string;
@@ -52,6 +55,13 @@ export function Notices({ onNavigate }: { onNavigate: (view: string) => void })
void invoke("dismiss_notice", { key });
}
+ /** 这一类以后只记录、不弹出。**按类**:同一类事明天还会再发生 */
+ function quiet(category: string) {
+ invoke("set_notice_pref", { category, mode: "app" })
+ .then(() => toast.success("此类提醒今后仅在应用内显示,可在设置中更改"))
+ .catch((e) => toast.error(typeof e === "string" ? e : String(e)));
+ }
+
const urgent = list.filter((n) => n.level !== "info").length;
return (
@@ -108,7 +118,24 @@ export function Notices({ onNavigate }: { onNavigate: (view: string) => void })
)}
{n.body && {n.body}
}
- {when(n.at_ms)}
+
+ {when(n.at_ms)}
+ {n.notified && (
+ <>
+ {" · "}
+
+ >
+ )}
+