Skip to content

Disable dynamic-assignment get more texts to be clickable more than once #1986

Open
@schuyler1d

Description

@schuyler1d

Problem
An impatient texter can click several times while the first batch is being assigned by the server and if the timing is 'lucky' (i.e. unlucky) they can end up with several batches assigned to them even if there would have been restrictions on that.

Solution
In the src/texter-sideboxes/default-dynamicassignment/react-component.js file, before a mutation is sent to findNewCampaignContact() it should set a component state of 'gettingBatch: true' and if this.state.gettingBatch, then it should NOT send another mutation (if clause) to the server.

Ideally, it would change the button state to a 'waiting' view or disabledbutton

A deeper approach may be server-side and put all of the mutation findNewCampaignContact into a single transaction, but that isn't necessary to have something 'good enough' and an improvement in texter experience.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions