Skip to content

Commit c8de99a

Browse files
updated changelog files 2
1 parent 3b3e343 commit c8de99a

File tree

4 files changed

+21
-25
lines changed

4 files changed

+21
-25
lines changed

webview-ui/src/components/history/HistoryPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const HistoryPreview = ({ showHistoryView }: HistoryPreviewProps) => {
1616
const handleHistorySelect = (id: string) => {
1717
// TaskServiceClient.showTaskWithId({ value: id }).catch((error: any) => console.error("Error showing task:", error))
1818
// TODO: Re-implement task selection based on new service definitions or state management
19-
console.log("Attempted to show task with ID:", id, " - Functionality needs update.");
19+
console.log("Attempted to show task with ID:", id, " - Functionality needs update.")
2020
}
2121

2222
const toggleExpanded = () => {

webview-ui/src/components/history/HistoryView.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
7676
// console.error("Error loading task history:", error)
7777
// }
7878
// TODO: Re-implement task history loading based on new service definitions or state management
79-
console.log("Attempted to load task history - Functionality needs update.");
80-
setFilteredTasks([]);
79+
console.log("Attempted to load task history - Functionality needs update.")
80+
setFilteredTasks([])
8181
}, [showFavoritesOnly, showCurrentWorkspaceOnly, searchQuery, sortOption, taskHistory])
8282

8383
// Load when filters change
@@ -124,7 +124,7 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
124124
// }, 1000)
125125
// }
126126
// TODO: Re-implement favorite toggling
127-
console.log("Attempted to toggle favorite for task:", taskId, " - Functionality needs update.");
127+
console.log("Attempted to toggle favorite for task:", taskId, " - Functionality needs update.")
128128
},
129129
[showFavoritesOnly, loadTaskHistory],
130130
)
@@ -154,7 +154,7 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
154154
const handleShowTaskWithId = useCallback((id: string) => {
155155
// TaskServiceClient.showTaskWithId({ value: id }).catch((error: any) => console.error("Error showing task:", error))
156156
// TODO: Re-implement task showing
157-
console.log("Attempted to show task with ID:", id, " - Functionality needs update.");
157+
console.log("Attempted to show task with ID:", id, " - Functionality needs update.")
158158
}, [])
159159

