-
Notifications
You must be signed in to change notification settings - Fork 8
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
Column placeholder HLD #1869
Merged
Merged
Column placeholder HLD #1869
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rajsite and @fredvisser - can you take a look at this draft HLD and make sure it aligns with your expectations after our discussion last week? |
fredvisser
reviewed
Feb 27, 2024
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
fredvisser
approved these changes
Feb 27, 2024
rajsite
reviewed
Feb 27, 2024
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Outdated
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
mollykreis
added a commit
that referenced
this pull request
Feb 29, 2024
# Pull Request ## π€¨ Rationale Grouping on an icon value isn't ideal if any of the cells don't have an icon. Specifically, the group row doesn't have a value associated with it and renders only a row count. It would be nice if we could allow a client to leave a cell blank for certain field values but still have the group rows have a value associated with them. For example, have a column that shows either a spinner or nothing based on whether a task is in progress. When grouping, it would be nice to show a string, such as "Idle", associated with the records that have nothing in progress without cluttering the table with extra icons in cells. This is the Future Work described in #1869 ## π©βπ» Implementation Updated the icon column to allow a `nimble-mapping-icon` to have an `undefined` icon. In that case, the cell renders nothing but the group row renders only the text associated with the mapping. ## π§ͺ Testing Manually tested in storybook. Added new unit tests for having an `undefined` icon Updated storybook/matrix tests ## β Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [ ] I have updated the project documentation to reflect my changes or determined no changes are needed. --------- Co-authored-by: Milan Raj <[email protected]>
rajsite
reviewed
Mar 1, 2024
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Outdated
Show resolved
Hide resolved
β¦older-hld.md Co-authored-by: Milan Raj <[email protected]>
jattasNI
approved these changes
Mar 1, 2024
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Outdated
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Show resolved
Hide resolved
rajsite
approved these changes
Mar 5, 2024
packages/nimble-components/src/table/specs/table-column-placeholder-hld.md
Outdated
Show resolved
Hide resolved
mollykreis
added a commit
that referenced
this pull request
Mar 27, 2024
# Pull Request ## π€¨ Rationale This PR adds a `placeholder` configuration to the following table columns as described in #1869: - anchor - date-text - duration-text - number-text - text This is part of #1538. The remaining work is to add the `placeholder` attributes to the Angular and Blazor wrappers for each column. As part of this PR, I also included best practices established for each column in the storybook docs. These are adapted from the placeholder HLD. ## π©βπ» Implementation I implemented this change in a similar way as #1914. Specifically, I updated `TableColumnTextCellViewBase` to have its own implementation of `columnConfigChanged` and `cellRecordChanged` that calls a new `applyPlaceholderTextIfNeeded` function. This required me to create a `TableColumnTextBaseCellRecord` interface to enforce that the cell records used by `TableColumnTextCellViewBase` have a `value` property and to create a `TableColumnTextBaseColumnConfig` interface to enforce that the column configs used by `TableColumnTextCellViewBase` have an optional `placeholder` property. ## π§ͺ Testing - Updated/created unit tests - Manually tested in storybook - Updated matrix tests to test each relevant column with & without a placeholder ## β Checklist <!--- Review the list and put an x in the boxes that apply or ~~strike through~~ around items that don't (along with an explanation). --> - [ ] I have updated the project documentation to reflect my changes or determined no changes are needed. --------- Co-authored-by: Milan Raj <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
π€¨ Rationale
Create HLD for column placeholders in the table.
π©βπ» Implementation
N/A
π§ͺ Testing
N/A
β Checklist