Skip to content

feat: add "dispatch button" for uscr integration [CHI-3226]#2859

Merged
stephenhand merged 20 commits intomasterfrom
gian_CHI-3226
Mar 18, 2025
Merged

feat: add "dispatch button" for uscr integration [CHI-3226]#2859
stephenhand merged 20 commits intomasterfrom
gian_CHI-3226

Conversation

@gpaoloni
Copy link
Copy Markdown
Collaborator

Description

This PR

  • Introduces useCaseSections hook to load and access case sections state.
  • Adds a new custom contact component components/customIntegrations/uscr/DispatchIncidentButton.
  • Introduces a new config flag hideAddToNewCaseButton to hide "Add to New Case" portions of the UI.

Checklist

Other Related Issues

None

Verification steps

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

@gpaoloni gpaoloni changed the title Gian chi 3226 feat: add "dispatch button" for uscr integration [CHI-3226] Mar 12, 2025
@gpaoloni gpaoloni requested a review from stephenhand March 12, 2025 21:21
Copy link
Copy Markdown
Collaborator

@stephenhand stephenhand left a comment

Choose a reason for hiding this comment

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

Couple of nits, but LGTM

const { trigger } = useFormContext();
const dispatch = useDispatch();

const [dispatching, setDispatching] = React.useState(false);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could probably infer this from the redux state? Not a big deal though

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.

It could be lifted to Redux state, if that's what you mean, but that means introducing the notion of "custom arbitrary state" which I'm not sure we want to introduce now. I don't see how it could be "derived" from the existing state.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what you mean by 'custom arbitrary state' - we have plenty of transient redux state which is only used to drive UI transitions if that's what you mean?

But also doesn't the dispatch case section indicate the status of the request?

* along with this program. If not, see https://www.gnu.org/licenses/.
*/

export const dispatchAttachmentSectionType = 'dispatchAttempt';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

dispatch attachment?

@stephenhand stephenhand merged commit 25fd104 into master Mar 18, 2025
16 checks passed
@stephenhand stephenhand deleted the gian_CHI-3226 branch March 18, 2025 20:40
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.

2 participants