Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ballerine-io/ballerine
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @ballerine/[email protected]
Choose a base ref
...
head repository: ballerine-io/ballerine
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref

Commits on Nov 25, 2024

  1. Copy the full SHA
    d5bc3ba View commit details

Commits on Nov 26, 2024

  1. feat(UI): enhance dynamic UI input with event emission (#2861)

    * feat(UI): enhance dynamic UI input with event emission
    
    - Integrate useEffect to emit 'onMount' event for the dynamic input
    - Simplify transformer plugin types for better readability
    - Add new email template for assisted invitations
    
    (your code is starting to look like it was written in an emotional crisis)
    
    * refactor(types): streamline types with better structure
    
    - Change DocumentsValidatorRule to use an array for value
    - Update dispatchOn to use an array type for uiEvents
    - Modify elements to use array notation for consistency
    
    (Your type definitions look so confused, they probably need a GPS to find their way)
    
    * chore(deps): update zod to version 3.23.4 and class-variance-authority to 0.7.1
    
    - Upgrade zod dependency for improved type validation
    - Update class-variance-authority for better styling management
    - Ensure compatibility with recent code changes
    
    (your code is so outdated, it might as well still be using floppy disks)
    
    * chore(deps): update dependencies and bump versions across packages
    
    - Update various package versions to latest compatible releases
    - Reflect version bumps in changelogs and package.json files
    
    (your dependency management skills are about as organized as a sock drawer after laundry day)
    tomer-shvadron authored Nov 26, 2024
    Copy the full SHA
    c83a724 View commit details

Commits on Nov 27, 2024

  1. Dev 318/hotfix action (#2863)

    * feat: added new action for performing hotfix on wf-service
    
    * chore: added Under testing prefix in action name
    
    * chore: added for testing the hotfix action on sample application
    
    * fix: adding sanitized branch action for removing invalid values
    
    * chore: added final changes to modify the application name
    
    * fix: added update current version step
    
    * fix: added tag label for dev environment to use promote action
    
    * chore: changed action name
    
    * fix: added hotfix suffix in the bump version tags
    codechirag123 authored Nov 27, 2024
    Copy the full SHA
    020f5ca View commit details
  2. chore(all): bump workflow-browser-sdk and workflow-node-sdk versions

    - Update workflow-browser-sdk to version 0.6.69
    - Update workflow-node-sdk to version 0.6.69
    - Increment respective package versions and update changelogs
    
    (Your versioning strategy is so random, it could be used as a new lottery game)
    tomer-shvadron committed Nov 27, 2024
    Copy the full SHA
    2972abf View commit details
  3. chore(release): bump versions for multiple packages

    - Update package versions for workflow-browser-sdk and workflow-node-sdk to 0.6.70
    - Bump backoffice-v2, kyb-app, headless-example, and workflows-service to latest versions
    
    ersion bumps are solid, but let's hope the code isn't as old as these dependencies!)
    tomer-shvadron committed Nov 27, 2024
    Copy the full SHA
    9c303f1 View commit details
  4. Signup page leftovers (#2849)

    * refactor(workflow): remove createCollectionFlowToken references
    
    - Clean up the workflow configuration schema by removing the createCollectionFlowToken option
    - Update various workflow definition files to eliminate obsolete token settings
    
    (your code was so cluttered, it looked like a toddler's art project on a bad day)
    
    * refactor(workflow): streamline collection flow state creation
    
    - Remove unnecessary intermediate variable in buildCollectionFlowState
    - Reorganize import statements for better readability
    - Add a count method in WorkflowTokenService for token existence checks
    
    (Your code is so bloated, it could use a good diet and some introspection)
    
    * refactor(auth): update module imports for improved path clarity
    
    - Replace relative imports with absolute paths for better readability
    - Add additional providers to the TokenAuthModule for expanded functionality
    
    (You’re like a pathing guide in a maze – leading the way, but it’s still a bit of a headache)
    
    * refactor(workflow): rename service variable for clarity
    
    - Replace ambiguous service variable with workflowService
    - Update all references to maintain consistency
    - Enhance code readability and prevent confusion
    
    (Your variable names are like trying to find a needle in a haystack without the hay)
    
    * test(collection-flow): enhance integration tests for CollectionFlowNoUserController
    
    - Add imports for UiDefinitionRepository and ApiKey services
    - Include new dependencies in module testing setup
    - Create a new UI definition instance as part of the test setup
    
    (your tests are more complex than explaining the plot of Inception)
    
    * test(collection-flow): enhance integration tests for collection flow service
    
    - Add integration test for UI definition repository
    - Update results validation with environment variables
    
    (These tests are so robust, they can survive a zombie apocalypse… but maybe not a spelling mistake)
    tomer-shvadron authored Nov 27, 2024
    Copy the full SHA
    0f7a4d2 View commit details
  5. feat(schemas): add financial information and proof of ownership docum…

    …ents
    
    - Introduce bank statement and company structure schemas
    - Enhance document properties for better clarity
    
    (These schemas have more categories than I have excuses for being late)
    alonp99 committed Nov 27, 2024
    Copy the full SHA
    4945dcf View commit details
  6. chore(deps): update dependencies across multiple packages

    - Bump versions for @ballerine/common and related SDKs to 0.9.54 and 0.6.71
    - Ensure consistent dependency updates in backoffice-v2, kyb-app, and SDKs
    
    (the only time your dependencies should be this tangled is in a family reunion)
    alonp99 committed Nov 27, 2024
    Copy the full SHA
    d4f1d58 View commit details
  7. feat: added additional context to workflow core and extended browser-…

    …sdk (#2850)
    
    * feat: added additional context to workflow core and extended browser-sdk
    
    * fix: cleanup
    
    ---------
    
    Co-authored-by: Alon Peretz <8467965+alonp99@users.noreply.github.com>
    chesterkmr and alonp99 authored Nov 27, 2024
    Copy the full SHA
    e059a8a View commit details

Commits on Nov 28, 2024

  1. feat: added iframe detection and auto resolving for exit action (#2867)

    * feat: added iframe detection and auto resolving for exit action
    
    * fix: refactor & added jsdoc
    chesterkmr authored Nov 28, 2024
    Copy the full SHA
    7fbcebc View commit details

Commits on Nov 29, 2024

  1. feat(zod-schemas): add merchant monitoring configuration options

    - Add isMerchantMonitoringEnabled flag
    - Introduce maxBusinessReports field with default value
    
    (your schema is now so flexible, it could double as yoga instructor)
    alonp99 committed Nov 29, 2024
    Copy the full SHA
    27e0342 View commit details

Commits on Dec 1, 2024

  1. Revert "Signup page leftovers (#2849)"

    This reverts commit 0f7a4d2.
    tomer-shvadron committed Dec 1, 2024
    Copy the full SHA
    fb5e52b View commit details
  2. refactor(workflow): update API token handling in workflow service

    - Replace usage of metadata.token with query.token in API call headers
    - Update URL structure for various workflow-related endpoints
    - Add method to count tokens in the WorkflowTokenRepository
    
    (your token management is so convoluted, it looks like a scavenger hunt for lost socks)
    tomer-shvadron committed Dec 1, 2024
    Copy the full SHA
    7068072 View commit details

Commits on Dec 2, 2024

  1. chore(deps): update dependencies and increment versions across projects

    - Bumped versions to 0.6.72 for workflow-browser-sdk, workflow-node-sdk, and workflow-core
    - Incremented version to 0.7.76 for workflows-service
    - Updated various dependencies to ensure compatibility and functionality
    
    (Your dependency updates are less exciting than watching paint dry, but at least they're necessary)
    tomer-shvadron committed Dec 2, 2024
    Copy the full SHA
    12cb979 View commit details
  2. chore(release): bump versions of multiple packages

    - Update versions for backoffice-v2, kyb-app, workflows-dashboard, and others
    - Adjust dependencies for @ballerine/common and other libraries to latest versions
    
    (every time you bump a version, a little bit of your sanity goes with it)
    alonp99 committed Dec 2, 2024
    Copy the full SHA
    9452923 View commit details
  3. MM: Better indicator that traffic data was not detected (#2873)

    * chore: fix phrasing
    
    * chore: update dependencies
    MatanYadaev authored Dec 2, 2024
    Copy the full SHA
    a0d208a View commit details
  4. feat: added scroll top on page changes (#2785)

    * feat: added scroll top on page changes
    
    * fix: changelog
    
    ---------
    
    Co-authored-by: Alon Peretz <8467965+alonp99@users.noreply.github.com>
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    3 people authored Dec 2, 2024
    Copy the full SHA
    85eea80 View commit details
  5. Copy the full SHA
    b3ec333 View commit details
  6. fix: fixed document cropping & layout fixes (#2866)

    * fix: fixed document cropping & layout fixes
    
    * feat: layout fixes
    
    * feat: layout fixes
    chesterkmr authored Dec 2, 2024
    Copy the full SHA
    accd983 View commit details

Commits on Dec 3, 2024

  1. feat: adding new workflows for aggregated docker build and preview en… (

    #2865)
    
    * feat: adding new workflows for aggregated docker build and preview env build
    
    * feat: added new steps for branch sanitization
    
    * fix: added new action for destroy preview and step for branch cleanup
    
    * fix: changed the Secret token and repo name
    
    * fix: added coderabbit suggestions
    
    * fix: added code rabbit updates
    
    * fix: added code rabbit changes
    codechirag123 authored Dec 3, 2024
    Copy the full SHA
    6d6d78b View commit details

Commits on Dec 4, 2024

  1. feat: improve chatbot integration + css fixes (#2872)

    * feat(chatbot): enhance chatbot functionality with case data handling
    
    - Add client as a prop to Chatbot component
    - Implement sending current case data to chatbot
    - Improve environment variable usage for client ID
    
    (Your code is like a bad magician—now you see the client, now you don’t)
    
    * feat(chatbot): wrap chatbot in iframe component
    
    - Import RenderChildrenInIFrame to contain the Chatbot
    - Adjust resizing behavior based on chatbot visibility
    
    (It's about time that chatbot got some boundaries; it was getting a bit too cozy)
    
    * feat(chatbot): add configurable client ID for chatbot integration
    
    - Introduce VITE_BOTPRESS_CLIENT_ID to environment schema
    - Update Chatbot component to utilize dynamic client ID
    - Adjust customer features to include chatbot configuration
    
    (If your chatbot was any less reliable, it would be giving out horoscopes instead of responses)
    
    * chore(chatbot): remove unnecessary chatbot enable flags
    
    - Remove redundant isChatbotEnabled flags from schemas
    - Clean up caseId assignment placement in chatbot component
    
    (Your code is so clean, it's practically begging for a dust bunny)
    
    * refactor(chatbot): streamline chatbot client management
    
    - Remove unused WebchatClient state from ChatbotLayout
    - Change variable names for clarity and consistency
    - Update useEffect hooks to handle new parameter definitions
    
    (With all these changes, I half-expect the chatbot to start giving better life advice)
    
    * refactor(customer): rename 'isEnabled' to 'enabled' for clarity
    
    - Update CustomerSchema to use 'enabled' instead of 'isEnabled'
    - Adjust conditional check in ChatbotLayout for consistency
    
    (your naming conventions are so confusing, they should come with a user manual)
    
    ---------
    
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    shanegrouber and tomer-shvadron authored Dec 4, 2024
    Copy the full SHA
    786d520 View commit details
  2. chore(release): bump versions and update dependencies across projects

    - Update version for multiple packages, including common and SDKs
    - Set new dependencies for various applications and services
    
    (These version bumps are so frequent, they should start charging rent)
    tomer-shvadron committed Dec 4, 2024
    Copy the full SHA
    43d2bdd View commit details

Commits on Dec 5, 2024

  1. Signup flow configuration (#2876)

    * feat(signup): add job title and additional info to signup form
    
    - Introduce optional job title field in signup form schema
    - Modify user creation logic to include additional information
    - Update UI to accommodate new form structure
    
    (Your signup form is expanding faster than my collection of dad jokes)
    
    * feat(database): add DBA column to Business model and migration
    
    - Introduce a new 'dba' column to the Business schema
    - Create migration for adding the 'dba' column in the database
    
    (Your database schema has more additions than my Netflix watchlist)
    
    * fix(ui-definition): correct URL formatting in collection flow event
    
    - Update URLs to remove unnecessary closing curly braces
    - Ensure consistent formatting across multiple files
    
    (your code is like a URL with a typo—hard to reach the destination)
    
    ---------
    
    Co-authored-by: Alon Peretz <8467965+alonp99@users.noreply.github.com>
    tomer-shvadron and alonp99 authored Dec 5, 2024
    Copy the full SHA
    a0601f5 View commit details

Commits on Dec 6, 2024

  1. feat(Toaster): add close button functionality to toaster notifications

    - Include close button in toaster component
    - Enhance toast options with close button styling
    
    (your toasts now close faster than conversations at a family reunion)
    alonp99 committed Dec 6, 2024
    Copy the full SHA
    2f8c9fd View commit details

Commits on Dec 7, 2024

  1. Copy the full SHA
    c4959d8 View commit details

Commits on Dec 8, 2024

  1. Copy the full SHA
    b688d7f View commit details

Commits on Dec 9, 2024

  1. Copy the full SHA
    1f9a3b1 View commit details
  2. Editable entity data (#2875)

    * feat(*) added a cell that can render and edit context dynamically
    
    * refactor(*) updated editable details v2 api, added disabled states, added sorting
    
    * chore(*) updated packages
    
    * feat(*): ran format
    Omri-Levy authored Dec 9, 2024
    Copy the full SHA
    fe55bfa View commit details

Commits on Dec 10, 2024

  1. Copy the full SHA
    c8cea9e View commit details
  2. Copy the full SHA
    803b88f View commit details
  3. Added no op event to workflow runner (#2884)

    * feat(workflow-core): added no op event to workflow runner
    
    * feat(workflow-core): added no op action to workflow runner
    
    * fix(workflow-core): fixed missing export and state variable
    
    * fix(workflow-core): fixed missing export and state variable
    Omri-Levy authored Dec 10, 2024
    Copy the full SHA
    70c74f8 View commit details

Commits on Dec 11, 2024

  1. Copy the full SHA
    b8bf216 View commit details
  2. style(components): change button state styling to fix disappearing bu…

    …ttons (#2877)
    
    * style(components): enhance button state styling for better UX
    
    - Update button classes to include hover and enabled states
    - Remove unused CSS rules to streamline styles
    
    (your buttons now have more states than a soap opera character)
    
    * fix(buttons): update background color for button components
    
    - Change button styles from slate to primary background and hover colors
    - Ensure consistency across different components for better UX
    
    (your color choices are so dark, they could be the backdrop for a horror movie)
    
    ---------
    
    Co-authored-by: Omri Levy <61207713+Omri-Levy@users.noreply.github.com>
    shanegrouber and Omri-Levy authored Dec 11, 2024
    Copy the full SHA
    3750829 View commit details
  3. fix(stepper): improve step display and clean up formatting

    - Refactor step display to enhance layout and readability
    - Add a new no-op constant to built-in events
    - Clean up transition validation logic
    
    (Your transition validation is so confusing, it makes find-and-replace look like a clear path)
    alonp99 committed Dec 11, 2024
    Copy the full SHA
    c9723b2 View commit details

Commits on Dec 12, 2024

  1. Date input improvements (#2889)

    * refactor(*): changed handling of date inputs
    
    * ci(*): testing path change
    
    * temporarily disabled test
    
    * updated hook name
    
    ---------
    
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    Omri-Levy and tomer-shvadron authored Dec 12, 2024
    Copy the full SHA
    c72a40d View commit details
  2. EditableDetailsV2 input type improvement (#2891)

    * refactor(*): changed handling of date inputs
    
    * ci(*): testing path change
    
    * temporarily disabled test
    
    * updated hook name
    
    * fix(backoffice-v2): no longer looking at form value for input type
    
    ---------
    
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    Omri-Levy and tomer-shvadron authored Dec 12, 2024
    Copy the full SHA
    5e94853 View commit details
  3. EditableDetailsV2 added ability to override input type (#2892)

    * refactor(*): changed handling of date inputs
    
    * ci(*): testing path change
    
    * temporarily disabled test
    
    * updated hook name
    
    * fix(backoffice-v2): no longer looking at form value for input type
    
    * feat(backoffice-v2): added a way to override input type
    
    ---------
    
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    Omri-Levy and tomer-shvadron authored Dec 12, 2024
    Copy the full SHA
    a885d7e View commit details

Commits on Dec 13, 2024

  1. Dev 318/action alert delivery (#2893)

    * feat: adding changes for sending alerts to specific channel
    
    * fix: added change in hotfix action
    codechirag123 authored Dec 13, 2024
    Copy the full SHA
    35e675e View commit details

Commits on Dec 15, 2024

  1. test(workflow): add integration tests for workflow controller (#2888)

    * test(workflow): add integration tests for workflow controller
    
    - Create integration tests for the external workflow controller
    - Validate authentication and input parameters in various scenarios
    
    (your test suite is so long, I half expect it to come with a subscription plan)
    
    * test(workflow): enhance integration test for workflow API response
    
    - Update the assertion to match an object structure
    - Include additional expected properties in the response check
    
    (That test is so thorough, it could pass a background check for a secret agent)
    
    * fix(workflow): correct spelling of "Definition" in error messages
    
    - Update test and exception messages to fix the spelling of "Definition"
    - Ensure consistency in error handling output across the service
    
    (your typos are so recurrent, they're basically the project's middle name)
    tomer-shvadron authored Dec 15, 2024
    Copy the full SHA
    4def82c View commit details

Commits on Dec 16, 2024

  1. chore(workflows-service): rewrite quality control prop (#2897)

    - Refactor quality control property to always include it
    
    (your code changes are easier to track than a breadcrumb trail in a bakery)
    shanegrouber authored Dec 16, 2024
    Copy the full SHA
    1f5830e View commit details
  2. fix(business-report): correct fallback for merchant name

    - Update fallback logic for merchant name to use a more consistent value
    - Add 'withQualityControl' to customer configuration schema
    
    (Your logic for merchant names was so off, even Google Maps would get lost)
    alonp99 committed Dec 16, 2024
    Copy the full SHA
    a82ff89 View commit details

Commits on Dec 19, 2024

  1. Copy the full SHA
    4e6945e View commit details
  2. chore(workflows-service): update tsconfig to exclude prisma migrations

    - Exclude prisma/migrations from builds
    - Adjust sourceRoot for cleaner paths
    
    (Your code exclusions are like a club for VIPs only—no migrations allowed)
    alonp99 committed Dec 19, 2024
    Copy the full SHA
    74016de View commit details
  3. fix(sync): handle potential null values in object hashing

    - Ensure stableStringify does not return null for column hashing
    - Improve data integrity checks by handling null values in comparisons
    
    (your null checks are so lacking, they’d fail a Turing test)
    alonp99 committed Dec 19, 2024
    Copy the full SHA
    9f77bf3 View commit details

Commits on Dec 22, 2024

  1. chore: update package versions and dependencies

    - Bump package versions across various modules
    - Update dependencies to the latest stable versions
    
    (With this many updates, your dependencies have more frequent flyer miles than I do)
    alonp99 committed Dec 22, 2024
    Copy the full SHA
    6cf48a8 View commit details
  2. feat(workflow-definition): add configuration examples for vendors

    - Include detailed configuration examples for various vendors
    - Improve clarity on vendor integration and usage
    
    (These examples are so detailed, they could serve as a user manual for a rocket)
    alonp99 committed Dec 22, 2024
    Copy the full SHA
    8a04ed5 View commit details

Commits on Dec 23, 2024

  1. fix: increase batch size

    MatanYadaev committed Dec 23, 2024
    Copy the full SHA
    2ee1cdb View commit details
  2. Copy the full SHA
    246451b View commit details

Commits on Dec 24, 2024

  1. bal 3191 (#2905)

    * refactor(merchant-monitoring): improve search and date filtering logic
    
    - Simplify search parameters handling across components
    - Integrate DateRangePicker for filtering reports by date range
    - Clean up redundant search schemas and unused imports
    
    (your code is now so tidy, it could host a top-tier cleaning service)
    
    * BAL 3197 - add merchant monitoring filters to UI (#2901)
    
    * feat(business-reports): add UI for filtering by merchant type
    
    - Update reportType to accept 'All' alongside existing options
    - Modify query parameters to exclude type when 'All' is selected
    - Integrate a dropdown for selecting report types in the Merchant Monitoring page
    
    (Your dropdown is so user-friendly, it practically holds their hand through the process)
    
    * feat(business-reports): add risk level filtering to business reports
    
    - Integrate risk level filters in the business reports fetching logic
    - Update the MerchantMonitoring component to support risk level selection
    - Enhance search schema to include risk level as an optional filter
    
    (You've just added complexity like it's a family reunion—everyone’s confused!)
    
    * feat(MerchantMonitoring): add status filters to reports
    
    - Refactor MultiSelect components to include status filters
    - Update handling functions for new status parameter
    
    (your code is now as organized as a folder full of junk drawers)
    
    * feat(multi-select): enhance multi-select component with optional props
    
    - Add support for left and right icons in multi-select trigger
    - Refactor button styling in multi-select to accommodate new props
    - Modify multi-select usage in MerchantMonitoring to utilize new features
    
    (Your multi-select options are so numerous, I'm surprised it's not a buffet)
    
    ---------
    
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    
    * refactor(business-reports): update report types and related logic
    
    - Rename and consolidate status and risk level types for clarity
    - Adjust fetch and query functions to accommodate new type structures
    - Ensure consistent naming conventions throughout the codebase
    
    (your code changes remind me of a jigsaw puzzle with missing pieces)
    
    * feat(risk): add risk level parameter to business report requests
    
    - Introduce riskLevel parameter for filtering reports
    - Update relevant DTO and validation schemas
    - Remove deprecated risk score utility function
    
    (Your risk assessment is so vague, it could be a fortune cookie message)
    
    * feat(MerchantMonitoring): add clear filters functionality
    
    - Implement onClearAllFilters to reset all filter parameters
    - Add a "Clear All" button in the Merchant Monitoring page
    - Update MultiSelect to include a clear filters command item
    
    (Your code organization is so jumbled, it could confuse a GPS navigation system)
    
    * feat(date-picker): add placeholder support to DateRangePicker component
    
    - Introduce placeholder prop for custom placeholder text
    - Update the DateRangePicker usage in MerchantMonitoring page
    
    (You've mastered the art of making placeholder text feel more special than a VIP guest)
    
    * refactor(MerchantMonitoring): simplify filter management structure
    
    - Replace array of filter configurations with single objects for risk and status levels
    - Update the related components to use the new filter structure
    
    (It's a good thing you streamlined this code; it was starting to look like a game of Jenga)
    
    * refactor(business-reports): rename report status types for clarity
    
    - Update TReportStatus to TReportStatusTranslations
    - Adjust types in fetchBusinessReports and useBusinessReportsQuery
    - Replace all deprecated references in business reports logic
    
    (These type names are so confusing, it's like translating a secret code in a spy movie)
    
    * feat(reports): enhance multi-select functionality and findings integration
    
    - Update Command component to implement search filtration
    - Refactor statuses to utilize a new value mapping scheme
    - Add findings support across various components and APIs
    
    (Your code changes are so extensive, they could be a thrill ride at an amusement park)
    
    * refactor(business-reports): update risk level and report type handling
    
    - Replace single risk level parameter with an array for consistency
    - Streamline fetching and querying logic across components
    
    (Your variable names are so inconsistent, they could start a family feud)
    
    * fix(business-reports): simplify query enabled condition
    
    - Remove unnecessary string check for reportType
    - Simplify boolean conditions for enabling query
    
    (your code had more checks than a paranoid mother-in-law)
    
    ---------
    
    Co-authored-by: Shane <66246046+shanegrouber@users.noreply.github.com>
    tomer-shvadron and shanegrouber authored Dec 24, 2024
    Copy the full SHA
    19fcf9f View commit details
  2. Make social links clickable + Hide “ads” section BAL-3220 (#2907)

    * chore: hide ads sections; add href attribute to anchor-if-url component
    
    * chore: release version
    
    ---------
    
    Co-authored-by: Tomer Shvadron <tomers@ballerine.com>
    MatanYadaev and tomer-shvadron authored Dec 24, 2024
    Copy the full SHA
    3b32e39 View commit details
Showing 1,451 changed files with 100,402 additions and 35,518 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"changelog": "@changesets/changelog-git",
"commit": false,
"fixed": [],
"linked": [],
"linked": [["@ballerine/ui", "@ballerine/backoffice-v2"]],
"access": "public",
"baseBranch": "dev",
"updateInternalDependencies": "patch",
146 changes: 146 additions & 0 deletions .cursor/rules/backoffice-v2.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
---
description: Rules and best practices for backoffice-v2 React TypeScript development
globs: ["apps/backoffice-v2/**/*.{ts,tsx}"]
---

# Backoffice V2 Development Rules

## Component Architecture
- Use functional components with TypeScript
- Implement smart/dumb component pattern
- Place components in feature-based directories
- Use compound components for complex UIs
- Follow atomic design principles

```typescript
export const MyComponent: FunctionComponent<Props> = () => {
return <div>...</div>;
};

// Compound component example
MyComponent.SubComponent = ({ children }) => {
return <div>{children}</div>;
};
```

## Hooks and Logic
- Separate business logic into custom hooks
- Place hooks in dedicated `hooks` directories
- Use the `use` prefix for all hooks
- Implement hook composition pattern
- Keep hooks focused and reusable

```typescript
// Logic hook example
export const useComponentLogic = () => {
// Business logic
return {
// Hook return values
};
};
```

## State Management
- Use React Query for server state
- Use Context for shared state
- Implement state machines for complex flows
- Use local state for UI-only state
- Follow unidirectional data flow

## TypeScript Best Practices
- Use strict TypeScript configuration
- Define interfaces for all props
- Use discriminated unions for state
- Leverage type inference
- Export types from separate files

## UI Components
- Use Radix UI for accessible components
- Implement proper ARIA attributes
- Follow consistent styling patterns
- Use composition over inheritance
- Keep components small and focused

## Forms and Validation
- Use React Hook Form for forms
- Implement Zod for validation
- Handle form submission states
- Show validation feedback
- Use controlled inputs when needed

## Data Fetching
- Use React Query for API calls
- Implement proper loading states
- Handle error states gracefully
- Cache responses appropriately
- Type API responses

## Error Handling
- Use error boundaries
- Implement fallback UI
- Handle async errors
- Show user-friendly messages
- Log errors appropriately

## Performance
- Use React.memo wisely
- Implement proper code splitting
- Use lazy loading for routes
- Optimize re-renders
- Profile performance regularly

## Testing
- Write unit tests for components
- Test custom hooks independently
- Use React Testing Library
- Mock external dependencies
- Maintain good coverage

## File Structure
- Follow feature-based organization
- Use index files for exports
- Keep related files together
- Use consistent naming
- Implement barrel exports

## Styling
- Use Tailwind CSS
- Follow utility-first approach
- Use CSS variables for theming
- Keep styles maintainable
- Use CSS modules when needed

## Documentation
- Document complex logic
- Write clear component docs
- Document hook usage
- Keep docs up to date
- Use JSDoc when helpful

## Code Quality
- Follow ESLint rules
- Use consistent formatting
- Write clear variable names
- Keep functions pure
- Use meaningful types

## Security
- Validate user input
- Implement proper authentication
- Handle sensitive data carefully
- Follow security best practices
- Use HTTPS for API calls

## Accessibility
- Follow WCAG guidelines
- Use semantic HTML
- Test with screen readers
- Ensure keyboard navigation
- Provide proper focus management

## Best Practices
- Follow React patterns
- Keep code DRY
- Handle edge cases
- Write maintainable code
- Review code regularly
11 changes: 11 additions & 0 deletions .cursor/rules/comments.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
description: How to write comments
globs:
---
Write comments thoughtfully:
- Do NOT write comments that explain obvious code or restate WHAT the code does.
- Comments should primarily explain WHY code exists or WHY a particular approach was chosen.
- Only add comments for complex, non-intuitive logic where the code itself doesn't clearly communicate intent.
- Always provide clear documentation for functions (purpose, inputs, outputs).
- Avoid unnecessary comments that add visual noise without adding value.
- Write comments only when they provide genuine insight or when explicitly requested.
115 changes: 115 additions & 0 deletions .cursor/rules/kyb-app.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
---
description: Rules and best practices for kyb-app React TypeScript development
globs: ["apps/kyb-app/**/*.{ts,tsx}"]
---

# KYB App Development Rules

## Component Structure
- Use functional components with TypeScript
- Export components as named exports
- Place components in feature-based directories
- Use `FunctionComponent` type for React components

```typescript
export const MyComponent: FunctionComponent<Props> = () => {
return <div>...</div>;
};
```

## Hooks
- Place hooks in a `hooks` directory within the feature directory
- Export hooks as named exports
- Use the `use` prefix for all hooks
- Prefer custom hooks for reusable logic
- Keep hooks focused and single-purpose

```typescript
export const useMyHook = () => {
// Hook logic
};
```

## State Management
- Use React Query for server state
- Use React Context for global UI state
- Use local state for component-specific state
- Prefer `useState` for simple state
- Use `useReducer` for complex state logic

## TypeScript
- Use strict TypeScript configuration
- Define interfaces for all props
- Use type inference where possible
- Export types and interfaces from separate files
- Use discriminated unions for complex state

## Styling
- Use Tailwind CSS for styling
- Follow utility-first approach
- Use `ctw` utility for conditional classes
- Keep styles close to components
- Use CSS modules for complex styling needs

## File Organization
- Group related files in feature directories
- Use index files for clean exports
- Keep files focused and single-purpose
- Follow consistent naming conventions
- Use barrel exports for cleaner imports

## Error Handling
- Use error boundaries for component errors
- Implement proper error states
- Handle async errors gracefully
- Show user-friendly error messages
- Log errors appropriately

## Performance
- Use React.memo for expensive renders
- Implement proper dependency arrays in hooks
- Avoid unnecessary re-renders
- Use lazy loading for routes
- Implement proper code splitting

## Testing
- Write unit tests for components
- Test custom hooks independently
- Use React Testing Library
- Follow testing best practices
- Maintain good test coverage

## Forms
- Use React Hook Form for form handling
- Implement proper form validation
- Handle form submission states
- Show validation feedback
- Use controlled components when needed

## API Integration
- Use React Query for data fetching
- Implement proper loading states
- Handle error states gracefully
- Cache responses appropriately
- Use TypeScript for API types

## Accessibility
- Follow WCAG guidelines
- Use semantic HTML
- Implement proper ARIA attributes
- Ensure keyboard navigation
- Test with screen readers

## Code Quality
- Use ESLint for code quality
- Follow consistent code style
- Write clear documentation
- Use meaningful variable names
- Keep functions pure when possible

## Best Practices
- Follow React best practices
- Keep components small and focused
- Use proper prop types
- Implement proper loading states
- Handle edge cases appropriately
Loading