revert: drop the alert feed widget, the notification center replaces it

This commit is contained in:
LukeGus committed 2026-09-30 16:19:40 -05:00
1 parent 84c94bf9a6
commit 0d94ad5e5f
11 files changed
+5 -319

No files matched your search

+2 -2
View File
@@ -18,7 +18,6 @@
"homepage": {
"title": "Homepage",
"addWidget": "Add Widget",
"noWidgetsInCategory": "No widgets in this category",
"editWidget": "Edit Widget",
"zoomIn": "Zoom In",
"zoomOut": "Zoom Out",
@@ -169,7 +168,8 @@
"noServices": "No services set up",
"configureLocation": "Set a location in the widget settings",
"bannerTextPlaceholder": "Banner text",
"serviceNamePlaceholder": "My service"
"serviceNamePlaceholder": "My service",
"noWidgetsInCategory": "No widgets in this category"
},
"permissions": {
"use": {
@@ -136,19 +136,9 @@ export function AddWidgetMenu({ state, onAdd, onClose }: AddWidgetMenuProps) {
>
<span className="text-accent-brand shrink-0">{type.icon}</span>
<div className="flex flex-col min-w-0">
<span className="font-medium truncate">
{type.labelComponent ? (
<type.labelComponent part="name" />
) : (
type.name
)}
</span>
<span className="font-medium truncate">{type.name}</span>
<span className="text-[10px] text-muted-foreground truncate">
{type.labelComponent ? (
<type.labelComponent part="description" />
) : (
type.description
)}
{type.description}
</span>
</div>
</button>
-2
View File
@@ -365,8 +365,6 @@ export interface WidgetTypeDefinition<C = Record<string, unknown>> {
minSize: { w: number; h: number };
component: React.ComponentType<WidgetComponentProps<C>>;
editFormComponent?: React.ComponentType<WidgetEditFormProps<C>>;
/** Renders the translated name or description in the add menu. */
labelComponent?: React.ComponentType<{ part: "name" | "description" }>;
}
export interface DragState {
@@ -49,7 +49,6 @@ function toDefinition(
...(rest as unknown as WidgetTypeDefinition),
component: view,
editFormComponent: components?.editForm,
labelComponent: components?.label,
};
}