-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: Handling erroneous state in Entity item ADS template #40363
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
Conversation
WalkthroughThe changes introduce an error state visual indicator for entities in the Entity Explorer. This is achieved by adding an optional Changes
Sequence Diagram(s)sequenceDiagram
participant EntityListTree as EntityListTreeItem
participant EntityItem
participant EditableEntityName
EntityListTree->>EntityItem: Passes hasError property
EntityItem->>EditableEntityName: Passes hasError property
EditableEntityName->>EditableEntityName: Renders text with error color if hasError is true
Assessment against linked issues
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
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
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx
(2 hunks)app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts
(1 hunks)app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityItem/EntityItem.tsx
(1 hunks)app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: perform-test / rts-build / build
- GitHub Check: perform-test / server-build / server-unit-tests
- GitHub Check: perform-test / client-build / client-build
- GitHub Check: client-unit-tests / client-unit-tests
- GitHub Check: client-build / client-build
- GitHub Check: client-lint / client-lint
- GitHub Check: client-prettier / prettier-check
- GitHub Check: storybook-tests
- GitHub Check: chromatic-deployment
- GitHub Check: chromatic-deployment
🔇 Additional comments (3)
app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.types.ts (1)
9-9
: LGTM: Good addition to support error state indicationThis is a clean addition that allows tree items to represent their error state, which aligns with the PR objective.
app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.types.ts (1)
30-31
: LGTM: Well-documented property additionGood documentation with a proper JSDoc comment. The optional property allows for backward compatibility.
app/client/packages/design-system/ads/src/Templates/EditableEntityName/EditableEntityName.tsx (1)
19-19
: LGTM: Clean implementation of error state visualizationGood implementation that properly visualizes the error state by conditionally applying the appropriate color from the design system. The use of CSS variables maintains consistency with the design system's color palette.
Also applies to: 110-110
Description
Handling erroneous state in Entity item ADS template
Fixes #40362
Automation
/ok-to-test tags="@tag.IDE"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14639928664
Commit: c9b2437
Cypress dashboard.
Tags:
@tag.IDE
Spec:
Thu, 24 Apr 2025 11:32:13 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit