-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(16355): remove error image and adjust error styles #745
feat(16355): remove error image and adjust error styles #745
Conversation
WalkthroughThe recent changes focus on enhancing the Changes
Poem
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 (
|
|
Bundle size diff
|
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
Outside diff range and nitpick comments (1)
src/features/analytics_panel/components/AnalyticsContainer/AnalyticsContainer.tsx (1)
Line range hint
28-28
: Replace==
with===
for strict equality check.- ('features' in geometry && geometry.features.length == 0) + ('features' in geometry && geometry.features.length === 0)
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
src/components/ErrorMessage/error-state-img.png
is excluded by!**/*.png
,!**/*.png
Files selected for processing (5)
- src/components/ErrorMessage/ErrorMessage.tsx (1 hunks)
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx (1 hunks)
- src/features/analytics_panel/components/AnalyticsContainer/AnalyticsContainer.tsx (1 hunks)
- src/features/event_episodes/components/EpisodesTimelinePanel/EpisodesTimelinePanel.tsx (1 hunks)
- src/features/events_list/components/FullState/FullState.tsx (1 hunks)
Files skipped from review due to trivial changes (1)
- src/features/event_episodes/components/EpisodesTimelinePanel/EpisodesTimelinePanel.tsx
Additional Context Used
Biome (3)
src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx (2)
29-29: Use === instead of ==.
== is only allowed when comparing againstnull
32-32: Use === instead of ==.
== is only allowed when comparing againstnull
src/features/analytics_panel/components/AnalyticsContainer/AnalyticsContainer.tsx (1)
28-28: Use === instead of ==.
== is only allowed when comparing againstnull
Additional comments not posted (3)
src/features/analytics_panel/components/AnalyticsContainer/AnalyticsContainer.tsx (1)
23-23
: The usage of theErrorMessage
component with the newmargin
prop is correct.src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx (1)
24-26
: The usage of theErrorMessage
component with the newmargin
prop is correct.src/features/events_list/components/FullState/FullState.tsx (1)
72-74
: The usage of theErrorMessage
component with the newmargin
prop is correct.
...dvanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx
Outdated
Show resolved
Hide resolved
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: 0
Outside diff range and nitpick comments (2)
src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (2)
Line range hint
35-35
: TheuseEffect
hook should include all its dependencies to ensure it behaves correctly. Consider addingupdateDimensions
to the dependency array.- useEffect(updateDimensions, [containerRef]); + useEffect(updateDimensions, [containerRef, updateDimensions]);
Line range hint
54-54
: TheuseEffect
hook specifiescontainerRef
as a dependency unnecessarily. SincecontainerRef
is a ref and does not change, it should not trigger re-renders or re-executions of this effect.- useEffect(updateDimensions, [containerRef]); + useEffect(updateDimensions, []);
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- src/components/ErrorMessage/ErrorMessage.tsx (1 hunks)
- src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (1 hunks)
- src/features/event_episodes/components/EpisodesTimelinePanel/EpisodesTimelinePanel.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- src/components/ErrorMessage/ErrorMessage.tsx
- src/features/event_episodes/components/EpisodesTimelinePanel/EpisodesTimelinePanel.tsx
Additional Context Used
Biome (2)
src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (2)
35-35: This hook does not specify all of its dependencies: updateDimensions
54-54: This hook specifies more dependencies than necessary: containerRef
Additional comments not posted (2)
src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (2)
72-72
: The removal of themarginTop
prop aligns with the PR's objective to adjust error styles. This simplifies the component and adheres to the new styling approach.
Line range hint
90-104
: ThePanelHeader
function is well-implemented, using conditional rendering based on the geometry state effectively.
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: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx
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: 0
Outside diff range and nitpick comments (2)
src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (2)
Line range hint
35-35
: Ensure all dependencies are specified in theuseEffect
hook.- useEffect(updateDimensions, [containerRef]); + useEffect(updateDimensions, [updateDimensions]);This change ensures that the effect correctly re-runs if
updateDimensions
changes, adhering to React's exhaustive dependencies rule.
Line range hint
54-54
: Remove unnecessary dependencies from theuseEffect
hook.- useEffect(updateDimensions, [containerRef]); + useEffect(updateDimensions, []);Since
updateDimensions
does not depend oncontainerRef
, it should not be included in the dependency array.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (7)
- src/components/ErrorMessage/ErrorMessage.module.css (1 hunks)
- src/components/ErrorMessage/ErrorMessage.tsx (1 hunks)
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.module.css (1 hunks)
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx (2 hunks)
- src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (1 hunks)
- src/features/events_list/components/FullState/FullState.module.css (1 hunks)
- src/features/events_list/components/FullState/FullState.tsx (1 hunks)
Files skipped from review due to trivial changes (3)
- src/components/ErrorMessage/ErrorMessage.module.css
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.module.css
- src/features/events_list/components/FullState/FullState.module.css
Files skipped from review as they are similar to previous changes (3)
- src/components/ErrorMessage/ErrorMessage.tsx
- src/features/advanced_analytics_panel/components/AdvancedAnalyticsContainer/AdvancedAnalyticsContainer.tsx
- src/features/events_list/components/FullState/FullState.tsx
Additional context used
Biome
src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx
[error] 35-35: This hook does not specify all of its dependencies: updateDimensions
[error] 54-54: This hook specifies more dependencies than necessary: containerRef
Additional comments not posted (1)
src/features/bivariate_manager/components/BivariateMatrixContainer/BivariateMatrixContainer.tsx (1)
70-74
: Updated usage ofErrorMessage
aligns with PR objectives.The change from
marginTop
tocontainerClass
for styling flexibility is correctly implemented here, matching the PR's goal of enhancing error message styling.
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: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/features/event_episodes/components/EpisodesTimelinePanel/EpisodesTimelinePanel.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/features/event_episodes/components/EpisodesTimelinePanel/EpisodesTimelinePanel.tsx
https://kontur.fibery.io/Tasks/My-tasks-3575#Task/Remove-icon-from-error-messages-on-DN-panels-16355