mattermost-webapp icon indicating copy to clipboard operation
mattermost-webapp copied to clipboard

MM-39217 : Add capability in plugin/apps forms to resize textarea via draggable corner

Open jatinmark opened this issue 2 years ago • 25 comments

Summary

In this PR make the resizable props true from false in mentioned two files.

Ticket Link

Fixes https://github.com/mattermost/mattermost-server/issues/18621 Jira: https://mattermost.atlassian.net/browse/MM-39217

Related Pull Requests

  • Has server changes (please link here)
  • Has mobile changes (please link here)

Screenshots

Release Note

NONE

jatinmark avatar Oct 10 '22 18:10 jatinmark

Hello @jatinmark,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

mattermod avatar Oct 10 '22 18:10 mattermod

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

mattermod avatar Oct 10 '22 18:10 mattermod

@jatinmark Please fix the failing test

AshishDhama avatar Oct 13 '22 03:10 AshishDhama

@AshishDhama I am not.able to find the reasons for failed test . Test are failed because of the things i not even touch .But i am trying to understand the problem

jatinmark avatar Oct 13 '22 03:10 jatinmark

@jatinmark hey i just quickly checked the failing test. Components are usually dependent on each other is some or the other way hence change in one place can also effect in other. 😃

Coming back to problem for failing tests. That's because now the prop is resizable={true} in those files, test needs to be updated to show that. But i would like to rope in @mickmister to see if this is how this ticket needs to be done 🥂 . Because i think 🤔 we can avoid passing resizable to everything else except textarea. 0/5

M-ZubairAhmed avatar Oct 13 '22 05:10 M-ZubairAhmed

So , thier is something needed to be done from my side or just i leave it till the review is not done .

jatinmark avatar Oct 13 '22 15:10 jatinmark

@mickmister i have to make changes only in textarea to pass all the test ?

jatinmark avatar Oct 13 '22 17:10 jatinmark

@mickmister i have to make changes only in textarea to pass all the test ?

There may be other issues with tests, but I'm asking for this change because the changes are currently affecting more elements than originally intended. It should only be applied to textareas for the purpose of user experience.

It looks like the tests may not ever use a textarea, so adding a test for that case in the files that are currently failing would be beneficial. What do you think about this @jatinmark?

mickmister avatar Oct 13 '22 17:10 mickmister

@mickmister if adding test for textarea can remove the failing of test then its beneificial to add a test for it

jatinmark avatar Oct 13 '22 18:10 jatinmark

@mickmister if adding test for textarea can remove the failing of test then its beneificial to add a test for it

The source code change we discussed (making it so only textareas are affected) will fix the failing tests. Adding a new test does not affect existing tests. Does this make sense?

mickmister avatar Oct 13 '22 19:10 mickmister

@mickmister you mean to say that i have to only add test for textarea and then everything is fixed.

jatinmark avatar Oct 13 '22 19:10 jatinmark

@mickmister you mean to say that i have to only add test for textarea and then everything is fixed.

@jatinmark There is another requirement that needs to be implemented in the source code that is currently edited in the PR, not in a test:

the resizable prop should only passed when the field's subtype is textarea

mickmister avatar Oct 13 '22 19:10 mickmister

@mickmister The current changes in PR is right ? And i have to make resizable prop pass in the textarea subtype and include a test for textarea.

jatinmark avatar Oct 13 '22 20:10 jatinmark

@mickmister i included the tests in both the files and pass the resizable property please check it.

jatinmark avatar Oct 17 '22 19:10 jatinmark

@mickmister there is still some problem in tests ?

jatinmark avatar Oct 20 '22 17:10 jatinmark

@mickmister all test are passed now , i think PR is ready to merge

jatinmark avatar Oct 21 '22 01:10 jatinmark

Thank you @mickmister for guiding me in the process of making a PR

jatinmark avatar Oct 21 '22 03:10 jatinmark

/e2e-test

M-ZubairAhmed avatar Oct 21 '22 06:10 M-ZubairAhmed

Successfully triggered e2e testing! https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/253256

mattermod avatar Oct 21 '22 06:10 mattermod

@AshishDhama @jgilliam17

jatinmark avatar Oct 22 '22 18:10 jatinmark

Creating a new SpinWick test server using Mattermost Cloud.

mm-cloud-bot avatar Oct 26 '22 19:10 mm-cloud-bot

Mattermost test server created! :tada:

Access here: https://mattermost-webapp-pr-11321.test.mattermost.cloud

Account Type Username Password
Admin sysadmin Sys@dmin123
User user-1 User-1@123

mm-cloud-bot avatar Oct 26 '22 19:10 mm-cloud-bot

Removing myself. After reading the description, @DHaussermann can you please take this PR (or Malik) as you are more familiar with plugin/apps forms - thanks 🙂

jgilliam17 avatar Oct 26 '22 19:10 jgilliam17

@M-ZubairAhmed i want to ask that their is something needed to be done from my side.

jatinmark avatar Oct 28 '22 08:10 jatinmark

@jatinmark no actually lets wait for QA review to be done from @DHaussermann :)

M-ZubairAhmed avatar Oct 28 '22 09:10 M-ZubairAhmed

/update-branch

DHaussermann avatar Nov 01 '22 15:11 DHaussermann

Error trying to update the PR. Please do it manually.

mattermod avatar Nov 01 '22 15:11 mattermod

@DHaussermann @mattermod i have updated the branch manually

jatinmark avatar Nov 01 '22 16:11 jatinmark

/update-branch

M-ZubairAhmed avatar Nov 02 '22 05:11 M-ZubairAhmed

Mattermost test server updated with git commit b8820311e776c30c36fc7f434a2cffcaf53e94c0.

Access here: https://mattermost-webapp-pr-11321.test.mattermost.cloud

mm-cloud-bot avatar Nov 02 '22 05:11 mm-cloud-bot