Skip to content

fix: Update AutoToolTipComponent to use right position#34479

Closed
rahulbarwal wants to merge 5 commits intoreleasefrom
fix-23156/table-cell-popup-not-dismissing
Closed

fix: Update AutoToolTipComponent to use right position#34479
rahulbarwal wants to merge 5 commits intoreleasefrom
fix-23156/table-cell-popup-not-dismissing

Conversation

@rahulbarwal
Copy link
Contributor

@rahulbarwal rahulbarwal commented Jun 26, 2024

Description

This pull request updates the AutoToolTipComponent to use the "right" position instead of the fixed "bottom" position.

  • When there is enough space on right, it opens on right.
  • and shifts to the left if the position is not available.

Fixes #23156
or
Fixes Issue URL

Warning

If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation

/ok-to-test tags="@tag.Widget"

🔍 Cypress test results

Warning

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/9675134106
Commit: 53f6626
Cypress dashboard.
Tags: @tag.Widget
It seems like no tests ran 😔. We are not able to recognize it, please check workflow here.

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • New Features

    • Added a disableTooltip property to various components and configuration panels, allowing users to hide tooltips on cell hover in TableWidgetV2.
  • Bug Fixes

    • Adjusted tooltip positioning logic in AutoToolTipComponent.
  • Tests

    • Updated test cases to include the new disableTooltip property with default values.

@rahulbarwal rahulbarwal requested a review from jacquesikot June 26, 2024 07:09
@rahulbarwal rahulbarwal self-assigned this Jun 26, 2024
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 26, 2024

Walkthrough

The changes across various files introduce a new disableTooltip property for cells within the TableWidgetV2 component, allowing users to enable or disable tooltips. Additionally, the position="bottom" property was removed from the useToolTip function call, modifying tooltip positioning logic.

Changes

File Path Change Summary
app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx Removed position="bottom" from useToolTip function call.
app/client/src/widgets/TableWidgetV2/component/Constants.ts Added DisableTooltipProperties interface with disableTooltip boolean property, integrated into other interfaces.
app/client/src/widgets/TableWidgetV2/component/cellComponents/BasicCell.tsx Added new disableTooltip prop to component's props.
app/client/src/widgets/TableWidgetV2/component/cellComponents/PlainTextCell.tsx Added and passed new disableTooltip prop to a child component.
app/client/src/widgets/TableWidgetV2/component/header/actions/Utilities.test.ts Added disableTooltip with a value of false to an object within an array.
app/client/src/widgets/TableWidgetV2/widget/index.tsx Added disableTooltip property to the component being rendered.
app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/General.ts Added disableTooltip property to the configuration panel with various settings and validations.
app/client/src/widgets/TableWidgetV2/widget/utilities.ts Added disableTooltip to getDefaultColumnProperties function and modified getCellProperties to include it.

Sequence Diagram(s)

No sequence diagram required as changes primarily involve property additions and minor modifications.

Assessment against linked issues

