Commit Graph

464 Commits

Author SHA1 Message Date
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
dal a0a1e11493
update workspace sharing on all assets 2025-07-17 12:54:02 -06:00
Nate Kelley ea02041ea5
Update README.md 2025-07-17 12:48:45 -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
Nate Kelley f725ef9386
add avatar urls to the share 2025-07-17 10:50:49 -06:00
dal 3d6c7549bd
Merge pull request #529 from buster-so/devin/BUS-1415-1752766195
Filter out stale asset import chats from GET /chats and /logs endpoints
2025-07-17 09:24:33 -07:00
Devin AI ea083784bc Fix Diesel subquery compilation errors - use exists() and raw SQL for message filtering
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 16:21:13 +00:00
dal 308c87b202
Implement chat access checks for metrics and dashboards
- Added functions to check if a user has access to metrics and dashboards through associated chats.
- Updated permission handling in `get_metric_data_handler`, `get_metric_for_dashboard_handler`, and `get_metric_handler` to include chat access checks.
- Enhanced error handling for cases where users lack access to both dashboards and chats.
- Updated `asset_access_checks` to include new chat access functions and modified the public interface in `lib.rs` accordingly.
2025-07-17 10:07:58 -06:00
Devin AI 152825758b Filter out stale asset import chats from GET /chats and /logs endpoints
- Add subqueries to count user messages (non-null request_message) and total messages per chat
- Filter out chats with zero user messages AND only one total message
- This excludes auto-generated asset import chats that users never interacted with
- Applied same filtering logic to both list_chats_handler.rs and list_logs_handler.rs

