Skip to content

feat(pipelines): add pipeline boards for tracking deals and tickets - #1565

Merged
viethung0o0 merged 5 commits into
mainfrom
feat/pipelines
Oct 27, 2026
Merged

viethung0o0 merged 5 commits into
mainfrom
feat/pipelines

Conversation

@viethung0o0

@viethung0o0 viethung0o0 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add Pipelines: kanban boards with stages, items, custom fields, comments, attachments and activity history.
  • Add per-pipeline member permissions; contact email and phone follow the member's contact permission.
  • Add board search, filters (including custom fields and activity), sort and analytics.
  • Add a Pipelines flow step, five pipeline trigger and webhook events, a pipeline contact filter and {{pipelines.*}} variables.
  • Add the public API, CLI and MCP operations under a new pipelines token scope, including per-stage totals (GET /v1/pipelines/{id}/stage-totals) and comma-list and custom-field filters on item listing.
  • Cap fields per pipeline (100) and attachments per item (50); money values are rounded to the stored scale.
  • Show a contact's pipeline items in the inbox panel and add Pipelines to the sidebar under Inbox.
  • Keep flows, analytics, trigger conditions and workspace purge working when a referenced contact, admin, field, stage or pipeline is deleted.
  • One database migration to apply on deploy; pipeline activity history is partitioned by workspace. It drops pipeline tables first, so a database that ran earlier versions of this branch loses that test data. See docs/pipelines.md.

Verification

  • pnpm lint
  • check-types for database, business, worker and builder
  • Unit tests for database, business, worker, ui and builder; database-backed tests for pipeline repositories and services
  • Applied the migration to a fresh database and to one that ran the earlier pipeline migrations; both end with the same schema
  • Checked the board, item drawer, filters, settings and inbox panel in the browser
  • End to end on a local workspace: a webchat message ran a flow through every pipeline action, a status change fired a pipeline trigger, {{pipelines.*}} resolved in the reply, the pipeline contact filter matched the database count, and per-pipeline permissions allowed or hid the board per member

Closes #989

Adds kanban pipelines with stages, items, custom fields, member permissions,
comments, attachments, activity history and analytics. Pipelines are also
available to flows, triggers, webhooks, contact filters, variables and the
public API, CLI and MCP.
@github-actions github-actions Bot added the feature New feature or request label Oct 27, 2026
Merges the pipeline migrations into one and partitions the activity history.
Flows, analytics, contact deletion, workspace purge and trigger conditions now
keep working when a referenced contact, admin, field, stage or pipeline is
deleted.
- Cap custom fields per pipeline and attachments per item, and keep money
  values rounded to the stored scale
- Add stage totals to the public API and accept comma-separated list
  filters plus field conditions on item listing
- Expose due-date changes in public activity responses
- Return the current row for empty update patches instead of failing
- Keep deleted users and references from breaking bulk stage jobs,
  flow actions and analytics (former members and automation rows)
- Fix analytics grouping by actor kind and make contact-filter operator
  lookups fail closed for unknown operators
- Resolve contact-filter columns lazily so importing the module never
  touches the schema
- Share status and priority options across board, forms, filters and
  the flow step, using each pipeline's own status labels
- Show unavailable pipelines and stages in trigger conditions and only
  clear the stage when a listed pipeline is picked
@viethung0o0
viethung0o0 marked this pull request as ready for review October 27, 2026 13:11
@viethung0o0
viethung0o0 merged commit 2465930 into main Oct 27, 2026
7 of 8 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tickets management with conversation, chat-first 😀

2 participants