Objective Addressed Explanation
Allow users to disable/enable tooltips as needed (#23156)
Modify tooltip positioning to resolve display issues (#23156)

Poem

In tables where the cells do dwell,
Tooltips used to cast a spell,
Now with a switch to turn them off,
No more will they appear aloft.
A tweak in how these tooltips gleam,
The table’s clearer, like a dream. 🌟


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added Widgets Product This label groups issues related to widgets Bug Something isn't working Community Reported issues reported by community members Medium Issues that frustrate users due to poor UX Needs Triaging Needs attention from maintainers to triage Production Table Widget Widgets & Blocks Pod and removed Bug Something isn't working labels Jun 26, 2024
@rahulbarwal rahulbarwal added the ok-to-test Required label for CI label Jun 26, 2024
@github-actions github-actions bot added the Bug Something isn't working label Jun 26, 2024
@rahulbarwal
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9675155220.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 34479.
recreate: .

@github-actions github-actions bot removed the Bug Something isn't working label Jun 26, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (2)
app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx (2)

Line range hint 32-32: Consider refactoring to use React hooks effectively.

The useToolTip function uses a createRef which is not typically recommended within a hook. Consider using useRef instead for better compatibility with functional component patterns.

- const ref = createRef<HTMLDivElement>();
+ const ref = useRef<HTMLDivElement>(null);

Line range hint 32-32: Potential memory leak in useToolTip.

The event listeners are removed only in the cleanup function of the useEffect. If the component unmounts before the timeout triggers, it might not clean up properly. Consider clearing the timeout immediately after it's not needed.

+ clearTimeout(timeout);
  ref.current?.removeEventListener("mouseenter", mouseEnterHandler);
  ref.current?.removeEventListener("mouseleave", mouseLeaveHandler);
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 854d3f0 and 53f6626.

Files selected for processing (1)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx (1 hunks)
Additional comments not posted (3)
app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx (3)

Line range hint 122-122: Validate conditional rendering in AutoToolTipComponent.

Ensure that all conditions (columnType and title) are correctly validated before deciding the component rendering path. This is crucial for maintaining consistent behavior.

Verification successful

Conditional rendering in AutoToolTipComponent is correctly implemented.

The conditions for rendering either LinkWrapper or ColumnWrapper with CellWrapper based on columnType and title are correctly validated.

  • The component checks if props.columnType === ColumnTypes.URL and props.title is truthy before rendering LinkWrapper.
  • If these conditions are not met, it renders ColumnWrapper with CellWrapper.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Validate the conditional rendering logic in `AutoToolTipComponent`.

# Test: Check for all possible values of `columnType` and `title`. Expect: Correct component rendering for each case.
rg --type typescript $'AutoToolTipComponent'

Length of output: 78



Script:

#!/bin/bash
# Correcting the file type and searching for the `AutoToolTipComponent` function definition.
rg 'function AutoToolTipComponent' --type ts

Length of output: 433



Script:

#!/bin/bash
# Extracting the implementation of `AutoToolTipComponent` from the specified file.
rg -A 50 'function AutoToolTipComponent' app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx

Length of output: 1151


Line range hint 99-99: Review the propagation handling in LinkWrapper.

The stopPropagation call in the onClick handler might interfere with other click handlers higher up in the component tree. Confirm that this behavior is intended.


Line range hint 32-32: Ensure tooltip visibility is handled correctly.

The conditional rendering based on requiresTooltip might not re-render if the tooltip requirement changes post-initial render because the listeners are removed after the first check. Consider adding a dependency to useEffect or re-attaching the listeners under certain conditions.

Since auto was creating problems when table was used in middle.
@rahulbarwal rahulbarwal changed the title Update AutoToolTipComponent to use auto position fix: Update AutoToolTipComponent to use auto position Jun 26, 2024
@github-actions github-actions bot added the Bug Something isn't working label Jun 26, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 53f6626 and 07446b4.

Files selected for processing (1)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx

@rahulbarwal rahulbarwal changed the title fix: Update AutoToolTipComponent to use auto position fix: Update AutoToolTipComponent to use right position Jun 26, 2024
This commit adds the disableTooltip property to the TableWidgetV2 component. The disableTooltip property allows users to hide tooltips on cell hover. This feature was added in response to user feedback and will improve the user experience when working with tables.
@rahulbarwal
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9676722324.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 34479.
recreate: .

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (10)
app/client/src/widgets/TableWidgetV2/component/cellComponents/BasicCell.tsx (1)

Line range hint 156-156: Redundant double-negation in title property

The static analysis tool flagged the use of redundant double-negation. This can lead to unnecessary complexity in code.

- title={!!value ? value.toString() : ""}
+ title={value ? value.toString() : ""}
app/client/src/widgets/TableWidgetV2/component/cellComponents/PlainTextCell.tsx (2)

Line range hint 209-209: Replace unsafe isNaN with Number.isNaN

The use of isNaN for type coercion is unsafe and can lead to unexpected behavior. It's recommended to use Number.isNaN for a more reliable check.

- if (isNaN(floatVal)) {
+ if (Number.isNaN(floatVal)) {

Also applies to: 91-91


Line range hint 211-227: Remove unnecessary else clause

The else clause in the currency formatting logic is unnecessary because the preceding if statement already returns a value. Removing the else can simplify the control flow.

- } else {
+ }
app/client/src/widgets/TableWidgetV2/widget/index.tsx (7)

Line range hint 274-276: Redundant double-negation should be removed.

The use of double-negation is unnecessary and can be simplified to improve code clarity.

- !!TableWidgetV2.getFeatureFlag(FEATURE_FLAG.rollout_js_enabled_one_click_binding_enabled)
+ TableWidgetV2.getFeatureFlag(FEATURE_FLAG.rollout_js_enabled_one_click_binding_enabled)

Line range hint 473-473: Use class name instead of this in static context.

The use of this in the static method getFeatureFlag can be confusing and should be replaced with the class name for clarity.

- this.getFeatureFlag(ALLOW_TABLE_WIDGET_SERVER_SIDE_FILTERING)
+ TableWidgetV2.getFeatureFlag(ALLOW_TABLE_WIDGET_SERVER_SIDE_FILTERING)

Line range hint 650-650: Redundant double-negation should be removed.

Similar to previous instances, remove the redundant double-negation to simplify the expression.

- !!Object.keys(this.props.primaryColumns).length
+ Object.keys(this.props.primaryColumns).length > 0

Line range hint 1935-1936: Use Object.hasOwn instead of hasOwnProperty.

To avoid potential issues with prototype chain modifications, use Object.hasOwn for property checks.

- this.props.isEditableCellsValid.hasOwnProperty(columnsAlias)
+ Object.hasOwn(this.props.isEditableCellsValid, columnsAlias)

Line range hint 693-695: Remove unnecessary else clause.

The else clause is not needed as the previous branches break early, simplifying the control flow.

- else {
+ {

Line range hint 2147-2155: Wrap declarations in a block within switch cases.

To prevent scope leakage, wrap the declarations inside the switch case blocks.

+ {
    let validationErrorMessage;
    if (isCellEditMode) {
      validationErrorMessage =
        column.validation.isColumnEditableCellRequired &&
        (isNil(props.cell.value) || props.cell.value === "")
          ? "This field is required"
          : column.validation?.errorMessage;
    }
+ }

Line range hint 2877-2879: Remove unnecessary else clause.

Similar to previous suggestions, removing the else clause can simplify the control flow.

- else {
+ {
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 07446b4 and 17405b2.

Files selected for processing (8)
  • app/client/src/widgets/TableWidgetV2/component/Constants.ts (4 hunks)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx (7 hunks)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/BasicCell.tsx (2 hunks)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/PlainTextCell.tsx (2 hunks)
  • app/client/src/widgets/TableWidgetV2/component/header/actions/Utilities.test.ts (1 hunks)
  • app/client/src/widgets/TableWidgetV2/widget/index.tsx (1 hunks)
  • app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/General.ts (1 hunks)
  • app/client/src/widgets/TableWidgetV2/widget/utilities.ts (2 hunks)
Files not reviewed due to errors (1)
  • app/client/src/widgets/TableWidgetV2/widget/utilities.ts (no review received)
Files skipped from review due to trivial changes (1)
  • app/client/src/widgets/TableWidgetV2/component/header/actions/Utilities.test.ts
Files skipped from review as they are similar to previous changes (1)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx
Additional context used
Biome
app/client/src/widgets/TableWidgetV2/component/cellComponents/BasicCell.tsx

[error] 156-156: Avoid redundant double-negation. (lint/complexity/noExtraBooleanCast)

It is not necessary to use double-negation when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant double-negation

app/client/src/widgets/TableWidgetV2/component/cellComponents/PlainTextCell.tsx

[error] 211-227: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 91-91: isNaN is unsafe. It attempts a type coercion. Use Number.isNaN instead. (lint/suspicious/noGlobalIsNan)

See the MDN documentation for more details.
Unsafe fix: Use Number.isNaN instead.


[error] 209-209: isNaN is unsafe. It attempts a type coercion. Use Number.isNaN instead. (lint/suspicious/noGlobalIsNan)

See the MDN documentation for more details.
Unsafe fix: Use Number.isNaN instead.

app/client/src/widgets/TableWidgetV2/widget/utilities.ts

[error] 130-132: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 244-244: Change to an optional chain. (lint/complexity/useOptionalChain)

Unsafe fix: Change to an optional chain.


[error] 272-276: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 274-276: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)


[error] 293-296: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 297-299: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 581-581: Duplicate case label. (lint/suspicious/noDuplicateCase)

The first similar label is here:


[error] 590-592: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 874-876: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 1118-1120: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 1121-1123: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 1129-1133: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 1131-1133: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

app/client/src/widgets/TableWidgetV2/widget/index.tsx

[error] 274-276: Avoid redundant double-negation. (lint/complexity/noExtraBooleanCast)

It is not necessary to use double-negation when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant double-negation


[error] 473-473: Using this in a static context can be confusing. (lint/complexity/noThisInStatic)

this refers to the class.
Unsafe fix: Use the class name instead.


[error] 650-650: Avoid redundant double-negation. (lint/complexity/noExtraBooleanCast)

It is not necessary to use double-negation when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant double-negation


[error] 693-695: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 722-722: Avoid redundant double-negation. (lint/complexity/noExtraBooleanCast)

It is not necessary to use double-negation when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant double-negation


[error] 788-788: Avoid redundant double-negation. (lint/complexity/noExtraBooleanCast)

It is not necessary to use double-negation when a value will already be coerced to a boolean.
Unsafe fix: Remove redundant double-negation


[error] 1935-1935: Do not access Object.prototype method 'hasOwnProperty' from target object. (lint/suspicious/noPrototypeBuiltins)

It's recommended using Object.hasOwn() instead of using Object.hasOwnProperty().
See MDN web docs for more details.


[error] 1936-1936: Do not access Object.prototype method 'hasOwnProperty' from target object. (lint/suspicious/noPrototypeBuiltins)

It's recommended using Object.hasOwn() instead of using Object.hasOwnProperty().
See MDN web docs for more details.


[error] 2147-2155: Other switch clauses can erroneously access this declaration.
Wrap the declaration in a block to restrict its access to the switch clause. (lint/correctness/noSwitchDeclarations)

The declaration is defined in this switch clause:

Unsafe fix: Wrap the declaration in a block.


[error] 2178-2236: Other switch clauses can erroneously access this declaration.
Wrap the declaration in a block to restrict its access to the switch clause. (lint/correctness/noSwitchDeclarations)

The declaration is defined in this switch clause:

Unsafe fix: Wrap the declaration in a block.


[error] 2190-2233: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 2207-2209: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.


[error] 2480-2480: Other switch clauses can erroneously access this declaration.
Wrap the declaration in a block to restrict its access to the switch clause. (lint/correctness/noSwitchDeclarations)

The declaration is defined in this switch clause:

Unsafe fix: Wrap the declaration in a block.


[error] 2867-2867: Do not access Object.prototype method 'hasOwnProperty' from target object. (lint/suspicious/noPrototypeBuiltins)

It's recommended using Object.hasOwn() instead of using Object.hasOwnProperty().
See MDN web docs for more details.


[error] 2877-2879: This else clause can be omitted because previous branches break early. (lint/style/noUselessElse)

Unsafe fix: Omit the else clause.

Additional comments not posted (8)
app/client/src/widgets/TableWidgetV2/component/cellComponents/BasicCell.tsx (2)

102-102: Addition of disableTooltip property to BasicCell Props

The addition of disableTooltip to the BasicCell props is consistent with the changes described in the PR summary and AI-generated summary. This allows for better control over tooltip behavior, enhancing user experience by making tooltips less intrusive based on the configuration.


147-147: Proper propagation of disableTooltip property

The disableTooltip property is correctly propagated to StyledAutoToolTipComponent. This ensures that the tooltip visibility can be dynamically adjusted, aligning with the changes intended in the PR.
[APROVED]

app/client/src/widgets/TableWidgetV2/component/cellComponents/PlainTextCell.tsx (2)

121-121: Addition of disableTooltip property to PlainTextCell Props

Just like in BasicCell.tsx, the disableTooltip property has been added to the props of PlainTextCell. This change is essential for allowing users to disable tooltips on cell hover, improving the usability of the table widget.


303-303: Proper propagation of disableTooltip property

The disableTooltip property is correctly propagated to the BasicCell component used within PlainTextCell. This ensures that the tooltip visibility configuration is respected in all cell types.

app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/General.ts (1)

108-128: Configuration panel update to include disableTooltip property

The addition of the disableTooltip property to the configuration panel allows users to easily toggle the visibility of tooltips from the UI. This is a user-friendly enhancement that aligns with the PR's objectives to improve user experience by providing more control over the tooltip behavior.

app/client/src/widgets/TableWidgetV2/component/Constants.ts (2)

154-156: Introduction of DisableTooltipProperties interface

The new DisableTooltipProperties interface with a disableTooltip boolean property is a strategic addition, allowing for a consistent way to manage tooltip visibility across different components and properties within the TableWidgetV2.


228-228: Consistent integration of disableTooltip across interfaces

The disableTooltip property has been consistently integrated across various interfaces (CellLayoutProperties, ColumnBaseProperties, and BaseCellComponentProps). This ensures that the new tooltip control feature is uniformly available throughout the TableWidgetV2 component.

Also applies to: 292-292, 505-505

app/client/src/widgets/TableWidgetV2/widget/index.tsx (1)

2500-2500: Addition of disableTooltip property in PlainTextCell rendering.

The disableTooltip property has been correctly integrated into the PlainTextCell component to control the visibility of tooltips based on the new property. This aligns with the PR's objective to enhance user experience by making tooltips less intrusive.

@github-actions
Copy link

Deploy-Preview-URL: https://ce-34479.dp.appsmith.com

@rahulbarwal
Copy link
Contributor Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/9678216851.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 34479.
recreate: .

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 17405b2 and 7f05ef0.

Files selected for processing (1)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx (6 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/client/src/widgets/TableWidgetV2/component/cellComponents/AutoToolTipComponent.tsx

@github-actions
Copy link

Deploy-Preview-URL: https://ce-34479.dp.appsmith.com

@rahulbarwal
Copy link
Contributor Author

Closing this in favor of: #34507
We might consider this solution later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Community Reported issues reported by community members Medium Issues that frustrate users due to poor UX Needs Triaging Needs attention from maintainers to triage ok-to-test Required label for CI Production Table Widget Widgets Product This label groups issues related to widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: The table tooltip covers the entire data and doesn't disappear

1 participant