Commit Graph

170 Commits

Author SHA1 Message Date
dal 2833c6bb0c
dry run 2025-07-25 18:29:35 -06:00
dal 1f52bd9b69
Enhance asset chat handling by introducing `handleAssetChatWithPrompt` for processing user prompts alongside asset imports. Update `createChatHandler` to manage asset-only and asset+prompt scenarios, ensuring correct message order and preventing unnecessary analyst task triggers. Add tests for new functionality and refactor related services for improved clarity and maintainability. 2025-07-25 12:47:01 -06:00
Nate Kelley 5e6eb76f5b
move get asset types around 2025-07-24 17:41:36 -06:00
Nate Kelley b2cf1725fc
Merge branch 'staging' into devin/BUS-1494-1753276227 2025-07-24 17:21:04 -06:00
Nate Kelley a397cda878
Update chat-helpers.test.ts 2025-07-24 16:59:19 -06:00
Devin AI ccd8e1eab8 Add comprehensive unit tests for handleExistingChat message ordering
- Test prepending new messages to maintain descending order (newest first)
- Verify message_ids array reflects correct chronological order
- Cover edge cases: multiple messages, single message, empty messages
- Prevent future regressions in message ordering logic

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-24 18:11:06 +00:00
Devin AI 2ecf0a05fb Fix chat message ordering bug in handleExistingChat
- Prepend new message instead of appending to maintain descending order
- Fixes BUS-1486: Message order reversal when adding follow-up messages
- getMessagesForChat returns newest-first, so new messages should be prepended

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-24 18:01:34 +00:00
Nate Kelley 9b99236fa9
fix function name 2025-07-23 23:09:07 -06:00
Nate Kelley e2eefbda68
Update tests 2025-07-23 23:06:45 -06:00
Nate Kelley af090d467e
fix tests 2025-07-23 22:53:54 -06:00
Nate Kelley df3533ffc7
pass in better props 2025-07-23 17:18:45 -06:00
Devin AI 8bea0e8401 Fix Biome linting error: wrap switch default case in block scope
- Add curly braces around default case content to satisfy noSwitchDeclarations rule
- Prevents variable declarations from being accessible to other switch cases
- Apply Biome formatting fixes for import statement and spacing

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-23 13:38:45 +00:00
Devin AI 783b95b190 Fix CI failures: correct import paths and user organization access
- Import database queries from main @buster/database package
- Use getUserOrganizationId() instead of user.organizationId
- Add proper error handling for users without organizations
- Follow existing patterns from other API handlers

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-23 13:26:58 +00:00
Devin AI 5b40205275 Implement /api/v2/title endpoint for BUS-1494
- Add server-shared types for GetTitleRequest and GetTitleResponse with Zod validation
- Create database query functions for each asset type (chat, metric, collection, dashboard)
- Implement GET endpoint with zValidator middleware and exhaustive switch statement
- Add proper permission checks (publiclyAccessible OR organizationId match)
- Export new functions from database query index files
- Add title route to v2 API index
- Follow existing Hono API patterns with standardErrorHandler

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-23 13:14:58 +00:00
dal c66c8b910b
here we go agian 2025-07-21 16:38:58 -06:00
dal 0f0c733567
boom frozen 2025-07-21 16:34:33 -06:00
Nate Kelley 1458d02857
Merge branch 'staging' into cursor/centralize-environment-variables-with-turbo-1ef2 2025-07-21 16:11:26 -06:00
dal 58eb9e8234
no frozen lockfile 2025-07-21 16:04:00 -06:00
Nate Kelley 3f8b05182d
update server to use tsx 2025-07-21 16:03:02 -06:00
Nate Kelley 4418f4991b
use a shared env validation method 2025-07-21 16:00:10 -06:00
dal 0feb690bbe
try again 2025-07-21 15:19:38 -06:00
dal ae96e2f8b1
docker file stuff 2025-07-21 15:05:33 -06:00
dal fdb46bba29
electric helpers 2025-07-21 01:37:41 -06:00
dal 5ca40d032b
Enhance unit tests by mocking database interactions and updating organization roles to 'querier' in security-related test files. 2025-07-21 01:37:32 -06:00
dal 6e65bec499
Enhance task triggering by adding concurrency key for sequential processing
- Updated `createChatHandler` to include a `concurrencyKey` when triggering the `analyst-agent-task`, ensuring tasks are processed sequentially per chat.
- Adjusted related test cases to verify the inclusion of the `concurrencyKey`.
- Integrated the `concurrencyKey` in the `slackAgentTask` to manage task queuing and notify users when tasks are queued.
2025-07-18 23:01:32 -06:00
Devin AI 9896b5cc90 Replace 'Unknown' user name fallback with email address
- Update Rust handlers to use user_email instead of 'Unknown' fallback
- Add user_email field to MessageWithUser and ChatWithUser structs
- Update database queries to select user email field
- Update TypeScript chat-helpers to use email fallback
- Maintain final fallback to 'Unknown'/'Unknown User' if email is null

