Commit Graph

1082 Commits

Author SHA1 Message Date
Cursor Agent 7f767f462e web(report): use Tailwind border-border for editor divider (hr) to respect global theme 2025-08-22 03:54:00 +00:00
dal a1a213a1ba
secret id 2025-08-21 21:46:04 -06:00
Nate Kelley fbc0e94281
Merge branch 'staging' into devin/1755828439-report-editor-streaming-loading 2025-08-21 21:38:11 -06:00
Nate Kelley 65260104c1
Merge pull request #746 from buster-so/nate/report-hot-fix
Fix Plate editor re-rendering issue by removing readOnly prop
2025-08-21 21:37:55 -06:00
Nate Kelley 4cfacbc1e3
read only partial fix 2025-08-21 21:37:28 -06:00
dal fe1ccb303a
Refactor metric data retrieval to enhance type handling and metadata generation
- Updated getMetricDataHandler to convert query results into a consistent type format (string | number | null).
- Improved metadata construction for query results, including detailed type mapping for database fields.
- Changed API call in the web client to use mainApiV2 for metric data requests.
2025-08-21 21:31:31 -06:00
dal 1eb3b8369a
Merge remote-tracking branch 'origin/staging' into migrate-metric-data-endpoints-to-ts 2025-08-21 21:31:19 -06:00
Nate Kelley 29fe1a1b34
Merge branch 'nate/report-hot-fix' of https://github.com/buster-so/buster into nate/report-hot-fix 2025-08-21 21:22:52 -06:00
Nate Kelley 5123fb56c1
update ready only status 2025-08-21 21:22:08 -06:00
Devin AI c91e5bb6bc feat: integrate useAutoScroll hook with ReportEditor for streaming content
- Add useAutoScroll hook to ReportEditor component
- Configure auto-scroll to be enabled only when isStreaming is true
- Add ref forwarding to EditorContainer for scroll container access
- Hook observes DOM mutations from StreamContentPlugin updates
- Maintains user scroll interaction handling (disable when scrolling up)

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-22 02:30:50 +00:00
Devin AI 536e21e425 Fix Plate editor re-rendering issue by removing readOnly prop
- Remove readOnly prop from Plate provider to prevent re-renders
- Apply pointer-events-none and user-select-none CSS classes to EditorContainer when readonly
- Remove readOnly prop from usePlateEditor hook
- Editor becomes inert when readonly without causing re-renders

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-22 02:24:11 +00:00
Devin AI b4e9a12c2e Comment out equation button and three dot menu from floating toolbar
- Remove InlineEquationToolbarButton from floating toolbar popup
- Remove MoreToolbarButton (three dot menu) from floating toolbar popup
- Comment out unused import statements
- Buttons were appearing when text is highlighted in report editor

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-22 02:15:34 +00:00
Devin AI 4ff4905b0a feat: add 'three' keyword synonym for three column component
- Add 'three', '3', and 'columns' to keywords array in columnsThree configuration
- Enables users to type 'three' in slash command to find three column component
- Follows existing pattern from numberedList component which includes '1' keyword

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-22 02:14:53 +00:00
Devin AI dd9b33927c Add streaming loading message to report editor
- Add shimmer loading message at bottom of editor when streaming
- Use existing ShimmerText component for consistency
- Position with absolute positioning and backdrop blur
- Show 'Generating content...' message during streaming

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-22 02:11:38 +00:00
Cursor Agent 0a39ceb662 Update Next.js CSP to include public URL origin for frame sources
Co-authored-by: nate <nate@buster.so>
2025-08-22 02:08:22 +00:00
dal 0bf2c95147
Merge remote-tracking branch 'origin/staging' into migrate-metric-data-endpoints-to-ts 2025-08-21 16:57:08 -06:00
dal 71efdff64e
Add data source integration for metric data retrieval
- Added '@buster/data-source' dependency to the server and pnpm lock files.
- Enhanced the getMetricDataHandler function to support versioning and data source integration.
- Updated the metric data query schema to include an optional version number parameter.
- Modified the API endpoint to accommodate the new versioning feature for metric data retrieval.
2025-08-21 16:57:04 -06:00
dal 4b34e65fc1
get rid of random perbuild? 2025-08-21 16:32:34 -06:00
dal 96d20ff512
package.json 2025-08-21 16:25:00 -06:00
Nate Kelley d1d7c959e5
Add padding 2025-08-21 16:18:27 -06:00
dal 3c8f1f4615
Add metric data retrieval endpoint and update schemas
- Introduced a new endpoint to retrieve metric data with pagination at /metric_files/:id/data.
- Added MetricDataParamsSchema and MetricDataQuerySchema for request validation.
- Updated GetMetricDataRequestSchema to include an optional limit parameter for pagination.
2025-08-21 15:55:19 -06:00
Nate Kelley 111955042c
Merge pull request #737 from buster-so/nate/report-hot-fix
Remove unused elements
2025-08-21 15:38:55 -06:00
Nate Kelley 5fc37bbde2
Remove unused elements 2025-08-21 15:38:32 -06:00
Nate Kelley 5fa39bcd6f
Merge pull request #736 from buster-so/nate/report-hot-fix
fixed cursor ovlerlay
2025-08-21 15:34:02 -06:00
Nate Kelley bff8e1d9fd
fixed cursor ovlerlay 2025-08-21 15:33:34 -06:00
dal cf8610eda4
Merge remote-tracking branch 'origin/fix-deployment-pipeline' into staging 2025-08-21 15:00:06 -06:00
dal 5fabf17df6
remove env utils 2025-08-21 14:57:34 -06:00
Nate Kelley 39b68445a0
hot fix for j dawg 2025-08-21 14:50:58 -06:00
Nate Kelley 253a6b427a
animate fade for report 2025-08-21 14:42:31 -06:00
dal c7cc610d73
fix trigger by getting rid of the env stuff bc it breaks it. 2025-08-21 14:29:34 -06:00
dal 81c703a472
Update dependencies to version 4.0.1 for @trigger.dev/build, @trigger.dev/core, and @trigger.dev/sdk; enhance UUID validation in modify-reports-delta tool. 2025-08-21 13:34:26 -06:00
dal 4f7ef9525e
Add basic task examples and update SDK version in Trigger.dev documentation 2025-08-21 13:27:31 -06:00
Nate Kelley 96c41e46a6
Update apps/web/src/components/ui/report/ReportEditor.tsx
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-08-20 22:40:36 -06:00
Nate Kelley 4935104984
lock down readonly editor while streaming 2025-08-20 22:39:23 -06:00
Nate Kelley 75b4bb44dc
remove server-util entirely 2025-08-20 22:15:58 -06:00
Nate Kelley d4366037bf
Add some platejs tests 2025-08-20 22:13:02 -06:00
dal 2461dc0a77
bugfixes 2025-08-20 11:26:37 -06:00
Nate Kelley 0a8ab60f26
remove logs from report 2025-08-20 10:39:22 -06:00
Nate Kelley 635c5f668a
Remove bouncer 2025-08-20 10:34:19 -06:00
Nate Kelley cb4438a6c8
Update streaming controller to subscribe 2025-08-20 10:31:02 -06:00
Nate Kelley 47e94527bb
update package versions for workspace AND server 2025-08-20 09:16:28 -06:00
Nate Kelley 7c8ec9e42c
Merge branch 'staging' into big-nate-bus-1657-intergrate-with-report-streaming 2025-08-20 09:05:24 -06:00
Nate Kelley 31ab7b6954
Add color text 2025-08-20 09:02:31 -06:00
Nate Kelley a56f4a056e
Update stream-content-plugin.ts 2025-08-20 08:02:45 -06:00
Nate Kelley fa21c4246e
update streaming to use 2025-08-20 00:14:38 -06:00
Nate Kelley 845e9a73fa
remove add and delete nodes 2025-08-19 22:00:00 -06:00
Nate Kelley f68d0835b3
Make a streaming plugin 2025-08-19 18:24:06 -06:00
Nate Kelley 6424ea00c6
hook to update streaming 2025-08-19 16:14:46 -06:00
Nate Kelley d2780a8f41
report streaming update 2025-08-19 16:05:54 -06:00
Nate Kelley f265bf51db
transform request 2025-08-19 15:57:21 -06:00
dal db63ac4c83
update to ci, fix greptile recs 2025-08-19 15:07:34 -06:00
Nate Kelley 2b18f215b9
report files metadata 2025-08-19 14:17:36 -06:00
dal 94f9e7106f
merge staging in 2025-08-19 13:33:13 -06:00
dal 71eb3dd42e
github integration 2025-08-19 13:27:51 -06:00
dal 5c3acf4b01
slack fixes 2025-08-19 13:01:47 -06:00
dal 31facf6bce
lets try new optimized build for internal 2025-08-19 11:22:35 -06:00
dal 001fbff65c
try for docker build again 2025-08-19 11:14:30 -06:00
dal 9efd1f49ff
test image for hono server 2025-08-19 11:03:14 -06:00
dal eb9a87e14b
get rid of cache on the dockerfile 2025-08-19 10:48:03 -06:00
dal 90dc2a254d
change trigger back to node 2025-08-19 10:08:27 -06:00
dal e97b4d2ae1
Refactor chat cancellation logic to improve type handling for tool calls and results. Introduced type guards for ToolCallPart and ToolResultPart, updated related functions to use these new types, and streamlined the message processing flow. 2025-08-18 23:52:26 -06:00
dal f0796b35af
Refactor message post-processing logic to improve handling of workflow outputs and assumptions. Updated test cases to reflect changes in message structure and added type definitions for flagChat results. Enhanced error handling for scenarios with minimal workflow output. 2025-08-18 23:42:27 -06:00
dal 1d3146e35b
Enhance Slack integration by adding support for direct messages (DMs) and updating event handling. Introduced new environment variables for Slack integration, updated deployment command to use the latest version, and improved message filtering logic for DMs. Refactored Slack event processing to differentiate between app mentions and direct messages, ensuring proper handling and logging. Updated webhook types to include message IM events. 2025-08-18 23:19:51 -06:00
dal bc6782e156
test fixes 2025-08-18 23:08:41 -06:00
dal a8d719de1d
upgrade trigger 2025-08-18 20:59:25 -06:00
dal 5e7467aefc
fix: improve Slack messaging reliability and error handling
- Add proper error handling for Slack API failures with typed responses
- Implement message operation types for better type safety
- Add retry logic with exponential backoff for transient failures
- Export webhook types for external consumers
- Update Slack agent task to handle errors gracefully and continue processing
- Add proper validation and error messages for failed operations
- Include structured error tracking for debugging

