-
Notifications
You must be signed in to change notification settings - Fork 200
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
Small fix for AML block UI #2383
Conversation
|
WalkthroughThe recent updates encompass various enhancements across components in the backoffice application. These include the addition of an Changes
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 (
|
PR Description updated to latest commit (8653eea) |
PR Review 🔍
Code feedback:
|
PR Code Suggestions ✨
|
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 (4)
- apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.tsx (2 hunks)
- apps/backoffice-v2/src/lib/blocks/components/AmlBlock/AmlMatch.tsx (1 hunks)
- apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx (1 hunks)
- services/workflows-service/prisma/data-migrations (1 hunks)
Files skipped from review due to trivial changes (2)
- apps/backoffice-v2/src/lib/blocks/components/AmlBlock/AmlMatch.tsx
- services/workflows-service/prisma/data-migrations
Additional comments not posted (3)
apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx (1)
92-96
: Ensure that the newscroll
,table
, andcell
properties are correctly utilized and do not conflict with existing styles or functionality.Verification successful
The new
scroll
,table
, andcell
properties are correctly integrated into theuseAmlBlock
function and are used for styling purposes. The changes appear consistent with the rest of the code and do not introduce any conflicts with existing styles or functionality.
- The
scroll
property sets the class name based on thetotalMatches
value.- The
table
property sets a fixed height for the table.- The
cell
property sets padding for the cells.These changes are straightforward and align with the intended functionality.
Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the usage of new properties in the `props` object. # Test: Search for the usage of `scroll`, `table`, and `cell` properties in the codebase. rg --type typescript 'scroll|table|cell' apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsxLength of output: 165
Script:
#!/bin/bash # Description: Verify the usage of new properties in the `props` object. # Test: Search for the usage of `scroll`, `table`, and `cell` properties in the codebase. rg 'scroll|table|cell' apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsxLength of output: 810
apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.tsx (2)
63-63
: The addition of theemptyCell
property to theprops
object in theIDataTableProps
interface looks good and maintains consistency with the existing structure.
298-298
: The usage of theemptyCell
property in theDataTable
component to set the class name for the empty cell is correct and consistent with the existing pattern.
apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx
Outdated
Show resolved
Hide resolved
apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx
Outdated
Show resolved
Hide resolved
apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.tsx
Outdated
Show resolved
Hide resolved
apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.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
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.tsx (2 hunks)
- apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.tsx
- apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx
User description
PR Type
Enhancement
Description
emptyCell
prop toDataTable
for custom styling when no data is available.AmlMatch
for better spacing and readability.useAmlBlock
hook to dynamically adjust the scroll height based on the number of matches.data-migrations
to point to the latest commit.Changes walkthrough 📝
DataTable.tsx
Enhance DataTable with emptyCell Prop and Adjust No Results Styling
apps/backoffice-v2/src/common/components/organisms/DataTable/DataTable.tsx
emptyCell
toIDataTableProps
.TableCell
component to use padding fromemptyCell
when noresults are displayed.
AmlMatch.tsx
Improve Layout and Key Handling in AmlMatch Component
apps/backoffice-v2/src/lib/blocks/components/AmlBlock/AmlMatch.tsx
fields.
better React key handling.
useAmlBlock.tsx
Dynamic Scroll Height and New Table Styling in useAmlBlock Hook
apps/backoffice-v2/src/lib/blocks/components/AmlBlock/hooks/useAmlBlock/useAmlBlock.tsx
scroll
className to adjust height based ontotalMatches
.table
className with a fixed height.data-migrations
Update Data Migrations Submodule Reference
services/workflows-service/prisma/data-migrations
Summary by CodeRabbit
Summary by CodeRabbit
New Features
emptyCell
prop to DataTable for enhanced customization of empty cells.Improvements
Maintenance