feat(ui): interactive graph, strip context menus, days by activity, message times, limit status words
This commit is contained in:
@@ -9,3 +9,14 @@ export const LIMIT_LABELS: Record<string, string> = {
|
||||
export function limitLabel(window: string): string {
|
||||
return LIMIT_LABELS[window] ?? window;
|
||||
}
|
||||
|
||||
// The status as a word, for the windows the API never puts a figure on.
|
||||
export const LIMIT_WORDS: Record<string, string> = {
|
||||
allowed: "clear",
|
||||
allowed_warning: "near the limit",
|
||||
rejected: "rejected",
|
||||
};
|
||||
|
||||
export function limitWord(status: string): string {
|
||||
return LIMIT_WORDS[status] ?? status.replace("_", " ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user