Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's GuideAligns tests and infrastructure with Biome linting and updated auth/runtime policies: normalizes timer handling and scheduled-work drainage, tightens FairLend admin boundaries, updates CRM view-column visibility logic, fixes test harness imports and WorkOS env setup, simplifies admin role permissions, and adds idempotency coverage for the disbursement bridge. Sequence diagram for resolving CRM view state with saved view–aware column visibilitysequenceDiagram
actor User
participant CRM_UI
participant ViewStateResolver
participant EffectiveColumnBuilder
User->>CRM_UI: selectView(viewId)
CRM_UI->>ViewStateResolver: resolveViewState(viewId)
ViewStateResolver->>ViewStateResolver: loadEffectiveState()
ViewStateResolver->>ViewStateResolver: determine savedViewApplied
ViewStateResolver->>EffectiveColumnBuilder: buildEffectiveColumns(adapterContract, effectiveView, fieldDefsById, savedViewApplied, viewFields, viewIsDefault)
loop for each fieldId
EffectiveColumnBuilder->>EffectiveColumnBuilder: lookup baseColumn
alt no baseColumn
EffectiveColumnBuilder-->>ViewStateResolver: []
else baseColumn found
EffectiveColumnBuilder->>EffectiveColumnBuilder: isPersistedColumn = persistedColumnsById.has(fieldId)
alt savedViewApplied and isPersistedColumn
EffectiveColumnBuilder->>EffectiveColumnBuilder: isVisible = visibleFieldIds.has(fieldId)
else not both savedViewApplied and isPersistedColumn
EffectiveColumnBuilder->>EffectiveColumnBuilder: isVisible = visibleFieldIds.has(fieldId) or baseColumn.isVisibleByDefault
end
EffectiveColumnBuilder-->>ViewStateResolver: ViewColumnDefinition(isVisible)
end
end
ViewStateResolver-->>CRM_UI: resolvedViewState(columns)
CRM_UI-->>User: renderGrid(columns)
Flow diagram for disbursement bridge eligibility without transferRequestId filterflowchart TD
A[start entry]
B{entry.lenderId matches args.lenderId?
or args.lenderId undefined?}
C[exclude entry]
D{payoutType == scheduled_with_timestamp?}
E{entry.payoutEligibleAfter defined and not empty?}
F{payoutType == scheduled_without_timestamp?}
G{entry.payoutEligibleAfter is undefined or empty?}
H[include entry as eligible]
I[exclude entry]
A --> B
B -->|no| C
B -->|yes| D
D -->|yes| E
E -->|yes| H
E -->|no| I
D -->|no| F
F -->|yes| G
G -->|yes| H
G -->|no| I
F -->|no| I
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|

biome linting
Fix remaining regression failures
Summary by Sourcery
Align authorization, cron scheduling, and CRM view behavior with current policy while fixing test harness regressions and documenting outstanding test failures.
New Features:
Bug Fixes:
Enhancements:
admin:accesspermission and treat feature permissions as explicit grants, tightening the RBAC model.CI:
Tests: