-
Notifications
You must be signed in to change notification settings - Fork 6
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
2320 allow input value copied to selected rows #2345
2320 allow input value copied to selected rows #2345
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@PoornimaVKrishnan Now that all the changes in this PR are done, we should write test cases for this feature. Available documentsThe following are our test-related docs. You don't need to read all of these initially, but I wanted to have them in one place so you can easily find them and return them. In this case, I already created the skeleton, so you don't need to worry about many details, and you can jump into writing the test cases.
Files of interestAs I mentioned, I already pushed a skeleton for this. The following are the files that you should know about :
How to proceedI recommend following these steps:
|
…320-allow-input-value-copied-to-selected-rows this also includes fixing the styles of checkbox in multi-form-input
…320-allow-input-value-copied-to-selected-rows
…320-allow-input-value-copied-to-selected-rows also cleaned up the component and fixed some issues
@jrchudy This PR is ready to be merged. I updated the description to reflect the latest PR state and have more information. Changing the |
This PR will modify the existing "select all" feature to essentially allow "select some" as we described in #2320 issue. Internally we decided to call this feature/UI element "multi-form-input".
The following is the summary of changes,
Since we're not doing "select all" anymore, we changed the name of the corresponding component from
SelectAllRow
toMultiFormInputRow
. This change has been reflected in class names and other related properties.The existing
form-container.tsx
has three components in it. The file was very hard to read since we had to add more features to theMultiFormRowInputRow
. So, this PR will break it into three different files. This way, each file has one component in it.Both
FormRow
andMultiFormInputRow
need to keep track of "active forms". Also if we remove a visible form, we have to update this list. We could do this by adding it to the provider state, which would cause unnecessary renders. That's why we're passing some callbacks around for this purpose between the three components. We might want to clean up the code later, so I left a TODO for it.The multi-form-input is now sticky and takes only the available visible width. So it won't scroll with the rest of the forms (Set all form row is set to view width instead of form container width #2335). To do this, we had to add a
max-wdith
to themulti-form-input-row
that is updated when the width of theFormRow
changes (added toform-row.tsx
).We didn't like how the input in the multi-form-row stretches and takes up the whole row. That's why we've imposed a maximum width of 1200px with CSS. This CSS change alone for the textarea case as the
textarea
element doesn't take up the full available width. That's why we had to add aResizeSensor
tomulti-form-input-row.tsx
. This solution can be a bit annoying as we're updating the width when the container width changes. So, if a user changed the width intentionally, they would have to change it again.Markdown bar in Recordedit app wraps incorrectly #2334