Skip to content

feat: Review & improve documentation before release#212

Open
handreyrc wants to merge 2 commits into
serverlessworkflow:mainfrom
handreyrc:update-documentation
Open

feat: Review & improve documentation before release#212
handreyrc wants to merge 2 commits into
serverlessworkflow:mainfrom
handreyrc:update-documentation

Conversation

@handreyrc

Copy link
Copy Markdown
Contributor

Closes: #195

Summary

This PR aims to review and update all *.md files in the project to reflect the latest code.

Changes

The following files where reviewed and updated

  • ./CONTRIBUTING.md
  • ./README.md
  • ./packages/i18n/README.md
  • ./packages/serverless-workflow-diagram-editor/src/core/README.md
  • ./packages/serverless-workflow-diagram-editor/src/react-flow/README.md
  • ./packages/serverless-workflow-diagram-editor/README.md

Signed-off-by: handreyrc <handrey.cunha@gmail.com>
Copilot AI review requested due to automatic review settings July 1, 2026 01:50
@handreyrc handreyrc self-assigned this Jul 1, 2026
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for swf-editor ready!

Name Link
🔨 Latest commit f252e9a
🔍 Latest deploy log https://app.netlify.com/projects/swf-editor/deploys/6a447b9510f71400082eb362
😎 Deploy Preview https://deploy-preview-212--swf-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@handreyrc handreyrc added the documentation Improvements or additions to documentation label Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documentation-focused PR to refresh project and package READMEs ahead of release, clarifying setup commands, monorepo structure, and package usage.

Changes:

  • Expanded root README.md with overview, quick-start, dev/test commands, and architecture/CI notes.
  • Updated package READMEs (diagram-editor, i18n, and internal core/react-flow docs) with clearer structure and API/architecture descriptions.
  • Enhanced CONTRIBUTING.md with updated stack/testing sections and Git hook/DCO guidance.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
README.md Adds project overview, quick start, dev workflow, stack/architecture, and CI/release/community sections.
CONTRIBUTING.md Updates contributor guidance (stack, reporting, hooks/DCO, testing/CI).
packages/i18n/README.md Rewrites as a package README with features, API reference, usage, and dev notes.
packages/serverless-workflow-diagram-editor/README.md Updates to published package name, installation/usage, structure, and architecture principles.
packages/serverless-workflow-diagram-editor/src/core/README.md Expands module-level documentation and SDK-isolation guidance for the core layer.
packages/serverless-workflow-diagram-editor/src/react-flow/README.md Greatly expands React Flow directory documentation and responsibilities.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread packages/serverless-workflow-diagram-editor/README.md Outdated
Comment thread packages/serverless-workflow-diagram-editor/src/core/README.md Outdated
Comment thread CONTRIBUTING.md
Signed-off-by: handreyrc <handrey.cunha@gmail.com>

Defines all custom node components for Serverless Workflow task types:

- **Terminal nodes**: `StartNode`, `EndNode`, `EntryNode`, `ExitNode` (compact pill shapes)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should update this in prep for Adityas PR going in where start and end nodes are circles rather than pills

#202

### Edge Types

- **Default**: Standard workflow transitions (solid line)
- **Error**: Exception/error flow from raise tasks (dashed red line with AlertTriangle icon)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think the edge has an icon? Same for Condition, I dont think there is a icon associated with edge, think maybe just "dashed red line" and "blue line with dashed line for default switch case"?

- **CSS target**: `src/components/ui/shadcn.css` — where shadcn injects its CSS variables
- **Path aliases**: `@/components`, `@/lib`, `@/hooks` — resolved via `tsconfig.json` paths and Vite's `tsconfigPaths`
- **Icon library**: `lucide` (generates `lucide-react` imports)
- **Tailwind prefix**: `dec:` — all generated classes prefixed to avoid conflicts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add "to avoid conflicts with host applications"

@lornakelly

Copy link
Copy Markdown
Contributor

@handreyrc Thanks for the PR, just added some small comments and if you could also update the storybook welcome page to replace the TODO, thanks

@fantonangeli fantonangeli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only left one fix, but I would say there are a few docs here that we need to keep updated in the future.

- The editor can be adapted to different rendering libraries if needed
- Platform-specific integrations (VS Code, browser extensions) don't become coupled to React Flow

## Files and Their Purpose

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lornakelly @handreyrc here and in other READMEs, the documentation is nice and useful, but do we really need to add so many details in the documentation, which we will need to keep updated in the future.
I would say just a line on each file is ok, or a small documentation inside the files themselves.
Wdyt?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, like you say, just a general one liner as opposed to everything that the file holds

- `ReactFlowNodeTypes`: Mapping of `GraphNodeType` to React components
- `BaseNodeData<T>`: Type definition for node data (label, task, hasError)

#### [`taskNodeConfig.ts`](taskNodeConfig.ts)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#### [`taskNodeConfig.ts`](taskNodeConfig.ts)
#### [`taskNodeConfig.ts`](nodes/taskNodeConfig.ts)

Comment thread CONTRIBUTING.md

> This isn't about banning AI — it's about keeping this project collaborative, human-driven, and focused on quality.
## Git Hooks

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git hooks are transparent to the contributors, unti they don't see an error, and they are implemented in the standard way.
I don't think a contributor needs this section.. but I let you decide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

feat: Review & improve documentation before release

4 participants