[New] `MediumMultilineInput` and `LargeMultilineInput` Elements
feat: New MediumMultilineInput and LargeMultilineInput Elements
- I have read the Contributing Guide - https://github.com/RocketChat/Rocket.Chat/blob/develop/.github/CONTRIBUTING.md#contributing-to-rocketchat doc
- I have signed the CLA - https://cla-assistant.io/RocketChat/Rocket.Chat
- Lint and unit tests pass locally with my changes
- I have labeled the PR correctly with the related package
- I have run visual regression tests (if applicable)
- I have added tests that prove my fix is effective or that my feature works (if applicable)
- I have added necessary documentation (if applicable)
- Any dependent changes have been merged and published in downstream modules
Why Do We need this ?
-
Larger Multiline Input Elements will open new possibilities for Rocket.Chat App Developers.
-
Larger input components can be used in future apps which include a Code Editing App where the developers pair program inside Rocket.Chat.
-
Or a Journal App/Notes App where journal Entries or more extensive notes can be made in RC
-
Or a Future GitLab integrations where a code Review and Edit feature will be desirable.
-
Larger can even be used in the main chat input component to edit and send a larger message to the Rocket.Chat channel, which may not be possible with the current input component.
-
Our use case and motivation to add this component to fuselage was to enable users display and merge PRs right from RocketChat channels through the GitHub App. This will be an exclusive feature which is not available in any
GitHub x Messagingapp intigration. -
We currently use the
SectionBlockas theInputBlockis too small, but theSectionBlocklooses the indentation. -
https://user-images.githubusercontent.com/70485812/179247571-7c9001e6-ba40-4edc-9030-e1307818a79b.mp4
-
A Larger Input component can help us take fix this as it preserves indentation. This would improve community collaboration over Rocket.Chat and push
Messaging x Developer Collaborationto the limits -
The Same component can also be extended to add new Issues to GitHub or A Rocket.Chat app which parses and display markdown. The possibilities can be endless.
-
https://github.com/RocketChat/fuselage/discussions/744
Proposed changes (including videos or screenshots)
-
Added New
MediumMultilineInputandLargeMultilineInputelements to fuselage-ui-kit. -
Added the new elements to the storybook.
-
Input With Medium Multiline Plane Text Input
- Banner
https://user-images.githubusercontent.com/70485812/178167410-3837a459-824c-4be3-b14f-93be3f66814f.mp4
- Modal
https://user-images.githubusercontent.com/70485812/178167421-04e53647-4466-4408-8b45-55038c7885d2.mp4
-
Input With Large Multiline Plane Text Input
- Banner
https://user-images.githubusercontent.com/70485812/178167501-4a9b1c3a-bff4-4d68-8283-43f3f0f72696.mp4
- Modal
https://user-images.githubusercontent.com/70485812/178167504-5d57ea78-39f1-4ad9-a9c8-bf0f907f7a3a.mp4
Issue(s)
closes #765
@MartinSchoeler @ggazzo can you guys please take a look at this PR and suggest any changes
@dougfabris @tassoevan Can you guys please take a look and suggest any changes ?
@gabriellsh @yash-rajpal Can you please take a look and guide me with this PR. Feel free to message me over Rocket.Chat Open Server samad.khan whenever you find time :)
@ggazzo I have updated the parameters for PlainInputTextElement and have replaced the previous parameters by multilineSize. Can you please take a look :sweat_smile: ?
@ggazzo can you please take a look at this again ? I have made changes according to review comments.