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

Feat/adding upload input #31

Merged
merged 27 commits into from
Feb 12, 2021
Merged

Feat/adding upload input #31

merged 27 commits into from
Feb 12, 2021

Conversation

santosluiz000
Copy link
Contributor

@santosluiz000 santosluiz000 commented Dec 22, 2020

What problem is this solving?

Adding upload input on store-form

How to test it?

Access https://luizdev3--b2bstore.myvtex.com/registration and use the feature there.

Screenshots or example usage:

image

Describe alternatives you've considered, if any.

Related to / Depends on

How does this PR make you feel? 🔗

![](put .gif link here - can be found under "advanced" on giphy)

@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Dec 22, 2020

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

Beep boop 🤖

Thank you so much for keeping our documentation up-to-date ❤️

@github-actions
Copy link

github-actions bot commented Dec 22, 2020

Fails
🚫

No @context(provider: "...") found on uploadFile.graphql. Please explicitly declare the query provider.

Generated by 🚫 dangerJS against 21dd3d6

klzns
klzns previously requested changes Dec 22, 2020
Copy link
Contributor

@klzns klzns left a comment

Choose a reason for hiding this comment

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

(btw, I commited some changes to your branch, make sure to git pull before working on it)

I think using draft-js might be to heavy on the client

Can we change to just use react-dropzone instead? We did something similar in styleguide's Dropzone:
Code: https://github.com/vtex/styleguide/blob/master/react/components/Dropzone/index.js
Docs: https://styleguide.vtex.com/#/Components/Forms/Dropzone

What's is the workspace to test? Can you include in the PR description?

@santosluiz000
Copy link
Contributor Author

(btw, I commited some changes to your branch, make sure to git pull before working on it)

I think using draft-js might be to heavy on the client

Can we change to just use react-dropzone instead? We did something similar in styleguide's Dropzone:
Code: https://github.com/vtex/styleguide/blob/master/react/components/Dropzone/index.js
Docs: https://styleguide.vtex.com/#/Components/Forms/Dropzone

What's is the workspace to test? Can you include in the PR description?

I will see this, thanks!

Workspace: https://luizdev2--b2bstore.myvtex.com/registration

@fobarros
Copy link

Pra mim ainda aparece upload

Co-authored-by: Bia <52087100+guerreirobeatriz@users.noreply.github.com>
@santosluiz000
Copy link
Contributor Author

Pra mim ainda aparece upload

Pls, access this link: https://luizdev3--b2bstore.myvtex.com/registration

const { url } = contentState.getEntity(entityKey).getData()

return (
<a href={url} className="blue">
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't have too much context, but why not use the render-runtime Link component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is unecessary. It was removed

Copy link
Contributor

@igorbrasileiro igorbrasileiro left a comment

Choose a reason for hiding this comment

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

I don't have too much context, but LGTM. I left some comments

Copy link
Contributor

@icazevedo icazevedo left a comment

Choose a reason for hiding this comment

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

I've left some suggestions. You should also consider the ones Igor commented

@santosluiz000 santosluiz000 dismissed stale reviews from klzns and guerreirobeatriz February 11, 2021 14:07

Don!

return (
<div className="vtex-styleguide-9-x-dropdown vtex-dropdown" ref={ref}>
<span className="db mb3 w-100 c-on-base t-small">
Operating Agreement
Copy link
Contributor

Choose a reason for hiding this comment

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

@santosluiz000 you've added the definitions but you also need to add IOMessage here so it can internationalize correctly.

You should also use defineMessages function to declare all i18n strings you use inside react. Take a look here.

return (
<div className="vtex-styleguide-9-x-dropdown vtex-dropdown" ref={ref}>
<span className="db mb3 w-100 c-on-base t-small">
Operating Agreement
Copy link
Contributor

Choose a reason for hiding this comment

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

This is still here @santosluiz000, this message will not be internationalized if it stays like this.

Co-authored-by: Igor Brasileiro <brasileiro456@gmail.com>
@santosluiz000 santosluiz000 merged commit c45f924 into master Feb 12, 2021
@santosluiz000 santosluiz000 deleted the feat/adding-upload-input branch February 12, 2021 15:54
@vtex-io-ci-cd
Copy link

vtex-io-ci-cd bot commented Feb 12, 2021

Your PR has been merged! App is being published. 🚀
Version 0.4.0 → 0.5.0

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.store-form@0.5.0

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. 📖

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.

7 participants