Commit Graph

152 Commits

Author SHA1 Message Date
Devin AI 077d6de476 feat(slack): implement scope validation and re-installation flow for BUS-1435
- Create centralized OAuth scopes constants file
- Add scope validation to integration status check
- Update OAuth flow to handle re-installations while preserving user settings
- Add yellow 'Re-install Required' button to UI when scopes don't match
- Implement proper error handling and rollback logic for failed re-installations

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 19:54:49 +00:00
Nate Kelley 64def9918d
Merge branch 'big-nate/bus-1424-default-color-palette-in-workspace-settings' of https://github.com/buster-so/buster into big-nate/bus-1424-default-color-palette-in-workspace-settings 2025-07-17 13:12:38 -06:00
Nate Kelley b8de7a5c51
update rules 2025-07-17 13:12:11 -06:00
Nate Kelley 8c562c70b5
Update apps/server/src/api/v2/organization/PUT.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-17 13:11:04 -06:00
Nate Kelley e44cda8f10
Update documentation for future background agents 2025-07-17 12:34:48 -06:00
Nate Kelley 7b24d167b9
hex values checking before insert into database 2025-07-17 12:17:34 -06:00
Nate Kelley ee8cce71f8
Add additional error handling for endpoint 2025-07-17 12:06:57 -06:00
Nate Kelley e55632e074
initial commits for update org 2025-07-17 11:41:31 -06:00
Nate Kelley b1e7f7cfc1
Fix test db util type 2025-07-17 10:53:01 -06:00
dal a3ecb5a1a5
Update apps/server/src/api/v2/slack/events.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-16 16:23:04 -07:00
dal b9ad7552fa
Update apps/server/src/api/v2/slack/services/slack-helpers.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-16 16:16:27 -07:00
dal da380485d9
added in the slack auto-sharing functionality 2025-07-16 16:54:09 -06:00
dal 28a5d65777
Merge remote-tracking branch 'origin/staging' into dallin/bus-1363-slack-agent-query-buster-from-slack-direct-query 2025-07-16 13:58:13 -06:00
dal 86572acfa4
slack agent react 2025-07-16 13:58:03 -06:00
dal a20c8dad56
pass up userId 2025-07-16 13:22:43 -06:00
Nate Kelley 32a0b84eeb
better logging for auth 2025-07-16 13:09:30 -06:00
dal e2d1d32089
correct enums on the events chat creation 2025-07-16 13:09:07 -06:00
dal d4f216cb66
Merge remote-tracking branch 'origin/staging' into dallin/bus-1363-slack-agent-query-buster-from-slack-direct-query 2025-07-16 12:54:18 -06:00
dal 1e2e031240
slack info from user 2025-07-16 11:56:11 -06:00
Nate Kelley f9252ce149
Update apps/server/src/api/v2/users/index.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-16 11:29:31 -06:00
Nate Kelley 8fe5e9f906
working tests 2025-07-16 10:36:24 -06:00
dal cbd8b21203
remove delted at clause on user 2025-07-16 10:27:33 -06:00
dal 2bc11900b9
Slack User auth and domain validation 2025-07-16 10:09:57 -06:00
Nate Kelley 0d01dfcb4c
array parter 2025-07-16 09:54:28 -06:00
Nate Kelley d9ed8b1423
finalize pagination endpoint 2025-07-16 09:25:51 -06:00
Nate Kelley b637bf356a
paginated queries 2025-07-15 23:05:12 -06:00
Nate Kelley fdf70abfb8
update database dev 2025-07-15 22:26:13 -06:00
Nate Kelley 094fc4c251
add pagination type responses 2025-07-15 17:23:32 -06:00
Nate Kelley fb0e79065f
udpate endpoint to accept more params 2025-07-15 16:54:18 -06:00
Nate Kelley 2e73d97ffc
create basic user to organization db 2025-07-15 16:20:40 -06:00
dal a751d22baa
initial slack challenge verification and receive messages 2025-07-14 16:08:01 -06:00
dal 72c5eaa443
slack scopes for bot + claude fixes 2025-07-14 15:01:33 -06:00
dal bd34e72b93
bugfix on data metdata 2025-07-14 14:23:37 -06:00
dal 00ef69d1f8
change copy 2025-07-14 13:07:09 -06:00
Cursor Agent 268b989d83 Improve chat cancellation handling with detailed reasoning scenarios
Co-authored-by: dallin <dallin@buster.so>
2025-07-14 18:57:14 +00:00
Nate Kelley 5352ae8f10
currency response 2025-07-14 09:41:25 -06:00
Nate Kelley 963bf6b2f2
fix all of the bugs 2025-07-12 22:14:08 -06:00
Nate Kelley 5448af614a
lint fixes 👀 2025-07-12 16:32:47 -06:00
dal 6c58f330f8
slack events endpoint hotfix 2025-07-11 16:49:18 -06:00
dal 1580bbb711
Add events endpoint for Slack webhooks without authentication 2025-07-11 15:48:20 -06:00
dal a36bba3b40
Add '@buster/ai' dependency and enhance chat cancellation logic
- Added '@buster/ai' as a workspace dependency in pnpm-lock.yaml and package.json.
- Updated database-migrations.yml to trigger on changes in the database package.
- Refined the cancelChatHandler function to include detailed message cleanup and trigger cancellation logic.
- Improved response handling in the chat cancellation endpoint to return a success message.
- Enhanced updateMessageFields to support marking messages as completed.
2025-07-11 09:51:51 -06:00
dal 87f3853ce8
stubbed out the cancel endpoint and added the trigger run col 2025-07-10 16:26:30 -06:00
Nate Kelley 252a892cae
Merge pull request #475 from buster-so/nate/hot-fix-server-build
Server build update
2025-07-10 12:50:47 -06:00
Nate Kelley 10e741fa93
Use up for server dev 2025-07-10 12:49:46 -06:00
Nate Kelley e7ee256072
move shared to be zod v4 2025-07-10 12:16:34 -06:00
dal 315cfa7a8f
Merge pull request #472 from buster-so/dallin/bus-1346-access-paths-for-datasets-need-to-go-through-defaults-as
Dallin/bus 1346 access paths for datasets need to go through defaults as
2025-07-10 10:15:13 -07:00
dal 0e0b14a47f
access controls listing datasets with new default datasets access pattern through security settings. 2025-07-10 11:03:45 -06:00
Nate Kelley 7b9892129c
update imports and type checks 2025-07-10 10:52:21 -06:00
Nate Kelley 6eb2709dd9
lint updates 2025-07-10 10:23:40 -06:00
Nate Kelley b28f6e1e35
additional types fixes 2025-07-10 10:14:16 -06:00
dal 4d7f1353ff
clean up tyeps 2025-07-10 07:52:41 -06:00
dal 532ec54798
as organization role 2025-07-10 07:46:59 -06:00
dal cd8b478571
test types 2025-07-10 07:46:18 -06:00
dal 3ca54c7f28
Refactor integration tests for domain management and workspace settings. Update error messages for permission checks to be more specific. Enhance domain handling logic for consistency and improve test cleanup procedures. 2025-07-10 07:45:04 -06:00
dal f22c03874c
tests are passing 2025-07-10 07:27:16 -06:00
dal 29e6a6ae7f
Workspace Settings Done with auto-add 2025-07-10 07:01:23 -06:00
dal 0b2a3d2f71
Merge remote-tracking branch 'origin/staging' into big-nate/bus-1260-set-a-default-permissionpermission-role-for-newly-added 2025-07-10 05:35:56 -06:00
dal c047d7dd40
Refactor security API handlers to improve organization validation and domain management. Consolidate permission checks and domain operations into utility functions for better code reuse. Update endpoint routes for workspace settings and approved domains, ensuring consistent response formatting. 2025-07-10 05:30:10 -06:00
Nate Kelley 0857caedfa
Merge pull request #462 from buster-so/big-nate/bus-1341-additional-uicosmetic-bugs-with-confidence-scores
Big nate/bus 1341 additional uicosmetic bugs with confidence scores
2025-07-09 17:10:29 -06:00
dal 7f1cbe7488
Merge branch 'staging' into big-nate/bus-1260-set-a-default-permissionpermission-role-for-newly-added 2025-07-09 16:18:43 -06:00
dal e1f7f63270
add conversation history to the 2025-07-09 15:46:15 -06:00
dal 170338b6fd
change server url 2025-07-09 15:33:23 -06:00
dal 75e011ac65
Update SlackHandler redirects to include '/app' in integration URLs 2025-07-09 15:13:13 -06:00
Nate Kelley 35a160301a
logger fix + chat title 2025-07-09 15:01:59 -06:00
dal b062694a2c
fixed types on slack handlers 2025-07-09 14:34:02 -06:00
dal 4fb33364e1
new handlers 2025-07-09 14:25:13 -06:00
dal 5941d6975d
schema migration and handlers stubbed out 2025-07-09 14:07:55 -06:00
dal e96c3485a9
return post processing on each req 2025-07-08 17:44:24 -06:00
dal 3843ec3931
logging improvement 2025-07-07 17:18:14 -06:00
dal e617eac67d
more logging on slack oauth 2025-07-07 16:01:34 -06:00
dal 7c7b0f11ba
logging fix 2025-07-07 15:50:06 -06:00
dal 35761e9dd0
Merge pull request #426 from buster-so/cursor/ensure-correct-types-for-integration-handler-fac1
Ensure correct types for integration handler
2025-07-07 14:37:32 -07:00
dal 5ae2f8805c
get rid of users scopes 2025-07-07 15:13:24 -06:00
dal 01e74103f2
new oauth scope 2025-07-07 15:11:29 -06:00
dal c1360da45c
logging slack issue and remove metadata trace on analyst agent 2025-07-07 14:42:34 -06:00
Cursor Agent 76b18c8765 Convert Slack response types to Zod schemas for runtime validation
Co-authored-by: dallin <dallin@buster.so>
2025-07-07 20:02:29 +00:00
Nate Kelley 5e5812702f
Merge branch 'staging' into nate/dashboard-links 2025-07-07 12:12:37 -06:00
dal 76ac977adc
Refactor logging in environment validation scripts to use console.info for consistency 2025-07-07 11:33:33 -06:00
dal 4072f1b1f7
Update apps/server/src/api/v2/slack/services/slack-oauth-service.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-07 10:17:41 -07:00
dal 32073d8c03
env vars and oauth scopes 2025-07-07 11:03:40 -06:00
Nate Kelley d8ac36da50
Fix broken unit test 2025-07-07 10:38:27 -06:00
Nate Kelley e881f57640
Update server and trigger lints 2025-07-07 10:21:47 -06:00
Cursor Agent 964d107bb9 Refactor chat permission checks and update database helper functions
Co-authored-by: dallin <dallin@buster.so>
2025-07-04 15:21:36 +00:00
Cursor Agent 6fb546a4ad Refactor chat permission check and remove unused organization role check
Co-authored-by: dallin <dallin@buster.so>
2025-07-04 14:55:08 +00:00
dal f5eb9496c5
Refactor Slack handler to utilize shared types and remove local schema definitions 2025-07-03 16:23:59 -06:00
dal 40e0146fd7
tweak to the default_channel arg 2025-07-03 15:46:37 -06:00
dal 8a85d42016
Merge branch 'staging' into cursor/add-migration-and-update-endpoint-1563 2025-07-03 15:39:36 -06:00
dal 7af9b8ef78
Merge branch 'cursor/add-migration-and-update-endpoint-1563' of https://github.com/buster-so/buster into cursor/add-migration-and-update-endpoint-1563 2025-07-03 15:33:13 -06:00
dal d405493b64
Merge branch 'staging' into cursor/add-migration-and-update-endpoint-1563 2025-07-03 15:32:02 -06:00
dal 6472734872
Update apps/server/src/api/v2/slack/handler.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-03 14:28:41 -07:00
dal f52842d223
Merge pull request #410 from buster-so/cursor/create-route-for-fetching-slack-channels-cedc
Create route for fetching slack channels
2025-07-03 14:27:43 -07:00
dal 2ef68e2a1b
Refactor Slack integration handling and update tests for new default channel functionality
- Introduced `updateDefaultChannel` method in Slack helpers to manage default channel settings.
- Updated SlackHandler to utilize the new method for updating integration settings.
- Enhanced integration tests to cover new functionality and ensure proper handling of active integrations.
- Removed obsolete SQL migration for default channel as it is now managed in code.
2025-07-03 15:18:28 -06:00
Cursor Agent 45b52e7fe5 Add Slack channels endpoint with integration and error handling
Co-authored-by: dallin <dallin@buster.so>
2025-07-03 21:06:41 +00:00
dal bdb0f6e3d6
Update apps/server/src/middleware/logger.test.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-03 13:58:36 -07:00
dal 2d46d2a65d
Update apps/server/src/middleware/logger.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-03 13:58:15 -07:00
Cursor Agent 151662f300 Refactor Slack integration update endpoint to support more flexible settings
Co-authored-by: dallin <dallin@buster.so>
2025-07-03 20:50:53 +00:00
dal 52e5d465ab
dockerfile and pino logging fix 2025-07-03 14:47:49 -06:00
Cursor Agent ba01e881e6 Add default channel support for Slack integration
Co-authored-by: dallin <dallin@buster.so>
2025-07-03 20:47:18 +00:00
dal 56530248dc
Enhance logger middleware by integrating Pino for improved logging capabilities. Added dynamic log level configuration based on environment variables and implemented console capture for info, warn, and error logs. Suppressed debug logs when log level is set to info or higher, ensuring cleaner output in production environments. 2025-07-03 12:31:50 -06:00
Nate Kelley b717138312
Update helpers.test.ts 2025-07-02 17:08:49 -06:00