Skip to content

Commit 7451294

Browse files
authored
onboarding and polish for v0.12 (#2411)
1 parent ef6366f commit 7451294

File tree

18 files changed

+573
-553
lines changed

18 files changed

+573
-553
lines changed

cmd/wsh/cmd/wshcmd-editconfig.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"github.com/wavetermdev/waveterm/pkg/wshrpc/wshclient"
1414
)
1515

16+
var editConfigMagnified bool
17+
1618
var editConfigCmd = &cobra.Command{
1719
Use: "editconfig [configfile]",
1820
Short: "edit Wave configuration files",
@@ -23,6 +25,7 @@ var editConfigCmd = &cobra.Command{
2325
}
2426

2527
func init() {
28+
editConfigCmd.Flags().BoolVarP(&editConfigMagnified, "magnified", "m", false, "open config in magnified mode")
2629
rootCmd.AddCommand(editConfigCmd)
2730
}
2831

@@ -52,7 +55,8 @@ func editConfigRun(cmd *cobra.Command, args []string) (rtnErr error) {
5255
waveobj.MetaKey_Edit: true,
5356
},
5457
},
55-
Focused: true,
58+
Magnified: editConfigMagnified,
59+
Focused: true,
5660
}
5761

5862
_, err = RpcClient.SendRpcRequest(wshrpc.Command_CreateBlock, wshCmd, &wshrpc.RpcOpts{Timeout: 2000})

emain/emain-window.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export type WindowOpts = {
2626
unamePlatform: string;
2727
};
2828

29-
const MIN_WINDOW_WIDTH = 600;
30-
const MIN_WINDOW_HEIGHT = 350;
29+
const MIN_WINDOW_WIDTH = 800;
30+
const MIN_WINDOW_HEIGHT = 500;
3131

3232
export const waveWindowMap = new Map<string, WaveBrowserWindow>(); // waveWindowId -> WaveBrowserWindow
3333

frontend/app/aipanel/aipanel.tsx

Lines changed: 215 additions & 62 deletions
Large diffs are not rendered by default.

frontend/app/aipanel/aipanelheader.tsx

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
import { ContextMenuModel } from "@/app/store/contextmenu";
5-
import { useAtom, useAtomValue } from "jotai";
5+
import { useAtomValue } from "jotai";
66
import { memo } from "react";
77
import { WaveAIModel } from "./waveai-model";
88

@@ -14,18 +14,6 @@ interface AIPanelHeaderProps {
1414

1515
export const AIPanelHeader = memo(({ onClose, model, onClearChat }: AIPanelHeaderProps) => {
1616
const widgetAccess = useAtomValue(model.widgetAccessAtom);
17-
const currentModel = useAtomValue(model.modelAtom);
18-
19-
const modelOptions = [
20-
{ value: "gpt-5", label: "GPT-5" },
21-
{ value: "gpt-5-mini", label: "GPT-5 Mini" },
22-
{ value: "claude-sonnet-4-5", label: "Claude Sonnet 4.5" },
23-
];
24-
25-
const getModelLabel = (modelValue: string): string => {
26-
const option = modelOptions.find((opt) => opt.value === modelValue);
27-
return option?.label ?? modelValue;
28-
};
2917

3018
const handleKebabClick = (e: React.MouseEvent) => {
3119
const menu: ContextMenuItem[] = [
@@ -36,18 +24,6 @@ export const AIPanelHeader = memo(({ onClose, model, onClearChat }: AIPanelHeade
3624
},
3725
},
3826
{ type: "separator" },
39-
{
40-
label: `Model (${getModelLabel(currentModel)})`,
41-
submenu: modelOptions.map((option) => ({
42-
label: option.label,
43-
type: currentModel === option.value ? "checkbox" : undefined,
44-
checked: currentModel === option.value,
45-
click: () => {
46-
model.setModel(option.value);
47-
},
48-
})),
49-
},
50-
{ type: "separator" },
5127
{
5228
label: "Hide Wave AI",
5329
click: () => {

0 commit comments

Comments
 (0)