Fixes BUS-1457

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-19 04:12:13 +00:00
dal ba04450469
Enhance Slack event handling by adding hourglass reaction on app mentions and refactoring reaction management in slack-agent-task. Update CLAUDE.md and global.mdc with new guidelines for testing and development workflows. Adjust .gitignore for rerank package to ensure proper directory exclusion. 2025-07-18 21:40:20 -06:00
dal 97a8bb4c56
lint errors done & unit tests passing 2025-07-18 16:02:24 -06:00
Nate Kelley 8947758f6f
Fix linting errors 2025-07-18 15:54:46 -06:00
dal a92bf8234c
build fix 2025-07-18 14:09:53 -06:00
Nate Kelley 12f30c4bad
Merge pull request #552 from buster-so/big-nate/bus-1424-default-color-palette-in-workspace-settings
Big nate/bus 1424 default color palette in workspace settings
2025-07-18 13:52:20 -06:00
Nate Kelley 6c5b3a4f7a
update theme list 2025-07-18 13:52:04 -06:00
Nate Kelley aa34a56f40
override cache for defaults 2025-07-18 13:05:50 -06:00
Nate Kelley 8988837248
stablize dictionary IDS 2025-07-18 12:48:22 -06:00
Nate Kelley 95e0c8d7b5
move currency around to dictionary 2025-07-18 12:37:03 -06:00
dal 47f03ac1d5
Merge pull request #550 from buster-so/dallin/bus-1431-auto-sharing-for-queries-from-slack-channels
Dallin/bus-1431-auto-sharing-for-queries-from-slack-channels
2025-07-18 11:58:08 -06:00
Nate Kelley 71b9843063
Merge pull request #544 from buster-so/devin/1752815489-hide-three-dot-menu
feat: add hideThreeDotMenu prop to conditionally show theme menu based on admin status
2025-07-18 11:30:22 -06:00
dal 0dd82ab1d1
Merge remote-tracking branch 'origin/staging' into dallin/bus-1431-auto-sharing-for-queries-from-slack-channels 2025-07-18 10:49:58 -06:00
dal 534db4fd03
lint and slack 2025-07-18 10:49:34 -06:00
Nate Kelley 5f61995296
Fix linting errors 2025-07-18 10:48:49 -06:00
dal 76555662eb
remove the created by check on the existing chat. we will control permissions at the get/fetch layer 2025-07-18 10:30:37 -06:00
Nate Kelley 9048b6dad0
remove default colors from setter 2025-07-18 09:47:13 -06:00
dal 4a97f2f0c5
fix: update Slack handler tests to expect absolute URLs
Updated test expectations in apps/server/src/api/v2/slack/handler.test.ts
to expect absolute URLs with http://localhost:3000 prefix instead of
relative URLs, matching the actual behavior when BUSTER_URL is set.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 09:16:00 -06:00
dal 3a43e21718
Merge remote-tracking branch 'origin/staging' into dallin/bus-1380-fix-unit-tests 2025-07-18 08:55:35 -06:00
Devin AI cd3a2bd26d fix: resolve remaining unit test failures in server package
- Fix Slack OAuth service test to use correct scopes for validation
- Update handler tests to use proper field names (authUrl vs auth_url)
- Fix workspace settings test to use correct organization role
- Update chat handler test with missing import and role fix
- Fix retry helpers test to use valid WorkflowContext currentStep values

All unit tests now pass successfully.

Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
2025-07-18 14:17:14 +00:00
Devin AI 30fc4fda18 feat: move currencies endpoint to dictionaries route
- Move currency endpoint from /api/v2/currency to /api/v2/dictionaries/currency
- Follow existing dictionaries pattern with separate config.ts and index.ts
- Update web API calls to use new endpoint location
- Remove old currency route registration and files
- Preserve all existing functionality and types

The new endpoint is accessible at /api/v2/dictionaries/currency and maintains
the same response format and authentication requirements.

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-07-18 12:56:26 +00:00
dal ba61b6a3ea
Merge remote-tracking branch 'origin/staging' into dallin/bus-1380-fix-unit-tests 2025-07-17 22:31:32 -06:00
Nate Kelley 70a5fd6ec0
Merge pull request #540 from buster-so/big-nate/bus-1424-default-color-palette-in-workspace-settings
Big nate/bus 1424 default color palette in workspace settings
2025-07-17 18:53:59 -06:00
Nate Kelley 10e37f07de
update all types to work better together 2025-07-17 18:51:45 -06:00
Nate Kelley 09e4b36bf5
add dictionaries for color schemes 2025-07-17 17:16:15 -06:00