Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(sales): archived deals and stages on the deals board - #8820

#8820
Open
Zolb646 wants to merge 9 commits into
mainerxes/erxes:mainfrom
feat/sales-archived-dealserxes/erxes:feat/sales-archived-dealsCopy head branch name to clipboard
Open

fix(sales): archived deals and stages on the deals board#8820
Zolb646 wants to merge 9 commits into
mainerxes/erxes:mainfrom
feat/sales-archived-dealserxes/erxes:feat/sales-archived-dealsCopy head branch name to clipboard

Conversation

@Zolb646

@Zolb646 Zolb646 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix archived deal and stage behavior in the sales pipeline. Archived items now update smoothly in real time, remain hidden from board view, and are available only in list view.

Changes

  • Correct deal archive and restore subscription payloads.
  • Remove archived deals from boards immediately and keep restored deal ordering in sync.
  • Broadcast stage archive status changes and refresh board columns in real time.
  • Hide archived stages from normal board queries.
  • Show the archived-items control only in list view and clear archived filters when switching views.
  • Query only archived deals when archived mode is enabled.
  • Show the deals empty state when a list has no active or archived items, independently of whether stages exist.
  • Remove obsolete comments and unrelated PR changes.

Summary by Sourcery

Align archived deals and stages behavior across sales board and list views, ensuring archived items are filtered correctly, updated in real time, and surfaced only where intended.

New Features:

  • Add a dedicated archived-only deals mode that queries only archived items with specific ordering.
  • Introduce a deals list empty state that appears when there are no active or archived deals in a pipeline.

Bug Fixes:

  • Fix deal archive mutation to broadcast correct subscription payloads and update deal status/order reliably when archiving or restoring.
  • Ensure archived deals are excluded from board column queries and real-time updates while remaining available in list view when archived-only mode is enabled.
  • Hide archived stages from normal stage queries so archived stages no longer appear on the board.
  • Prevent archived-mode filters from leaking into non-list views by clearing archived query params when switching away from the list view.

Enhancements:

  • Refine deals subscription handling to avoid overwriting fields with nulls, respect archive filtering flags, and keep column state in sync with server ordering.
  • Broadcast stage status changes via pipeline subscription and trigger client-side stage refetches to keep boards updated in real time.
  • Tighten deal query variable handling, including safer typing and reuse of productIds, and add support for an archivedOnly filter flag.
  • Simplify board-specific deal querying by disabling archived-mode handling for board requests and centralizing filtering on deal status in the UI.
  • Adjust archived deals action bar control to be list-view-only and to manage archived sorting state via URL search parameters.

Summary by CodeRabbit

  • New Features

    • Added an archivedOnly filter across deal search, GraphQL query inputs, and UI query variables.
  • Bug Fixes

    • Improved archived-deal consistency across board/list views (now consistently excluding archived items where appropriate, and handling archived-only mode more reliably).
    • Enhanced deal archive/restore behavior and ordering; archived events and stage updates now refresh downstream pipeline data.
    • Subscription updates now normalize archived items more consistently.
  • UI/UX

    • Archived deals action bar now renders only in the correct view and clears archived URL parameters when leaving list mode.
    • Improved deals empty-state messaging when no stages/deals are available.

Zolb646 added 3 commits July 28, 2026 09:44
Subscribers label a deal event by matching the payload against their own
filter: matching before but not after means remove, the reverse means add.

- dealsArchive published the pre-archive deal as `deal` and the archived
  one as `oldDeal`, exactly backwards, so archiving a whole stage told
  every board to add the cards back instead of dropping them. It also
  published the list topic by hand, leaving an open deal detail unaware.
  Route it through subscriptionWrapper the right way round, and await the
  publishes instead of firing them from inside forEach.
- Restoring a deal recomputed its order after the payload had been read,
  so the card reappeared at its archived-era position. Keep the item in
  sync with the order that was persisted.
