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

Update chat templates #805

Merged
merged 8 commits into from
Dec 15, 2020
Merged

Update chat templates #805

merged 8 commits into from
Dec 15, 2020

Conversation

DigneshGujarathi
Copy link
Contributor

Summary

Test Plan

@DigneshGujarathi DigneshGujarathi self-assigned this Dec 10, 2020
@DigneshGujarathi DigneshGujarathi linked an issue Dec 10, 2020 that may be closed by this pull request
@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #805 (5b712ff) into master (14759ce) will decrease coverage by 1.67%.
The diff coverage is 36.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #805      +/-   ##
==========================================
- Coverage   72.25%   70.58%   -1.68%     
==========================================
  Files         141      141              
  Lines        3385     3512     +127     
  Branches      665      710      +45     
==========================================
+ Hits         2446     2479      +33     
- Misses        698      781      +83     
- Partials      241      252      +11     
Impacted Files Coverage Δ
...c/components/UI/Form/AutoComplete/AutoComplete.tsx 58.62% <0.00%> (-2.10%) ⬇️
src/containers/List/List.tsx 75.75% <ø> (ø)
src/containers/Template/Template.test.helper.ts 100.00% <ø> (ø)
src/graphql/mutations/Template.ts 100.00% <ø> (ø)
src/graphql/queries/Template.ts 100.00% <ø> (ø)
src/mocks/Template.tsx 100.00% <ø> (ø)
src/containers/Form/FormLayout.tsx 52.34% <26.66%> (-2.00%) ⬇️
src/containers/Template/Form/Template.tsx 40.00% <30.00%> (-43.34%) ⬇️
...ntainers/Chat/ChatMessages/ChatInput/ChatInput.tsx 72.63% <37.50%> (-2.09%) ⬇️
src/components/UI/Pager/Pager.tsx 58.92% <45.00%> (-11.08%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14759ce...5b712ff. Read the comment docs.

const dialogMessage = ' It will stop showing when you are drafting a customized message.';

const defaultTypeAttribute = {
type: 'TEXT',
// type: 'TEXT',
Copy link
Contributor

Choose a reason for hiding this comment

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

is this needed or can be removed easily?

@@ -216,6 +222,38 @@ export const FormLayout: React.SFC<FormLayoutProps> = ({
return null;
}

const getMediaId = (payload: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is not something we should include in FormLayout.tsx. Maybe in parent or maybe we create another (generic) wrapper around FormLayout that deals with media. Let me know your thoughts.

Copy link
Contributor Author

@DigneshGujarathi DigneshGujarathi Dec 14, 2020

Choose a reason for hiding this comment

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

@rathorevaibhav I have fixed this, please review.

@rathorevaibhav rathorevaibhav merged commit 499eab3 into master Dec 15, 2020
@rathorevaibhav rathorevaibhav deleted the feature/chat-templates branch December 15, 2020 06:09
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.

Update template listing on a chat screen
3 participants