mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
Revert "Add top-level announcement notification"
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user