Skip to content

Commit

Permalink
release 0.0.9 (#100)
Browse files Browse the repository at this point in the history
* release 0.0.9

* format
  • Loading branch information
LittleLittleCloud authored Nov 3, 2024
1 parent 746de8d commit b254aa1
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 22 deletions.
2 changes: 1 addition & 1 deletion eng/MetaInfo.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>0.0.8</VersionPrefix>
<VersionPrefix>0.0.9</VersionPrefix>
<Authors>LittleLittleCloud</Authors>
<RepositoryType>git</RepositoryType>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand Down
2 changes: 1 addition & 1 deletion src/StepWise.WebAPI/DTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public record StepRunDTO(
[property:JsonPropertyName("step")]
StepDTO? Step,
[property:JsonPropertyName("variables")]
VariableDTO[] Variables,
VariableDTO[]? Variables,
[property:JsonPropertyName("result")]
VariableDTO? Result,
[property:JsonPropertyName("exception")]
Expand Down
2 changes: 1 addition & 1 deletion src/StepWise.WebAPI/StepWiseControllerV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public async Task<ActionResult<string[]>> ListCheckpointsAsync(string workflow)
var checkpointFolder = Path.Combine(_stepWiseServiceConfiguration.Workspace.FullName, StepWiseServiceConfiguration.CheckpointFolderName, workflow);
if (!Directory.Exists(checkpointFolder))
{
return NotFound($"Checkpoint folder for workflow {workflow} not found");
return Ok(Array.Empty<string>());
}
var checkpoints = Directory.GetFiles(checkpointFolder).Select(Path.GetFileName).ToArray();
return Ok(checkpoints);
Expand Down
5 changes: 4 additions & 1 deletion stepwise-studio/components/checkpoint-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,13 @@ export const CheckpointSelector: FC<CheckpointSelectorProps> = ({
var checkpointName = "checkpoint_" + highest + ".json";
await onSaveCheckpoint?.({ name: checkpointName });
await fetchCheckpoints(workflow);

toast("Checkpoint saved", {
description: `Checkpoint has been saved successfully as ${checkpointName}`,
});
} catch (err) {
toast.error("Error", {
description: "Failed to save checkpoint" + err,
});
} finally {
setIsSaving(false);
}
Expand Down
9 changes: 0 additions & 9 deletions stepwise-studio/components/image-upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,10 @@ const ImageUpload: React.FC<ImageUploadProps> = ({ onUpload, onCanceled }) => {
size={"tiny"}
onClick={handleRemove}
className="text-base"
disabled={!file || uploading}
>
Cancel
</Button>
</div>
{/*
{uploadStatus && (
<Alert
className={`mt-4 ${uploadStatus.type === "success" ? "bg-green-100" : "bg-red-100"}`}
>
<AlertDescription>{uploadStatus.message}</AlertDescription>
</Alert>
)} */}
</div>
);
};
Expand Down
27 changes: 18 additions & 9 deletions stepwise-studio/components/workflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -625,15 +625,24 @@ const WorkflowInner: React.FC<WorkflowProps> = (props) => {
checkpoint.name,
);

await postApiV1StepWiseControllerV1SaveCheckpoint(
{
query: {
checkpointName: checkpoint.name,
workflow: workflow?.name,
},
body: completedRunSteps,
} as PostApiV1StepWiseControllerV1SaveCheckpointData,
);
var res =
await postApiV1StepWiseControllerV1SaveCheckpoint(
{
query: {
checkpointName:
checkpoint.name,
workflow: workflow?.name,
},
body: completedRunSteps,
} as PostApiV1StepWiseControllerV1SaveCheckpointData,
);

if (res.error) {
throw new Error(
"Failed to save checkpoint: " +
res.error,
);
}
}}
onCheckpointSelect={async (checkpoint) => {
console.log(
Expand Down
30 changes: 30 additions & 0 deletions website/release_notes/0_0.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
# Release Notes - StepWise v0.0.9 🚀

Welcome to version 0.0.9 of StepWise! We are excited to introduce new features and enhancements designed to enhance the functionality and user experience of both the StepWise Server and WebUI. Here's what's new:

## New Features and Enhancements 🚀

### WebUI Enhancements

1. **Notification System** 📢 ([#98](https://github.com/LittleLittleCloud/StepWise/issues/98))
- A new notification system has been implemented to keep users informed about key events, including:
- Saving, deleting, or selecting a checkpoint.
- Starting or completing a workflow.

2. **Markdown Copy Button** 📋 ([#92](https://github.com/LittleLittleCloud/StepWise/issues/92))
- A new copy button for markdown content has been added, allowing users to easily copy markdown text to their clipboard, improving workflow efficiency.

### Server Enhancements 🖥️

1. **Workspace Configuration** 🗂️ ([#95](https://github.com/LittleLittleCloud/StepWise/issues/95))
- The StepWise Server now supports workspace configuration to organize and store:
- Logs
- Checkpoints
- Images and blobs
- This enhancement improves structured data storage and retrieval, enhancing user experience in managing workflow data.

### Reload/Continue from Previous Checkpoint ♻️

- Users can now reload or continue workflows from previous checkpoints with data stored under the `{Workspace}/checkpoints/{WorkflowName}` folder ([#91](https://github.com/LittleLittleCloud/StepWise/issues/91)). This feature ensures data persistence and workflow continuity, allowing users to resume work seamlessly from saved states.


# Release Notes - StepWise v0.0.8 🚀
Disable python3 kernel in code interpreter example

Expand Down

0 comments on commit b254aa1

Please sign in to comment.