-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore: WDS table widget polish #33417
Conversation
WalkthroughWalkthroughThe updates primarily focus on standardizing button variants and icon positions, refining the primary columns control component, and polishing the WDS table widget. Key adjustments include converting button variant values to uppercase, dynamically setting button variants using Changes
Assessment against linked issues
Recent Review DetailsConfiguration used: CodeRabbit UI CommitsFiles that changed from the base of the PR and between 89ad68289c5a3dbf9af62864b97c6595100e605f and 01e278b.Files selected for processing (36)
Files skipped from review as they are similar to previous changes (36)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 2
|
||
return ( | ||
<Link | ||
color={cellColor === "default" ? undefined : cellColor} | ||
href={href} | ||
isBold={isBold} | ||
isItalic={isItalic} | ||
lineClamp={lineClamp} | ||
lineClamp={1} |
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.
Consider making lineClamp
configurable.
To enhance flexibility, consider making the lineClamp
value configurable through props instead of hardcoding it to 1
.
- lineClamp={1}
+ lineClamp={props.lineClamp || 1}
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
lineClamp={1} | |
lineClamp={props.lineClamp || 1} |
|
||
return ( | ||
<Text | ||
color={cellColor === "default" ? undefined : cellColor} | ||
isBold={isBold} | ||
isItalic={isItalic} | ||
lineClamp={lineClamp} | ||
lineClamp={1} |
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.
Consider making lineClamp
configurable.
To enhance flexibility, consider making the lineClamp
value configurable through props instead of hardcoding it to 1
.
- lineClamp={1}
+ lineClamp={props.lineClamp || 1}
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
lineClamp={1} | |
lineClamp={props.lineClamp || 1} |
@@ -958,7 +958,11 @@ export class WDSTableWidget extends BaseWidget<TableWidgetProps, WidgetState> { | |||
} | |||
selectedRowIndices={this.getSelectedRowIndices()} | |||
serverSidePaginationEnabled={!!this.props.serverSidePaginationEnabled} | |||
showConnectDataOverlay={false} | |||
showConnectDataOverlay={ |
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.
Adding back the connect overlay. I forgot adding it back once i changed the methods config.
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.
Actionable comments posted: 1
{this.isEditableColumnPresent() && ( | ||
<EdtiableCheckboxWrapper | ||
className="flex t--uber-editable-checkbox" | ||
rightPadding={this.state.hasScrollableList} | ||
> | ||
<span className="mr-2">Editable</span> | ||
<Checkbox | ||
isSelected={this.isAllColumnsEditable()} | ||
onChange={this.toggleAllColumnsEditability} | ||
/> | ||
</EdtiableCheckboxWrapper> | ||
)} |
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.
Typo in class name EdtiableCheckboxWrapper
. It should be EditableCheckboxWrapper
.
- const EdtiableCheckboxWrapper = styled.div<{ rightPadding: boolean | null }>`
+ const EditableCheckboxWrapper = styled.div<{ rightPadding: boolean | null }>`
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.
{this.isEditableColumnPresent() && ( | |
<EdtiableCheckboxWrapper | |
className="flex t--uber-editable-checkbox" | |
rightPadding={this.state.hasScrollableList} | |
> | |
<span className="mr-2">Editable</span> | |
<Checkbox | |
isSelected={this.isAllColumnsEditable()} | |
onChange={this.toggleAllColumnsEditability} | |
/> | |
</EdtiableCheckboxWrapper> | |
)} | |
{this.isEditableColumnPresent() && ( | |
<EditableCheckboxWrapper | |
className="flex t--uber-editable-checkbox" | |
rightPadding={this.state.hasScrollableList} | |
> | |
<span className="mr-2">Editable</span> | |
<Checkbox | |
isSelected={this.isAllColumnsEditable()} | |
onChange={this.toggleAllColumnsEditability} | |
/> | |
</EditableCheckboxWrapper> | |
)} |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9094629545. |
Deploy-Preview-URL: https://ce-33417.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9110969131. |
Deploy-Preview-URL: https://ce-33417.dp.appsmith.com |
Whoops! Looks like you're using an outdated method of running the Cypress suite. |
89ad682
to
01e278b
Compare
Fixes #33389
/ok-to-test tags="@tag.Table"
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9112073097
Commit: 89ad68289c5a3dbf9af62864b97c6595100e605f
Cypress dashboard url: Click here!