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

Use compose component for Send Message action #1184

Closed
wants to merge 3 commits into from

Conversation

susanm74
Copy link
Contributor

@susanm74 susanm74 commented Apr 25, 2023

fixes #1182

needs to be merged AFTER #1183 AND nyaruka/temba-components#315 are merged

- added validateCompose to flow action helpers
- added getComposeStateToAction and getRecipientsStateToAction to flow action helpers
- updated send msg and send broadcast stateToAction to use helper methods above
- updated SendMsgForm and SendBroadcastForm initializeForm fn's to use helper methods above
- updated SendMsgForm and SendBroadcastForm handleUpdate fn's to use validateCompose helper method
- updated SendMsg main flow render to remove outer check for action.text and move to be an inner check for action.text
- added ComposeElement to SendMsgForm
- updated createSendMsgAction in assetCreators
- added back attachments because MsgLocalizationForm still uses this

todo
- update unit tests
@susanm74 susanm74 changed the title Use compose component for Send Message actions Use compose component for Send Message action Apr 25, 2023
@susanm74
Copy link
Contributor Author

BEFORE
Screen Shot 2023-04-25 at 5 14 33 PM

@susanm74
Copy link
Contributor Author

AFTER
Screen Shot 2023-04-25 at 5 15 12 PM

@susanm74
Copy link
Contributor Author

note - this PR is on hold for now until it's confirmed how we'll handle migration/transference of the "conditional media url" functionality inclusive of the current attachment feature in the send message action attachments tab

@github-actions
Copy link

Without activity, this PR will be closed in 14 days.

@ericnewcomer
Copy link
Member

We agreed that the attachment code should work with old attachment formats as well.

@github-actions github-actions bot removed the inactive label Jun 11, 2023
@github-actions
Copy link

Without activity, this PR will be closed in 14 days.

@github-actions
Copy link

github-actions bot commented Aug 6, 2023

This PR was closed for inactivity.

@github-actions github-actions bot closed this Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use compose component for Send Message action
2 participants