- The archive mutation refetched Deals with only { stageId }, which
  matches no board column — they query it with pipelineId and the active
  filters too — so a missed subscription event had nothing to recover it.
  Refetch by operation name.
- Guard the cache as well: a list that excludes archived deals now drops
  one as soon as it sees it archived, whatever action the server derived.
"Archive this list" set the stage status and nothing else, so it looked
like it had done nothing.

salesStages folded two unrelated rules into one condition: archived stages
and private stages were both hidden only from non-owners. Being an owner
is a reason to see private stages, not finished ones, so an owner kept the
archived column on their board. Split the rules; callers that genuinely
want everything, like the pipeline settings form, still pass isAll.

Nothing was published either, so other sessions kept the column until a
reload. Publish a stage status change on the pipeline topic and have the
board re-read the stages it builds its columns from.
The archived toggle was offered in both views, so the board could be put
into a mode where every column showed archived cards — work that is done
and no longer belongs on a board of work in flight. Offer the toggle in
the list view only, clear the mode when switching back to the board, and
always filter archived deals out of board columns. The archived ribbon on
board cards goes with it.

While in the column sync: when a drag was still settling it kept every id
already sitting in the column, checking only which column the id belonged
to. Board items are never deleted from that map, so a deal archived in
that window stayed on the board. Keep an id only if the fresh result
still has it, or if its own move is the one in flight.
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1427a0c3-1034-421f-8deb-b7fe70e8cbb9

📥 Commits

Reviewing files that changed from the base of the PR and between c953ef3 and e2c6863.

📒 Files selected for processing (1)
  • frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsQuery.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsQuery.tsx

📝 Walkthrough

Walkthrough

Changes

Archived-only filtering is added across GraphQL contracts, backend queries, and frontend query variables. Archive and stage mutations now publish synchronized updates, while deal subscriptions and boards handle archived records, stage changes, ordering, and empty states consistently.

Archived deals flow