160160
const handleHistorySelect = useCallback((itemId: string, checked: boolean) => {
@@ -170,7 +170,7 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
170170
const handleDeleteHistoryItem = useCallback((id: string) => {
171171
// TaskServiceClient.deleteTasksWithIds({ value: [id] })
172172
// TODO: Re-implement task deletion
173-
console.log("Attempted to delete task with ID:", id, " - Functionality needs update.");
173+
console.log("Attempted to delete task with ID:", id, " - Functionality needs update.")
174174
}, [])
175175

176176
const handleDeleteSelectedHistoryItems = useCallback((ids: string[]) => {
@@ -179,8 +179,8 @@ const HistoryView = ({ onDone }: HistoryViewProps) => {
179179
// setSelectedItems([])
180180
// }
181181
// TODO: Re-implement batch task deletion
182-
console.log("Attempted to delete tasks with IDs:", ids, " - Functionality needs update.");
183-
if (ids.length > 0) setSelectedItems([]);
182+
console.log("Attempted to delete tasks with IDs:", ids, " - Functionality needs update.")
183+
if (ids.length > 0) setSelectedItems([])
184184
}, [])
185185

186186
const formatDate = useCallback((timestamp: number) => {
@@ -729,7 +729,7 @@ const ExportButton = ({ itemId }: { itemId: string }) => (
729729
e.stopPropagation()
730730
// TaskServiceClient.exportTaskWithId({ value: itemId }).catch((err: any) => console.error("Failed to export task:", err))
731731
// TODO: Re-implement task exporting
732-
console.log("Attempted to export task with ID:", itemId, " - Functionality needs update.");
732+
console.log("Attempted to export task with ID:", itemId, " - Functionality needs update.")
733733
}}>
734734
<div style={{ fontSize: "11px", fontWeight: 500, opacity: 1 }}>EXPORT</div>
735735
</VSCodeButton>

webview-ui/src/components/mcp/configuration/tabs/marketplace/McpMarketplaceCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ const McpMarketplaceCard = ({ item, installedServers }: McpMarketplaceCardProps)
119119
// console.error("Failed to download MCP:", error)
120120
// }
121121
// TODO: Re-implement MCP download/installation
122-
console.log("Attempted to download MCP:", item.mcpId, " - Functionality needs update.");
122+
console.log("Attempted to download MCP:", item.mcpId, " - Functionality needs update.")
123123
// Simulate download finishing for UI purposes, as the actual mechanism is removed/changed
124-
setTimeout(() => setIsDownloading(false), 1000);
124+
setTimeout(() => setIsDownloading(false), 1000)
125125
}
126126
}}
127127
style={{}}>

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -822,19 +822,19 @@ const ApiOptions = ({
822822
const isCustom = e.target.value === "custom"
823823
if (isCustom) {
824824
// TODO: Handle custom Bedrock model selection if re-enabled
825-
console.warn("Custom Bedrock model selection is currently disabled.");
825+
console.warn("Custom Bedrock model selection is currently disabled.")
826826
setApiConfiguration({
827827
...apiConfiguration,
828-
apiModelId: "",
828+
apiModelId: "",
829829
// awsBedrockCustomSelected: true, // Property removed
830830
// awsBedrockCustomModelBaseId: bedrockDefaultModelId, // Property removed
831-
});
831+
})
832832
} else {
833833
setApiConfiguration({
834834
...apiConfiguration,
835835
apiModelId: e.target.value,
836836
// awsBedrockCustomSelected: false, // Property removed
837-
});
837+
})
838838
}
839839
}}
840840
style={{ width: "100%" }}>
@@ -901,10 +901,9 @@ const ApiOptions = ({
901901
</DropdownContainer>
902902
</div>
903903
)} */}
904-
{(selectedModelId === "anthropic.claude-3-7-sonnet-20250219-v1:0"
904+
{selectedModelId === "anthropic.claude-3-7-sonnet-20250219-v1:0" && (
905905
// (apiConfiguration?.awsBedrockCustomSelected && // Property removed
906906
// apiConfiguration?.awsBedrockCustomModelBaseId === "anthropic.claude-3-7-sonnet-20250219-v1:0") // Property removed
907-
) && (
908907
<ThinkingBudgetSlider apiConfiguration={apiConfiguration} setApiConfiguration={setApiConfiguration} />
909908
)}
910909
<ModelInfoView
@@ -2078,9 +2077,8 @@ const ApiOptions = ({
20782077
<span style={{ fontWeight: 500 }}>Model</span>
20792078
</label>
20802079
{selectedProvider === "anthropic" && createDropdown(anthropicModels)}
2081-
{selectedProvider === "vertex" &&
2082-
createDropdown(vertexModels)}
2083-
{/* Was: apiConfiguration?.vertexRegion === "global" ? vertexGlobalModels : vertexModels */}
2080+
{selectedProvider === "vertex" && createDropdown(vertexModels)}
2081+
{/* Was: apiConfiguration?.vertexRegion === "global" ? vertexGlobalModels : vertexModels */}
20842082
{selectedProvider === "gemini" && createDropdown(geminiModels)}
20852083
{selectedProvider === "openai-native" && createDropdown(openAiNativeModels)}
20862084
{selectedProvider === "deepseek" && createDropdown(deepSeekModels)}
@@ -2204,8 +2202,7 @@ const formatTiers = (
22042202

22052203
// Assuming PriceTier is the type of elements in inputPriceTiers/outputPriceTiers
22062204
// If not, this 'any' might need to be replaced with the actual PriceTier type definition if available
2207-
type PriceTier = { tokenLimit: number; price: number; contextWindow?: number };
2208-
2205+
type PriceTier = { tokenLimit: number; price: number; contextWindow?: number }
22092206

22102207
return priceTiers
22112208
.map((tier: PriceTier, index: number, arr: PriceTier[]) => {
@@ -2215,7 +2212,7 @@ const formatTiers = (
22152212
if (price === undefined) return null
22162213

22172214
// Use tier.tokenLimit as PriceTier has tokenLimit, not contextWindow directly for limit definition
2218-
const currentLimit = tier.tokenLimit
2215+
const currentLimit = tier.tokenLimit
22192216

22202217
return (
22212218
<span style={{ paddingLeft: "15px" }} key={index}>
@@ -2256,7 +2253,6 @@ export const ModelInfoView = ({
22562253
const hasInputPriceTiers = !!modelInfo.inputPriceTiers && modelInfo.inputPriceTiers.length > 0
22572254
const hasOutputPriceTiers = !!modelInfo.outputPriceTiers && modelInfo.outputPriceTiers.length > 0
22582255

2259-
22602256
// Create elements for input pricing
22612257
const inputPriceElement = hasInputPriceTiers ? (
22622258
<Fragment key="inputPriceTiers">
@@ -2526,4 +2522,4 @@ export function normalizeApiConfiguration(apiConfiguration?: ApiConfiguration):
25262522
}
25272523
}
25282524

2529-
export default memo(ApiOptions)
2525+
export default memo(ApiOptions)

0 commit comments

Comments
 (0)