summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-12 14:54:51 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-12 14:54:51 -0700
commit0b19ccaea4ea36a3bdda97ce93b1a6a9758da038 (patch)
treee557fcefdd1a9603cfcb26d26146e8daccb1c2c8
parent49b8eb14e872786ffcfe55d97223915d3b7d0273 (diff)
downloadsncontinue-0b19ccaea4ea36a3bdda97ce93b1a6a9758da038.tar.gz
sncontinue-0b19ccaea4ea36a3bdda97ce93b1a6a9758da038.tar.bz2
sncontinue-0b19ccaea4ea36a3bdda97ce93b1a6a9758da038.zip
fixing feedback on dlt recipes
-rw-r--r--continuedev/src/continuedev/core/main.py2
-rw-r--r--continuedev/src/continuedev/recipes/AddTransformRecipe/main.py2
-rw-r--r--continuedev/src/continuedev/recipes/AddTransformRecipe/steps.py15
-rw-r--r--continuedev/src/continuedev/steps/core/core.py2
-rw-r--r--extension/react-app/src/components/StepContainer.tsx2
-rw-r--r--extension/src/continueIdeClient.ts2
6 files changed, 10 insertions, 15 deletions
diff --git a/continuedev/src/continuedev/core/main.py b/continuedev/src/continuedev/core/main.py
index 3053e5a1..81aaaf2e 100644
--- a/continuedev/src/continuedev/core/main.py
+++ b/continuedev/src/continuedev/core/main.py
@@ -147,7 +147,7 @@ class Step(ContinueBaseModel):
if self.description is not None:
d["description"] = self.description
else:
- d["description"] = "`Description loading...`"
+ d["description"] = "`Step in progress...`"
return d
@validator("name", pre=True, always=True)
diff --git a/continuedev/src/continuedev/recipes/AddTransformRecipe/main.py b/continuedev/src/continuedev/recipes/AddTransformRecipe/main.py
index e9a998e3..fdd343f5 100644
--- a/continuedev/src/continuedev/recipes/AddTransformRecipe/main.py
+++ b/continuedev/src/continuedev/recipes/AddTransformRecipe/main.py
@@ -19,7 +19,7 @@ class AddTransformRecipe(Step):
- Run the pipeline and view the transformed data in a Streamlit app"""), name="Add transformation to a dlt pipeline") >>
SetUpChessPipelineStep() >>
WaitForUserInputStep(
- prompt="How do you want to transform the Chess.com API data before loading it? For example, you could use the `python-chess` library to decode the moves or filter out certain games")
+ prompt="How do you want to transform the Chess.com API data before loading it? For example, you could filter out games that ended in a draw.")
)
await sdk.run_step(
AddTransformStep(
diff --git a/continuedev/src/continuedev/recipes/AddTransformRecipe/steps.py b/continuedev/src/continuedev/recipes/AddTransformRecipe/steps.py
index 7bb0fc23..f042424c 100644
--- a/continuedev/src/continuedev/recipes/AddTransformRecipe/steps.py
+++ b/continuedev/src/continuedev/recipes/AddTransformRecipe/steps.py
@@ -31,12 +31,11 @@ class SetUpChessPipelineStep(Step):
'pip install -r requirements.txt',
'pip install pandas streamlit' # Needed for the pipeline show step later
], name="Set up Python environment", description=dedent(f"""\
- Running the following commands:
- - `python3 -m venv env`: Create a Python virtual environment
- - `source env/bin/activate`: Activate the virtual environment
- - `pip install dlt`: Install dlt
- - `dlt init chess duckdb`: Create a new dlt pipeline called "chess" that loads data into a local DuckDB instance
- - `pip install -r requirements.txt`: Install the Python dependencies for the pipeline"""))
+ - Create a Python virtual environment: `python3 -m venv env`
+ - Activate the virtual environment: `source env/bin/activate`
+ - Install dlt: `pip install dlt`
+ - Create a new dlt pipeline called "chess" that loads data into a local DuckDB instance: `dlt init chess duckdb`
+ - Install the Python dependencies for the pipeline: `pip install -r requirements.txt`"""))
class AddTransformStep(Step):
@@ -58,10 +57,6 @@ class AddTransformStep(Step):
# Open the file and highlight the function to be edited
await sdk.ide.setFileOpen(abs_filepath)
- await sdk.ide.highlightCode(range_in_file=RangeInFile(
- filepath=abs_filepath,
- range=Range.from_shorthand(47, 0, 51, 0)
- ))
with open(os.path.join(os.path.dirname(__file__), 'dlt_transform_docs.md')) as f:
dlt_transform_docs = f.read()
diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py
index 53df65cc..392339c6 100644
--- a/continuedev/src/continuedev/steps/core/core.py
+++ b/continuedev/src/continuedev/steps/core/core.py
@@ -88,7 +88,7 @@ class ShellCommandsStep(Step):
This is a brief summary of the error followed by a suggestion on how it can be fixed:"""), with_history=sdk.chat_context)
sdk.raise_exception(
- title="Error while running query", message=output, with_step=MessageStep(name=f"Suggestion to solve error {AI_ASSISTED_STRING}", message=suggestion)
+ title="Error while running query", message=output, with_step=MessageStep(name=f"Suggestion to solve error {AI_ASSISTED_STRING}", message=f"{suggestion}\n\nYou can click the retry button on the failed step to try again.")
)
return TextObservation(text=output)
diff --git a/extension/react-app/src/components/StepContainer.tsx b/extension/react-app/src/components/StepContainer.tsx
index 8ea54325..3408053b 100644
--- a/extension/react-app/src/components/StepContainer.tsx
+++ b/extension/react-app/src/components/StepContainer.tsx
@@ -169,7 +169,7 @@ function StepContainer(props: StepContainerProps) {
<ContentDiv hidden={!open}>
{open && false && (
<>
- <pre className="overflow-scroll">
+ <pre className="overflow-x-scroll">
Step Details:
<br />
{JSON.stringify(props.historyNode.step, null, 2)}
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts
index bbaf5f08..42671ade 100644
--- a/extension/src/continueIdeClient.ts
+++ b/extension/src/continueIdeClient.ts
@@ -176,7 +176,7 @@ class IdeProtocolClient {
// If not, ask user for secret
while (typeof secret === "undefined" || secret === "") {
secret = await vscode.window.showInputBox({
- prompt: `Enter secret for ${key}`,
+ prompt: `Enter secret for ${key}. You can edit this later in the Continue VS Code settings.`,
password: true,
});
}