improvement(enterprise): slack wizard UI, enterprise docs, data retention updates#4241
improvement(enterprise): slack wizard UI, enterprise docs, data retention updates#4241waleedlatif1 merged 12 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Updates Data Retention behavior and UX: non-enterprise cleanup defaults are increased ( Improves enterprise settings consistency by introducing a shared Reviewed by Cursor Bugbot for commit 5c671b7. Configure here. |
Greptile SummaryThis PR polishes the enterprise settings surface: it updates the Slack setup wizard UI, adds enterprise doc pages (Access Control, Audit Logs, Whitelabeling, Data Retention), extracts a shared
Confidence Score: 4/5Safe to merge with the understanding that self-hosted data-retention cleanup will be silently inoperative until the dispatcher is fixed. The UI, API route, feature flag, navigation, and skeleton changes are all clean and the two prior review comments (shared SettingRow, recently-deleted h-full) are resolved. The one remaining P1 is in cleanup-dispatcher.ts: self-hosted workspaces that configure retention values won't have cleanup jobs dispatched because the enterprise-rows query still requires a subscription record, which won't exist when billing is disabled. apps/sim/lib/billing/cleanup-dispatcher.ts — the enterprise workspace query needs an isBillingEnabled guard to handle self-hosted instances. Important Files Changed
Sequence DiagramsequenceDiagram
participant Admin as Workspace Admin
participant UI as DataRetentionSettings
participant API as PUT /data-retention
participant DB as Database
participant Cron as Cron Job
participant Dispatcher as dispatchCleanupJobs
Admin->>UI: Configure retention values
UI->>API: PUT retention settings
API->>API: isBillingEnabled? skip enterprise check
API->>DB: Save retention values ✓
Note over Cron,Dispatcher: Cleanup flow (self-hosted issue)
Cron->>Dispatcher: dispatchCleanupJobs(jobType)
Dispatcher->>DB: SELECT workspaces INNER JOIN subscription WHERE plan='enterprise'
DB-->>Dispatcher: [] (no subscription rows on self-hosted)
Dispatcher-->>Cron: enterpriseCount=0, no jobs dispatched ✗
Note over Dispatcher: Saved retention values are never enforced
|
… whitelabeling pages
…red SettingRow, toast UX, stale form fix, emcn tokens
|
Addressed both Greptile comments in commit 2211363: P1 — h-full for recently-deleted: Added P2 — Duplicated SettingRow: Extracted to |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@cursor review |
|
@greptile |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5c671b7. Configure here.
Summary
Type of Change
Testing
Tested manually
Checklist