Revert "Add top-level announcement notification"

This commit is contained in:
Mark IJbema
2026-06-18 14:10:07 +02:00
committed by GitHub
parent b134c1c18f
commit 6190c704c8
2 changed files with 1 additions and 14 deletions
-2
View File
@@ -81,8 +81,6 @@
<!-- packages/kilo-vscode/webview-ui/src/components/marketplace/MarketplaceContribute.tsx -->
- <https://github.com/Kilo-Org/kilocode>
<!-- packages/kilo-vscode/webview-ui/src/components/settings/AboutKiloCodeTab.tsx -->
- <https://github.com/Kilo-Org/kilocode/>
<!-- packages/kilo-vscode/webview-ui/src/context/notifications.tsx -->
- <https://github.com/Kilo-Org/kilocode/issues/6986>
<!-- packages/kilo-vscode/src/agent-manager/constants.ts -->
- <https://github.com/Kilo-Org/kilocode/issues/9618>
@@ -11,16 +11,6 @@ import {
import { useVSCode } from "./vscode"
import type { KilocodeNotification, ExtensionMessage } from "../types/messages"
// Static notifications always shown unconditionally (not fetched from API)
const STATIC_NOTIFICATIONS: KilocodeNotification[] = [
{
id: "star-giveaway-june-2026",
title: "GitHub Star Giveaway",
message: "We're giving away $500 of AI Credits when we reach 25,000 stars on GitHub. Support us:",
action: { actionText: "github.com/Kilo-Org/kilocode", actionURL: "https://github.com/Kilo-Org/kilocode/" },
},
]
interface NotificationsContextValue {
notifications: Accessor<KilocodeNotification[]>
filteredNotifications: Accessor<KilocodeNotification[]>
@@ -63,8 +53,7 @@ export const NotificationsProvider: ParentComponent = (props) => {
const filteredNotifications = createMemo(() => {
const dismissed = dismissedIds()
const all = [...STATIC_NOTIFICATIONS, ...notifications()]
return all.filter((n) => !dismissed.includes(n.id))
return notifications().filter((n) => !dismissed.includes(n.id))
})
const dismiss = (id: string) => {