-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
allow multiline mode for input with type text (close #458) #1155
Conversation
Beep boop! 🤖 Hey @Anupam-dagar, thanks for your PR! One of my human friends will review this PR and get back to you as soon as possible. 🕐 Stay awesome! 😎 |
@Anupam-dagar - The functionality seems to be fine. But we need some work on the UI. The toggle cannot be a big button with Toggle text on it. We can use some font-awesome icon for expand/collapse that is not intrusive. Also the new functionality seems to have broken some Insert rows test on Cypress. It would be nice if you could check them and fix. @dsandip - thoughts on the UI suggestion? |
@praveenweb I'll fix the tests. |
23b3844
to
016a737
Compare
Review app for commit 016a737 deployed to Heroku: https://hge-ci-pull-1155.herokuapp.com |
016a737
to
3b623bf
Compare
Review app for commit 3b623bf deployed to Heroku: https://hge-ci-pull-1155.herokuapp.com |
@dsandip - can you suggest the final icon / position UI for the toggle functionality? |
What about something like this? Icon used is https://fontawesome.com/icons/expand?style=solid We can also use https://fontawesome.com/icons/expand-alt?style=solid and https://fontawesome.com/icons/compress-alt?style=solid to indicate two states. |
@shahidhk does the placement of icon remains same for text area? |
It has to be inside the textbox, top right corner. |
3b623bf
to
8cdad6a
Compare
Review app for commit 8cdad6a deployed to Heroku: https://hge-ci-pull-1155.herokuapp.com |
8cdad6a
to
52d0f2c
Compare
Review app for commit 52d0f2c deployed to Heroku: https://hge-ci-pull-1155.herokuapp.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If type long text into the textbox and click the toggle button, textarea appears, but the text disappears.
52d0f2c
to
12fe2a5
Compare
12fe2a5
to
175c1e0
Compare
175c1e0
to
cda7c93
Compare
@shahidhk any plan to merge this? |
@shahidhk I pass the tests on this in sometime. |
That icon's not obvious to me. I'll get design from Anu when I work on this. |
Closing in favour of #2498 |
Review app https://hge-ci-pull-1155.herokuapp.com is deleted |
<!-- The PR description should answer 2 important questions: --> ### What <!-- What is this PR trying to accomplish (and why, if it's not obvious)? --> <!-- Consider: do we need to add a changelog entry? --> <!-- Does this PR introduce new validation that might break old builds? --> <!-- Consider: do we need to put new checks behind a flag? --> This PR enables "unit" testing for `execute_request` function from `graphql-ws` crate which is responsible for executing graphql operations. It is tested in conjunction with the `graphql_frontend`'s `execute_query` by comparing responses from the both. ### How <!-- How is it trying to accomplish it (what are the implementation steps)? --> Briefly ``` http_response = graphql_frontend::execute_query ws_response = graphql_ws::execute_request compare(http_response, ws_response) ``` V3_GIT_ORIGIN_REV_ID: 371ac3de1136732d7dc2e88dbd093264a96a7d2e
This adds a toggle react component which can be used to change text input to textarea and vice versa.
close #458
Description
What component does this PR affect?
Requires changes from other components? If yes, please mark the components:
Related Issue
#458
Solution and Design
Type
Checklist: