Commit Graph

191 Commits

Author SHA1 Message Date
Nate Kelley d4366037bf
Add some platejs tests 2025-08-20 22:13:02 -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 845e9a73fa
remove add and delete nodes 2025-08-19 22:00:00 -06:00
dal db63ac4c83
update to ci, fix greptile recs 2025-08-19 15:07:34 -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 bc6782e156
test fixes 2025-08-18 23:08:41 -06:00
dal f9eece00d6
merge staging in 2025-08-18 14:39:59 -06:00
dal e0ea7ce616
normalizer fo optimistic json parsing and file selection logic 2025-08-15 18:45:59 -06:00
dal d0e9852f5d
git server endpoints 2025-08-15 18:32:55 -06:00
dal 3f3b9233f3
ok need to debug dash and metrics 2025-08-15 15:57:35 -06:00
dal c476aebd47
tools updating properly 2025-08-15 15:24:05 -06:00
dal 24e91b2ac7
lots of changes for the entries updates 2025-08-14 13:49:34 -06:00
dal 0428552454
lint build test fixes 2025-08-14 09:55:37 -06:00
dal 6c4fbe027f
Refactor chat types and remove unnecessary request schema
- Updated chat types to include AssetPermissionRoleSchema for better clarity.
- Removed the ShareUpdateRequestSchema as it was deemed unnecessary.
2025-08-14 09:15:39 -06:00
dal ddbc47f0f9
revert the unneeded requests 2025-08-14 09:00:57 -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 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 8c27a3dfff
Merge remote-tracking branch 'origin/staging' into dal/upgrade-to-ai-sdk-v5 2025-08-12 12:53:48 -06:00
dal 31c3cbc1b7
refactor: enhance reporting tools with new create and modify functionalities
- Introduced `createReports` and `modifyReports` tools, enabling users to create and modify reports with improved state management.
- Added new schemas for report input and output, enhancing type safety and clarity.
- Implemented helper functions for transforming report state and generating reasoning entries.
- Improved test coverage for the new reporting functionalities to ensure robust integration.

These changes streamline the reporting process and enhance overall code maintainability.
2025-08-12 11:19:07 -06:00
dal f1d9293946
refactor: enhance create dashboards tool with improved state management and type definitions
- Removed unused properties from the dashboard state and output schemas for clarity.
- Introduced a new state file schema to better represent dashboard files.
- Updated helper functions to streamline file transformation and reasoning message creation.
- Improved type safety by utilizing the newly defined `StatusSchema`.

These changes optimize the dashboard creation process and enhance code maintainability.
2025-08-11 15:59:29 -06:00
dal b96cb39b78
turbo fast web build 2025-08-11 11:33:18 -06:00
dal 9156e7a06e
merge staging 2025-08-08 13:17:58 -06:00
dal e75f90ceab
refactor: update dashboard types and schemas for improved validation
- Removed unused import for `createMetricsRawLlmMessageEntry` in visualization tools.
- Introduced Zod schemas for `Dashboard` and `DashboardConfig` to enhance type validation and structure.
- Cleaned up the interface definitions for better clarity and maintainability.

These changes improve the robustness of the dashboard configuration and streamline the codebase.
2025-08-08 13:00:20 -06:00
Nate Kelley 44787f5478
Add additional asset queries 2025-08-04 22:13:09 -06:00
Nate Kelley 124523ade9
add a version number to reports 2025-08-04 21:37:23 -06:00
Nate Kelley 4196b8bcd8
type safe create list by date 2025-08-04 19:15:40 -06:00
Nate Kelley c6834bdfeb
update 2025-08-04 18:20:06 -06:00
Nate Kelley ffeee17365
move enum types 2025-08-04 18:04:32 -06:00
Nate Kelley 87ea87e963
collection and assets queries 2025-08-04 16:45:49 -06:00
Nate Kelley a3198003a3
get report 2025-08-04 15:05:18 -06:00
Nate Kelley 1eb7201d5e
fix broken list type 2025-08-04 11:04:12 -06:00
Nate Kelley 75daab7f98
fix broken uni tests 2025-08-04 10:57:26 -06:00
Nate Kelley fad6670e83
fix type assertion
added safe guards around report_fule

pass generics through

fix list pass throughs
2025-08-04 10:06:59 -06:00
Nate Kelley 46f812d823
add linking 2025-08-03 00:01:21 -06:00
Nate Kelley 08d7014725
report asset layout 2025-08-02 23:47:27 -06:00
Nate Kelley 962b4edd8d
make list column more type safe 2025-08-02 23:08:28 -06:00
Nate Kelley 8eb1b276fd
update server type 2025-08-02 22:43:01 -06:00
Nate Kelley 55b66d866d
Part 1 of adding report to front end 2025-08-02 22:35:20 -06:00
Nate Kelley 3883248d8b
create report items container 2025-08-02 22:24:39 -06:00
Nate Kelley cf5d549af3
stubbed in report lists 2025-08-02 21:48:15 -06:00
Nate Kelley 7cf8b10c07
Added void type 2025-08-02 21:30:26 -06:00
Nate Kelley a4f960ff13
Update scheams for get list 2025-08-02 20:35:34 -06:00
Nate Kelley 7b3975c4ae
update schemas 2025-08-02 20:15:48 -06:00
Nate Kelley 13d814e980
Merge branch 'staging' into devin/BUS-1605-1754181219 2025-08-02 19:32:58 -06:00
Devin AI 884f5b7392 fix: use z.any() type casting to avoid TypeScript inference limits
- Replace ReportElementsSchema with z.any() cast to ReportElements type
- Avoid complex Zod schema inference that exceeds TypeScript serialization limits
- Maintain type safety through explicit type annotations while fixing CI compilation

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-03 01:28:11 +00:00
Devin AI c3657493f3 fix: restructure report schemas to avoid TypeScript inference limits
- Use BaseReportSchema.extend() pattern to break down complex type inference
- Separate content field extension to avoid 'type exceeds maximum length' errors
- Maintain same API contract while fixing CI compilation issues

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-03 01:26:50 +00:00
Devin AI abc801f10b feat: implement reports API endpoints for BUS-1605
- Add Report schema extending ReportElements with metadata fields
- Create GET /api/v2/reports endpoint with pagination
- Create PUT /api/v2/reports/:id endpoint for updates
- Use stubbed data responses following established patterns
- Follow modular route structure and Zod-first validation

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-03 00:38:50 +00:00