🤖 Generated with Anthropic

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 20:36:29 -06:00
dal eb5b1506be
Merge remote-tracking branch 'origin/staging' into dal/upgrade-to-ai-sdk-v5 2025-08-18 17:01:10 -06:00
dal 5b5191356a
Refactor report creation and modification logic. Introduced batch update functionality for reports, improved version history management, and enhanced error handling during report updates. Adjusted task duration settings for better performance and refined file extraction logic to filter out reports and metrics appropriately. 2025-08-18 17:00:42 -06:00
dal 6f65e25e63
Update pnpm-lock.yaml to resolve merge conflicts and synchronize package versions, including updates to '@aws-sdk/credential-provider-web-identity' and 'platejs' dependencies. 2025-08-18 15:19:01 -06:00
dal 4fe488e1bd
fix: throw error when Slack events API returns success: false
Ensure the Slack events endpoint never returns an HTTP 200 with success: false in the response body. Any failed event processing will now properly throw an error and return an appropriate error status code.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 14:43:03 -06:00
dal 9b2c92ade7
trigger set to bun and electric handler lint 2025-08-18 14:40:13 -06:00
dal f9eece00d6
merge staging in 2025-08-18 14:39:59 -06:00
dal 978c6b684b
Add report files proxy router and integrate with existing API 2025-08-18 13:54:43 -06:00
dal 35193e53ce
- fix lower case slack
- return error response on slack bot verification
- auth scope fix
2025-08-18 13:28:32 -06:00
dal e0d03c6aab
Refactor data metadata handling and improve report creation logic. Updated SimpleType enum for better serialization, removed unused createDataMetadata function, and integrated createMetadataFromResults for data processing. Enhanced report creation with version history management and improved error handling in report updates. 2025-08-18 11:59:56 -06:00
dal 6b171aae2e
build error map the reasoning message better in web 2025-08-18 10:16:59 -06:00
dal 138bd01d34
Add GitHub integration endpoints and middleware
- Introduced GitHub routes for handling installation callbacks and token management.
- Implemented middleware for validating GitHub webhook requests.
- Added tests for new handlers and middleware to ensure functionality.
- Enhanced sandbox utilities to support GitHub token usage for authenticated operations.
2025-08-18 09:29:18 -06:00
dal b4e34d22e0
trigger updates 2025-08-18 08:27:15 -06:00
dal 9589ca198b
upgrade and fixes 2025-08-18 08:07:13 -06:00
dal d0e9852f5d
git server endpoints 2025-08-15 18:32:55 -06:00
Devin AI 4591762163 Fix three-dot dropdown alignment on dashboard metric cards
- Change align prop from 'center' to 'start' in MetricCardThreeMenuContainer
- This aligns the dropdown to the left/start edge instead of center
- Addresses BUS-1655: Top align three dot dropdown menu on dashboard cards

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-14 20:42:02 +00:00
dal 2a7f17660f
hotfix on multiple trigger tasks 2025-08-14 12:11:20 -06:00
dal f8f9f4b0e0
few tweaks from greptile comments 2025-08-14 10:19:40 -06:00
dal 0428552454
lint build test fixes 2025-08-14 09:55:37 -06:00
dal 55cf4ea98c
rollback another claude update that wasn't necessary 2025-08-14 09:43:12 -06:00
dal f7feb4b3d1
rolling back more of claudes mistakes - no need for them 2025-08-14 09:04:08 -06:00
dal 895e28f8d4
Refactor sharing request types and enhance asset icon mapping
- Updated sharing request types to use SharePermissionsUpdateRequest for clarity across collections, dashboards, and metrics.
- Enhanced asset icon mapping to include additional asset types for better UI representation.
- Improved error handling in the MetricDataTruncatedWarning component to provide user feedback during download failures.
2025-08-14 08:56:30 -06:00
dal a133653ccc
apos 2025-08-13 15:56:44 -06:00
dal c3107e1113
Add download functionality for metric files and enhance UI warning component
- Introduced a new API method to download metric files.
- Updated MetricDataTruncatedWarning component to include a download button for large datasets.
- Passed metricId as a prop to MetricDataTruncatedWarning for download functionality.
- Improved user experience by providing feedback during the download process.
2025-08-13 15:45:18 -06:00
dal e5481bc30a
Refactor chat asset type conversion and enhance error handling
- Changed chatAssetTypeToDatabaseAssetType to a Partial<Record> for better type safety.
- Updated convertChatAssetTypeToDatabaseAssetType to throw an error for unmapped asset types.
- Modified downloadMetricFileHandler tests to use fake timers and improve timeout handling.
- Updated report sharing endpoint to use SharePermissionsUpdateRequest for better clarity.
- Renamed schemas in server-shared for backward compatibility while maintaining clarity.
- Adjusted GetTitleRequestSchema to restrict asset types to those supporting title retrieval.
2025-08-13 14:55:37 -06:00
dal 35623ad987
Integrate access controls with metric file downloads
- Added permission checks to metric file download handler
- Added permission checks to export-metric-data trigger task
- Created comprehensive tests for access control integration
- Updated AssetType enums to include report_file
- Resolved export conflicts in server-shared package
- Fixed AI package imports for new getPermissionedDatasets API
2025-08-13 14:25:41 -06:00
dal ebe496df87
Merge access-controls branch and resolve conflicts
- Combined asset type enums from both branches
- Merged all database query exports
- Integrated access-controls package into server-shared
- Resolved conflicts in AI package instructions
2025-08-13 14:15:20 -06:00
dal 594f08202b
Refactor metric file handling and improve error handling
- Updated type definitions for better clarity and type safety in metric file download and export tasks.
- Enhanced error handling in the metric files API to utilize HTTPException for more consistent error responses.
- Added environment variable validation in export tasks to ensure necessary credentials are present before execution.
- Improved type assertions for content in metric export queries to ensure proper handling of JSONB data.
2025-08-13 14:01:46 -06:00
dal 3eb80ae630
Add metric file export functionality with Cloudflare R2 support
- Introduced new API endpoint for downloading metric files as CSV.
- Implemented export logic to handle large datasets (up to 1 million rows) and generate presigned URLs for secure downloads.
- Added cleanup task to remove exported files from R2 storage after 60 seconds.
- Updated environment configuration to include Cloudflare R2 credentials.
- Enhanced error handling for various export scenarios.
- Refactored related database queries and schemas for better integration.
- Updated documentation for new features and usage instructions.
2025-08-13 13:36:42 -06:00
dal 94a127cb0e
build fix 2025-08-13 12:00:00 -06:00
dal c8d2c0ff0f
Refactor metric data handler and snowflake query to improve limit handling. Adjusted query limit logic to use display limit and added optional limit parameter to snowflake query function for better flexibility. 2025-08-13 11:38:44 -06:00
Nate Kelley 73746ca41d
fix messy stories 2025-08-12 23:09:40 -06:00
dal 855e7b1a55
Integrate dataset handling into Analyst and Think and Prep agents
- Added support for fetching and managing user-specific datasets in the `analystAgentTask`, enhancing the context available for processing.
- Updated the `AnalystAgent` and `ThinkAndPrepAgent` schemas to include datasets, ensuring they are passed correctly in system messages.
- Implemented error handling for dataset retrieval to prevent workflow interruptions.
- Adjusted integration tests to accommodate the new datasets structure, ensuring comprehensive coverage.

These changes improve the agents' ability to utilize relevant datasets, enhancing their functionality and user experience.
2025-08-12 19:31:25 -06:00
dal 1e594ac4ec
Refactor chat message handling by removing unused fields
- Eliminated `responseMessages`, `reasoning`, and `rawLlmMessages` from chat creation and handling functions to streamline data processing.
- Updated the `generateJsonbArraySql` function to accept pre-stringified JSON for better performance and clarity.

These changes enhance the efficiency of chat message management and reduce unnecessary complexity in the codebase.
2025-08-12 16:38:20 -06:00
dal da4f3605cc
Refactor prompt loading and streamline agent steps
- Replaced file system reads with direct imports of prompt text files in various agent and step files to improve performance and reduce complexity.
- Updated the `runDocsAgentStep` and `runDocsAgentWorkflow` functions to return `void` instead of structured outputs, simplifying their interfaces.
- Enhanced test cases to validate prompt loading without relying on file system checks, ensuring faster and more reliable tests.
- Cleaned up unused imports and optimized code structure across multiple files.

These changes aim to enhance code clarity, maintainability, and performance in the agent workflow and related components.
2025-08-12 14:57:23 -06:00