Fixes BUS-1415

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 15:31:36 +00:00
dal ec2a630496
Merge pull request #528 from buster-so/devin/BUS-1423-1752764045
Fix error handling for workspace access issues in GET /chats/:id
2025-07-17 08:06:03 -07:00
Devin AI 22415d36c0 Fix error handling for workspace access issues in GET /chats/:id
- Return 412 PRECONDITION_FAILED for permission/workspace access errors
- Return 404 NOT_FOUND for chat not found errors
- Keep 500 INTERNAL_SERVER_ERROR as fallback for other errors
- Addresses BUS-1423

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-17 14:54:57 +00:00
Nate Kelley 06d8c1e568
Merge pull request #527 from buster-so/big-nate/bus-1420-add-searchable-menu-to-share-dropdowns
add searchable menu to share dropdowns
2025-07-16 23:48:44 -06:00
Nate Kelley 0be0744bd0
share update 2025-07-16 23:46:34 -06:00
Nate Kelley 80d2c88d90
debounce input a little bit 2025-07-16 23:15:58 -06:00
Nate Kelley a24779d40f
Query request in line 2025-07-16 23:01:49 -06:00
dal bcaa133059
Enhance Slack agent task with no message handling and increase max duration
- Updated maxDuration to 600 seconds to align with analyst agent task.
- Added logic to handle cases where no messages are found, sending a direct response to Slack and updating message reactions accordingly.
- Improved type safety in SlackSharingPermissions component by defining a specific type for sharing permissions.
2025-07-16 17:37:17 -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
Nate Kelley 969fdc6b18
Create share menu invite 2025-07-16 17:12:28 -06:00
dal f74e656a1b
refactor SlackSharingPermissions component for improved layout and styling 2025-07-16 17:07:43 -06:00
Nate Kelley 50d6e7a929
select input update 2025-07-16 17:04:38 -06:00
dal da380485d9
added in the slack auto-sharing functionality 2025-07-16 16:54:09 -06:00
Nate Kelley 681f60a370
keyboard shortcuts are back 2025-07-16 16:33:34 -06:00
Nate Kelley fef5809cef
select async function 2025-07-16 16:07:48 -06:00
Nate Kelley fa5ab30abf
transform select update 2025-07-16 15:35:16 -06:00
Nate Kelley 520e183231
update elements 2025-07-16 15:27:38 -06:00
dal 8221bca8de
react appropriately 2025-07-16 14:50:26 -06:00
Nate Kelley bc5b0e4f84
update select 2025-07-16 14:48:33 -06:00
dal 26f196c77d
unauthorized message send back as reply 2025-07-16 14:05:35 -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 4fdcdc4573
increase min width panel 2025-07-16 13:21:18 -06:00
dal 6b01f2f97a
change to slack-agent-task 2025-07-16 13:16:10 -06:00
Nate Kelley d099b39feb
Merge branch 'staging' into big-nate/bus-1420-add-searchable-menu-to-share-dropdowns 2025-07-16 13:15:42 -06:00
Nate Kelley 410be132b5
Merge branch 'staging' into big-nate/bus-1420-add-searchable-menu-to-share-dropdowns 2025-07-16 13:15:32 -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
Nate Kelley b1ac8b51b3
supabase auth on front end 2025-07-16 13:03:58 -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 36f2f04810
Merge pull request #522 from buster-so/dallin/bus-1429-issue-with-sharing-dashboard-showing-only-one-metric
Dallin/bus-1429-issue-with-sharing-dashboard-showing-only-one-metric
2025-07-16 11:25:37 -07:00
dal 7cee45916d
cascading permissions from dash to metrics 2025-07-16 12:22:04 -06:00
Nate Kelley 14e63fb278
flush sync for access token + additional logging 2025-07-16 12:08:35 -06:00
dal 1e2e031240
slack info from user 2025-07-16 11:56:11 -06:00
Nate Kelley d00313131e
Add additional logging for session error 2025-07-16 11:42:47 -06:00
Nate Kelley 96d6aeb5ad
Merge branch 'staging' into big-nate/bus-1420-add-searchable-menu-to-share-dropdowns 2025-07-16 11:31:40 -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 b12b7830c5
Rip out can filter option 2025-07-16 11:27:14 -06:00
Nate Kelley 47029669a3
move out magic values to constants 2025-07-16 11:24:23 -06:00
Nate Kelley abcb500d5f
correct get container size 2025-07-16 11:17:05 -06:00
Nate Kelley 330cc4b7c6
remove console logs 2025-07-16 10:49:26 -06:00
Nate Kelley 7f270369d6
move around endpoints 2025-07-16 10:45:06 -06:00
dal 0a665da961
stub out the slack agent task 2025-07-16 10:37:42 -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
Nate Kelley 0fa77aa5c9
update imports 2025-07-15 16:03:07 -06:00
Nate Kelley 71994c1142
Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-07-15 15:26:51 -06:00
Nate Kelley e8ed296847
update next public tanstack panel 2025-07-15 15:26:49 -06:00
Nate Kelley 698df0e43f
query invlidation update 2025-07-15 15:19:27 -06:00
Nate Kelley 9e39527351
stale time increased on dashboard list 2025-07-15 14:56:05 -06:00
Nate Kelley fd93f888fe
Dashboard local storage key 2025-07-15 14:43:14 -06:00
dal a751d22baa
initial slack challenge verification and receive messages 2025-07-14 16:08:01 -06:00
Nate Kelley eb5db40196
is fetched check 2025-07-14 16:07:22 -06:00
Nate Kelley 8935584ad2
invalidate cached items for dashboard 2025-07-14 16:03:57 -06:00
Nate Kelley e90f11d7b8
set increased stale time for dashboards 2025-07-14 15:46:27 -06:00
Nate Kelley 99d5fc647c
Update splitter bust sizes 2025-07-14 15:12:54 -06:00
dal 4ab3ae97a2
env vars 2025-07-14 15:12:46 -06:00
Nate Kelley 3aff95c034
splitter hot fix 2025-07-14 15:10:15 -06:00
dal 72c5eaa443
slack scopes for bot + claude fixes 2025-07-14 15:01:33 -06:00
Nate Kelley 0445727ed7
storage buster update 2025-07-14 14:44:21 -06:00
Nate Kelley d96bb62a2e
Merge branch 'staging' into big-nate/bus-1374-remove-dashboard-cache-if-a-metric-version-is-updated 2025-07-14 14:30:16 -06:00
Nate Kelley 727e66a630
Fix files on lint 2025-07-14 14:30:07 -06:00
dal 5e9dc83c30
Merge pull request #510 from buster-so/dallin/bus-1385-data-meta-is-not-returning-correct-simple_type
bugfix on data metdata
2025-07-14 13:24:05 -07:00
dal bd34e72b93
bugfix on data metdata 2025-07-14 14:23:37 -06:00
Nate Kelley cd9b85129c
Merge branch 'staging' into big-nate/bus-1374-remove-dashboard-cache-if-a-metric-version-is-updated 2025-07-14 14:22:10 -06:00
Nate Kelley b59d6fda57
Merge pull request #507 from buster-so/big-nate/bus-1371-icon-greyed-out
default version number is 1
2025-07-14 14:21:54 -06:00
Nate Kelley a3b3f50566
View sql big fix 2025-07-14 14:21:14 -06:00
Nate Kelley a1810be8f0
update cache settings part 1 2025-07-14 14:16:54 -06:00
Nate Kelley 6bf551b499
default version number is 1 2025-07-14 13:26:45 -06:00
dal d177df6468
Merge pull request #506 from buster-so/cursor/filter-out-records-without-titles-beb4
Filter out records without titles
2025-07-14 12:11:01 -07:00
dal 776019239b
Update apps/api/libs/handlers/src/chats/list_chats_handler.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-14 12:10:53 -07:00
Cursor Agent 48027dccb9 Filter out chats with empty or whitespace-only titles
Co-authored-by: dallin <dallin@buster.so>
2025-07-14 19:08:04 +00:00
dal 00ef69d1f8
change copy 2025-07-14 13:07:09 -06:00
Cursor Agent 2cd3f0696f Rename chat name to title and filter out empty titles
Co-authored-by: dallin <dallin@buster.so>
2025-07-14 19:04:32 +00: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 455cf10c5f
create a stream dynamically on change 2025-07-14 12:39:02 -06:00
dal 69da316f6c
Merge remote-tracking branch 'origin/staging' into dallin/bus-1380-fix-unit-tests 2025-07-14 12:37:15 -06:00
Nate Kelley c83d433510
Update styling for todo and reasoning file types 2025-07-14 12:07:29 -06:00
Nate Kelley 3592ed51ac
Merge pull request #500 from buster-so/cursor/replace-select-with-dropdown-component-39ce
update package versions
2025-07-14 11:56:36 -06:00
Nate Kelley a25ca23585
update package versions 2025-07-14 11:56:17 -06:00
Nate Kelley 01e895e8a5
Merge pull request #499 from buster-so/cursor/replace-select-with-dropdown-component-39ce
replace select with dropdown component 39ce
2025-07-14 11:51:49 -06:00
Nate Kelley a73502b047
Change styling for select button 2025-07-14 11:50:49 -06:00
Nate Kelley 90801c89c4
Merge branch 'staging' into cursor/replace-select-with-dropdown-component-39ce 2025-07-14 11:40:57 -06:00
Nate Kelley faea66c14a
metric data truncate warning 2025-07-14 11:36:03 -06:00
Nate Kelley 3a2f66b7f2
Merge branch 'staging' into cursor/add-alert-for-truncated-data-warning-2003 2025-07-14 11:20:38 -06:00
dal 5a971dd8a1
fix on access-control tests 2025-07-14 11:01:53 -06:00
Nate Kelley 5352ae8f10
currency response 2025-07-14 09:41:25 -06:00
dal 2be9784516
Add unit and integration test scripts to package.json files across multiple packages 2025-07-14 09:11:20 -06:00
dal 58542c204d
Merge pull request #496 from buster-so/dallin/bus-1283-make-internal-slack-message-for-our-team-for-assumptions
slack and env for buster prod alerts
2025-07-14 07:51:42 -07:00
Nate Kelley b7c40e2ea8
Merge pull request #495 from buster-so/dallin/bus-1328-ability-to-kill-a-chat-while-running-stop-button
Dallin/bus 1328 ability to kill a chat while running stop button
2025-07-14 08:48:33 -06:00
Nate Kelley 54b592fa37
Update apps/web/src/api/buster-electric/messages/hooks.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-14 08:47:19 -06:00
dal 3821c0211a
slack and env for buster prod alerts 2025-07-14 08:19:57 -06:00
Cursor Agent 58f50f488d Add data truncation warning for metrics with over 5,000 records
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-07-13 14:44:48 +00:00
Cursor Agent 282584cb71 Replace Select with Dropdown for Slack channel selection
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-07-13 14:37:53 +00:00
Nate Kelley f84bf8e3d1
disable check 2025-07-13 08:28:11 -06:00
Nate Kelley bc623cdd30
stop chat 2025-07-13 08:21:53 -06:00
Nate Kelley d7142b838c
optimistically grab new chats 2025-07-13 08:17:16 -06:00
Nate Kelley fa42592b95
Focus input after chat comes in 2025-07-13 08:10:15 -06:00
Nate Kelley 906986b51e
Update inlcude 2025-07-12 23:46:09 -06:00
Nate Kelley 1718dccf2c
create workspace 2025-07-12 23:34:08 -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
Nate Kelley 139a0f52c9
organization camelcase update 2025-07-12 16:31:35 -06:00
Nate Kelley 00c7a3d13e
Merge branch 'staging' into big-nate/bus-1355-make-it-so-regular-users-can-invite-others 2025-07-12 16:25:52 -06:00
Nate Kelley daf193088f
invite people restriction 2025-07-12 16:24:14 -06:00
Nate Kelley aeaf7dbb57
type updates 2025-07-12 16:19:08 -06:00
Nate Kelley 2c2bf74475
Add prebuild script to server-shared 2025-07-12 16:07:55 -06:00
Nate Kelley d8e0146978
create a db utilities 2025-07-12 15:48:42 -06:00
dal ad1dda4fa4
build fix 2025-07-11 16:51:59 -06:00
dal 6c58f330f8
slack events endpoint hotfix 2025-07-11 16:49:18 -06:00
Nate Kelley 9de6e8227e
Merge branch 'staging' into big-nate/bus-1355-make-it-so-regular-users-can-invite-others 2025-07-11 16:30:59 -06:00
Nate Kelley 51f93a4a39
Merge pull request #488 from buster-so/big-nate/bus-1362-dashboards-not-opening-as-expected-when-opening-a-chat
Update aria accesiblity controls
2025-07-11 16:18:50 -06:00
Nate Kelley 9f44595712
Update aria accesiblity controls 2025-07-11 16:18:31 -06:00
Nate Kelley 07fbd77411
Merge pull request #487 from buster-so/big-nate/bus-1362-dashboards-not-opening-as-expected-when-opening-a-chat
Big nate/bus 1362 dashboards not opening as expected when opening a chat
2025-07-11 16:15:40 -06:00
Nate Kelley c2dee1e5be
update display name 2025-07-11 16:14:59 -06:00
Nate Kelley f41f16c108
update mountained status 2025-07-11 16:10:27 -06:00
dal 1580bbb711
Add events endpoint for Slack webhooks without authentication 2025-07-11 15:48:20 -06:00
dal e0aa426341
get_metric_data hotfix 2025-07-11 15:24:14 -06:00
Nate Kelley f7a7ab7e7a
cookie state update 2025-07-11 15:16:40 -06:00
dal 63866e813e
Merge pull request #484 from buster-so/cursor/update-api-routes-to-metric-files-e8c7
Update API routes to metric_files
2025-07-11 14:01:12 -07:00
Cursor Agent 8b34fd153a Update route path for metric files to use 'metrics' instead of 'metric_files'
Co-authored-by: dallin <dallin@buster.so>
2025-07-11 20:53:51 +00:00
Cursor Agent 2fca16e7b4 Update metric routes from metric_files to metrics
Co-authored-by: dallin <dallin@buster.so>
2025-07-11 20:52:29 +00:00
Cursor Agent 99b27bc87a Checkpoint before follow-up message 2025-07-11 20:50:04 +00:00
dal f5b911cd12
Update apps/api/libs/handlers/src/metrics/get_metric_data_handler.rs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-07-11 13:47:31 -07:00
Nate Kelley 90a11d5fd8
pass through a wrapper component 2025-07-11 14:46:10 -06:00
Cursor Agent 75cdd858ab Add pagination support for metric data query with has_more_records flag
Co-authored-by: dallin <dallin@buster.so>
2025-07-11 20:39:13 +00:00