Updating the Multi-Line InputBlock #744
samad-yar-khan
started this conversation in
Ideas
Replies: 1 comment
-
@ggazzo @MartinSchoeler @tassoevan Can you please look into this idea and let me know if you guys have any suggestions. I look forward to improving this component with you guys :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea
We can have 3 sizes - small, medium and large.
A small
MultilineInputBlock
can have 6 rows(this is the current number of rows). A medium and large input blocks can have 12 and 22 rows respectively.Based on the
size
parameter of block we can conditionally pass the different number of rows to the<TextInputArea>
component over here.This will require changes in both the Apps Engine as well as the UIKit
Why do we need this ?
SectionBlock
element but all the indentation was gone. Fetching and displaying the code in aMultilineInputBlock
not only preserved the indentation but also allowed users to edit the code.MultilineInput
block is that the size is restricted to 6 rows, and its not a pleasant experience to review code on that size of a editor.Having a larger input block will enable this us to review code better.
This can also be used for adding a large input block in GitHub App which will allow users to raise new issues from Rocket.Chat channels.
Our actual intent was to add an editor like Ace as a UiKit component but after watching last weeks community call we realized that would require a lot of planning and would block some of the features we have planned for the GitHub App. But once the main features are developed I would like to plan code editor integration.
Beta Was this translation helpful? Give feedback.
All reactions