Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHI-1994: Search in a modal modal #1745

Merged
merged 19 commits into from
Oct 27, 2023
Merged

CHI-1994: Search in a modal modal #1745

merged 19 commits into from
Oct 27, 2023

Conversation

stephenhand
Copy link
Collaborator

@stephenhand stephenhand commented Oct 20, 2023

Description

  • Refactors search routing to use standard routing system rather than its own thing
  • Search now opens in a modal, and contacts / cases results open in a stacked modal
  • Standard 'NavigableContainer' which automatically determines what back / close buttons are needed based on the context of the route
  • Move dialog state for edit contacts to redux

TODO: styling is only partially complete

Checklist

  • Corresponding issue has been opened
  • New tests added
  • N/A Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Related Issues

CHI-1994

Verification steps

  • See ticket - also regression test routing

@stephenhand
Copy link
Collaborator Author

I think the E2E test failure might be due to the E2E chatbot change @acedeywin? Looks like the chatbot never starts and the chat goes straight into the queue, which breaks the test

@stephenhand stephenhand mentioned this pull request Oct 24, 2023
4 tasks
Copy link
Contributor

@acedeywin acedeywin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@murilovmachado murilovmachado left a comment

Choose a reason for hiding this comment

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

Looks good to me, also tried it locally and it works fine!

Couldn't do an in-depth review, but the code changes are aligned with what I expected. great work.

Comment on lines +190 to 194
const checkForEdits = (closeModal: boolean) => {
if (isEqual(workingCopy, savedForm)) {
closeActions();
} else setOpenDialog(true);
closeActions(closeModal);
} else setDialogState(closeModal ? DialogState.OpenForClose : DialogState.OpenForBack);
};
Copy link
Contributor

Choose a reason for hiding this comment

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

My brain goes crazy when I see if clause using brackets and the else doesn't. I know this bracket choice was already in the code, so feel free to ignore this comment.

@stephenhand stephenhand merged commit 918ec1f into master Oct 27, 2023
8 checks passed
@stephenhand stephenhand deleted the CHI-1994-search_modal branch October 27, 2023 05:46
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.

3 participants