-
+
+ {jobs.length ? (
+
+
+
onQueryChange(event.target.value)}
aria-label={tx("settings.automations.search", "Search task, message, linked chat, or schedule")}
placeholder={tx("settings.automations.search", "Search task, message, linked chat, or schedule")}
- className={cn("h-9 w-full rounded-full pl-9 text-[13px]", SETTINGS_SEARCH_INPUT_CLASS)}
+ className={cn("h-12 ps-11 text-[15px]", SETTINGS_SEARCH_INPUT_CLASS)}
/>
-
-
-
-
-
- {(Object.keys(sortLabel) as AutomationSort[]).map((value) => (
- onSortChange(value)}>
- {sortLabel[value]}
- {sort === value ? : null}
-
- ))}
-
-
-
-
- {summaryOptions.map((option) => (
-
- ))}
-
-
- ) : null}
+
+ ({
+ value: option.value,
+ label: <>{option.label} {option.count}>,
+ }))}
+ onChange={onFilterChange}
+ />
+
+
+ ) : null}
- {error ?
: null}
- {loading && !payload ? (
-
-
- {tx("settings.automations.loading", "Loading automations...")}
-
- ) : (
- <>
- {personal.length ? (
-
- {personal.map(renderJob)}
-
- ) : !personalJobs.length && !query && filter === "all" ? (
-
-
- {tx("settings.automations.empty", "No automations yet.")}
-
-
- {tx("settings.automations.emptyHint", "Tell nanobot in a chat what you'd like it to do on a schedule.")}
-
-
- ) : !filtered.length ? (
-
-
{tx("settings.automations.noMatches", "No automations match this view.")}
-
+
+ {jobs.length ? (
+
+
+
+ {tx("settings.automations.yourTasks", "Your automations")}
+
+ {personal.length}
+
+
+
+
+
+
+ {(Object.keys(sortLabel) as AutomationSort[]).map((value) => (
+ onSortChange(value)}>
+ {sortLabel[value]}
+ {sort === value ? : null}
+
+ ))}
+
+
) : null}
- {system.length ? (
-
-
-
-
-
- {system.map(renderJob)}
-
-
-
-
- ) : null}
- >
- )}
+
+ {error ? : null}
+ {loading && !payload ? (
+
+
+ {tx("settings.automations.loading", "Loading automations...")}
+
+ ) : (
+
+ {personal.length ? (
+
+ {personal.map(renderJob)}
+
+ ) : !personalJobs.length && !query && filter === "all" ? (
+
+
+ {tx("settings.automations.empty", "No automations yet.")}
+
+
+ {tx("settings.automations.emptyHint", "Tell nanobot in a chat what you'd like it to do on a schedule.")}
+
+
+ ) : !filtered.length ? (
+
+
{tx("settings.automations.noMatches", "No automations match this view.")}
+
+
+ ) : null}
+ {system.length ? (
+
+
+
+
+ {system.map(renderJob)}
+
+
+
+ ) : null}
+
+ )}
+
+