Skip to content

Commit 1c1febf

Browse files
committed
Start with default prompt and make input clearable
Signed-off-by: Brianna Major <brianna.major@kitware.com>
1 parent 2917a5d commit 1c1febf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/vtk_prompt/state/initializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
def initialize_state(app: Any) -> None:
2323
"""Initialize application state variables."""
2424
# App state variables
25-
app.state.query_text = ""
25+
app.state.query_text = "Create a red sphere with lighting"
2626
app.state.generated_code = ""
2727
app.state.generated_explanation = ""
2828
app.state.is_loading = False

src/vtk_prompt/ui/layout/content.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ def build_content(layout: Any, app: Any) -> None:
7070
# Query input
7171
vuetify.VTextarea(
7272
label="Describe VTK visualization",
73-
v_model=("query_text", ""),
73+
v_model=("query_text", "Create a red sphere with lighting"),
7474
rows=4,
7575
variant="outlined",
76-
placeholder=("e.g., Create a red sphere with lighting"),
7776
hide_details=True,
7877
no_resize=True,
78+
clearable=True,
7979
)
8080
# Generate button
8181
vuetify.VBtn(

0 commit comments

Comments
 (0)