Layer / File(s) Summary
Archived query contract and filtering
backend/plugins/sales_api/src/modules/sales/@types/deal.ts, backend/plugins/sales_api/src/modules/sales/graphql/schemas/deal.ts, backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/deals.ts, frontend/plugins/sales_ui/src/modules/deals/graphql/queries/DealsQueries.ts, frontend/plugins/sales_ui/src/modules/deals/utils/queryVariables.ts, frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoard.tsx
Deal queries accept archivedOnly; backend filtering and frontend variable generation apply archived mode selectively.
Archive mutation and realtime updates
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/mutations/deals.ts, frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsArchive.tsx, frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsQuery.tsx
Archive mutations publish awaited per-deal updates, refetch the Deals query, and resolve subscription changes into add, edit, or remove operations.
Board archive mode and empty states
frontend/plugins/sales_ui/src/modules/deals/actionBar/components/*, frontend/plugins/sales_ui/src/modules/deals/boards/components/*, frontend/plugins/sales_ui/src/modules/deals/boards/components/list/DealsRecordTable.tsx
Archived controls are limited to list view, boards exclude archived deals, and empty boards render a dedicated no-deals state.
Stage events and recovered ordering
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/mutations/stages.ts, backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/stages.ts, backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/deals.ts, backend/plugins/sales_api/src/modules/sales/graphql/resolvers/utils.ts, frontend/plugins/sales_ui/src/modules/deals/boards/hooks/usePipelineChanged.ts
Stage status changes publish pipeline events, non-all stage queries exclude archived stages, and recovered deal ordering is synchronized.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant dealsArchive
  participant subscriptionWrapper
  participant useDeals
  participant DealsBoard
  User->>dealsArchive: archive deals
  dealsArchive->>subscriptionWrapper: publish per-deal update
  subscriptionWrapper->>useDeals: deliver archived deal event
  useDeals->>DealsBoard: remove or update deal card
  DealsBoard-->>User: render synchronized board
Loading

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: fixing archived deal and stage behavior on the sales deals board.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/sales-archived-deals

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai

sourcery-ai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Reviewer's Guide

Implements consistent archived-deal and archived-stage handling so boards always show only active deals/stages while list view can explicitly query archived items, with real-time updates via GraphQL subscriptions and refined query params.

Sequence diagram for archiving deals and updating board vs list views

sequenceDiagram
  actor User
  participant ArchivedDeals
  participant ApolloClient
  participant dealsArchive
  participant models_Deals as models.Deals
  participant subscriptionWrapper
  participant graphqlPubsub
  participant useDeals_board as useDeals_board
  participant useDeals_list as useDeals_list

  User ->> ArchivedDeals: click handleToggle
  ArchivedDeals ->> ArchivedDeals: update URLSearchParams (archivedOnly)
  ArchivedDeals ->> ApolloClient: execute DEALS_ARCHIVE
  ApolloClient ->> dealsArchive: dealsArchive(stageId)
  dealsArchive ->> models_Deals: find({ stageId })
  loop for each item
    dealsArchive ->> subscriptionWrapper: subscriptionWrapper(models, { action: update, deal, oldDeal, pipelineId })
    subscriptionWrapper ->> graphqlPubsub: publish salesDealListChanged
  end

  graphqlPubsub -->> useDeals_board: salesDealListChanged
  graphqlPubsub -->> useDeals_list: salesDealListChanged

  useDeals_board ->> useDeals_board: dropsArchived = true
  useDeals_board ->> useDeals_board: resolvedAction = remove when status archived
  useDeals_board ->> useDeals_board: updateQuery removes archived deals

  useDeals_list ->> useDeals_list: filterVariables.archivedOnly optional
  useDeals_list ->> useDeals_list: updateQuery applies deal changes
  useDeals_list ->> useDeals_list: list can query archivedOnly via getDealsQueryVariables
Loading

Sequence diagram for stage status change and board refresh

sequenceDiagram
  actor User
  participant stagesEdit as stagesEdit
  participant models_Stages as models.Stages
  participant graphqlPubsub
  participant usePipelineChanged
  participant ApolloClient

  User ->> stagesEdit: stageEdit(_id, doc)
  stagesEdit ->> models_Stages: getStage(_id)
  stagesEdit ->> models_Stages: updateStage(_id, doc)
  stagesEdit ->> graphqlPubsub: publish salesPipelinesChanged:stageStatusChanged

  graphqlPubsub -->> usePipelineChanged: salesPipelinesChanged
  usePipelineChanged ->> usePipelineChanged: action === stageStatusChanged
  usePipelineChanged ->> ApolloClient: refetchQueries include SalesStages
  ApolloClient ->> usePipelineChanged: updated SalesStages
  usePipelineChanged ->> usePipelineChanged: board columns refreshed without archived stages
Loading

File-Level Changes

Change Details Files
Adjust deal list subscriptions and client-side updates so archived deals are removed from boards in real time while preserving correct ordering and avoiding null field overwrites.
  • Replace useMemo-ed subscription variables with a JSON-keyed effect and a ref to always use the latest filter variables when subscribing.
  • Introduce a dropsArchived flag derived from query variables to decide whether archived deals should be removed locally on subscription events.
  • Normalize incoming subscription deal payloads to exclude null-valued fields before merging into existing list items.
  • Map subscription actions to a resolvedAction that coerces edits/adds of archived deals into removes when the current filter excludes archived items.
  • Extend the subscription effect dependency list to include the new archive-handling state.
frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsQuery.tsx
Change list and board deal querying/filtering so only the list view can enter archived-only mode, boards always exclude archived deals, and empty states behave correctly.
  • Add an optional includeArchivedMode flag to getDealsQueryVariables; only list view calls it with archived mode enabled while boards disable it.
  • Switch from legacy noSkipArchive flagging to a new archivedOnly query param and update variable types to use unknown instead of any.
  • Make DealsBoardColumn always filter out archived deals client-side instead of depending on URL params.
  • Update DealsBoard to ignore archivedOnly in search params and simplify board state reset behavior.
  • Add a DealsEmptyState component for the list view and replace the previous no-stages warning with a deals-empty check that considers both active and archived filters.
frontend/plugins/sales_ui/src/modules/deals/utils/queryVariables.ts
frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoardColumn.tsx
frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoard.tsx
frontend/plugins/sales_ui/src/modules/deals/boards/components/list/DealsRecordTable.tsx
Use a dedicated archived-mode toggle that is only visible in list view and automatically clears archived filters when switching away from list.
  • Convert ArchivedDeals into a named export and wire it into MainActionBar.
  • Read the current deals view from jotai state to know whether list or board is active.
  • On view changes away from list, strip archivedOnly and archivedSort parameters from the URL search params using a side effect.
  • Hide the ArchivedDeals control entirely when the current view is not list mode.
frontend/plugins/sales_ui/src/modules/deals/actionBar/components/ArchivedDeals.tsx
frontend/plugins/sales_ui/src/modules/deals/actionBar/components/MainActionBar.tsx
Refine backend deal archiving, querying, and GraphQL contracts so archiving behavior is consistent, archived-only queries are supported, and subscriptions broadcast correct status/order.
  • Update dealsArchive mutation to stop using the processId argument and instead publish subscriptionWrapper-based update events that mark deals as archived and include pipeline context.
  • Extend deal query params, schema, and client queries with an archivedOnly flag and integrate it into generateFilter to either restrict to archived items or exclude them based on noSkipArchive.
  • Normalize search+noSkipArchive ordering by fixing the orderBy merge and formatting.
  • Adjust useDealsArchive to refetch by operation name ('Deals') instead of a specific GET_DEALS query document.
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/mutations/deals.ts
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/deals.ts
frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsArchive.tsx
frontend/plugins/sales_ui/src/modules/deals/graphql/queries/DealsQueries.ts
backend/plugins/sales_api/src/modules/sales/@types/deal.ts
backend/plugins/sales_api/src/modules/sales/graphql/schemas/deal.ts
Broadcast stage archive status changes and ensure boards refresh stage lists and deal ordering correctly when restoring or updating stages.
  • Enhance stage edit mutation to load the old stage, persist updates, and when status changes, publish a salesPipelinesChanged stageStatusChanged event with stageId and status.
  • Update stageQueries to filter out archived stages by default unless isAll is true, centralizing the status filter at query construction time.
  • Extend the pipeline-changed subscription hook to recognize stageStatusChanged and refetch stages via the 'SalesStages' query when it occurs.
  • In changeItemStatus, compute the recovered deal order once, persist it, and then update the in-memory item before subsequent processing, so restored deals keep the correct order on the board.
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/mutations/stages.ts
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/stages.ts
frontend/plugins/sales_ui/src/modules/deals/boards/hooks/usePipelineChanged.ts
backend/plugins/sales_api/src/modules/sales/graphql/resolvers/utils.ts
Minor UI cleanups and prop adjustments unrelated to core archive logic.
  • Remove unused NoStagesWarning usage from DealsRecordTable in favor of the new empty state.
  • Simplify SelectCustomerFilterBar usage in DealsBoardCard by dropping unused label and targetId props.
frontend/plugins/sales_ui/src/modules/deals/boards/components/list/DealsRecordTable.tsx
frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoardCard.tsx

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@Zolb646 Zolb646 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@CodeRabbit add your pr description

@Zolb646
Zolb646 marked this pull request as ready for review July 28, 2026 08:29

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • In dealMutations.dealsArchive, the mutation args are still typed as { stageId: string; processId: string } even though processId is no longer destructured or used; consider removing processId from the type to avoid confusion and keep the signature consistent.
  • The withResolvedFieldsOnly helper in useDealsQuery filters out only null values from subscription payloads; if the backend ever uses undefined to clear fields those changes would be ignored, so you may want to treat both null and undefined as unresolved when merging deal updates.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `dealMutations.dealsArchive`, the mutation args are still typed as `{ stageId: string; processId: string }` even though `processId` is no longer destructured or used; consider removing `processId` from the type to avoid confusion and keep the signature consistent.
- The `withResolvedFieldsOnly` helper in `useDealsQuery` filters out only `null` values from subscription payloads; if the backend ever uses `undefined` to clear fields those changes would be ignored, so you may want to treat both `null` and `undefined` as unresolved when merging deal updates.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/stages.ts`:
- Around line 30-32: Replace the explicit any type on filter in the stages query
resolver with FilterQuery<IStageDocument>, preserving the existing isAll
conditional and Mongo status filter while restoring type checking for the
composed query.

In
`@frontend/plugins/sales_ui/src/modules/deals/boards/hooks/usePipelineChanged.ts`:
- Around line 21-25: Update the ISalesPipelinesChangedPayload type to model
stageStatusChanged as a distinct payload variant containing stageId and status
without requiring item or destinationStageId. Use a discriminated union or
action-specific optional fields, while preserving the existing deal payload
requirements for actions that publish item and destinationStageId.

In
`@frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsQuery.tsx`:
- Around line 29-34: Update withResolvedFieldsOnly to retain entries whose
values are explicitly null, so subscription updates can clear previously cached
deal fields during merging. Remove the null-filtering condition while preserving
the existing Partial<IDeal> reduction and handling of other values unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b6d70bfd-2881-49b4-b672-64b07c6a0033

📥 Commits

Reviewing files that changed from the base of the PR and between baaf14f and 45a9b28.

📒 Files selected for processing (18)
  • backend/plugins/sales_api/src/modules/sales/@types/deal.ts
  • backend/plugins/sales_api/src/modules/sales/graphql/resolvers/mutations/deals.ts
  • backend/plugins/sales_api/src/modules/sales/graphql/resolvers/mutations/stages.ts
  • backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/deals.ts
  • backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/stages.ts
  • backend/plugins/sales_api/src/modules/sales/graphql/resolvers/utils.ts
  • backend/plugins/sales_api/src/modules/sales/graphql/schemas/deal.ts
  • frontend/plugins/sales_ui/src/modules/deals/actionBar/components/ArchivedDeals.tsx
  • frontend/plugins/sales_ui/src/modules/deals/actionBar/components/MainActionBar.tsx
  • frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoard.tsx
  • frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoardCard.tsx
  • frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoardColumn.tsx
  • frontend/plugins/sales_ui/src/modules/deals/boards/components/list/DealsRecordTable.tsx
  • frontend/plugins/sales_ui/src/modules/deals/boards/hooks/usePipelineChanged.ts
  • frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsArchive.tsx
  • frontend/plugins/sales_ui/src/modules/deals/cards/hooks/deals/useDealsQuery.tsx
  • frontend/plugins/sales_ui/src/modules/deals/graphql/queries/DealsQueries.ts
  • frontend/plugins/sales_ui/src/modules/deals/utils/queryVariables.ts
💤 Files with no reviewable changes (1)
  • frontend/plugins/sales_ui/src/modules/deals/boards/components/DealsBoardCard.tsx

Comment thread backend/plugins/sales_api/src/modules/sales/graphql/resolvers/queries/stages.ts Outdated
Comment thread frontend/plugins/sales_ui/src/modules/deals/boards/hooks/usePipelineChanged.ts Outdated
Zolb646 added 3 commits July 28, 2026 16:55
- type the stages filter with FilterQuery<IStageDocument> instead of any
- model salesPipelinesChanged as a discriminated union per action
- guard the deal subscription payload against remove events without a deal
@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.