Commit Graph

5364 Commits

Author SHA1 Message Date
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 3745dc6ac2
move helpers to their own files 2025-08-08 11:57:32 -06:00
Nate Kelley e02015206a
update save functionality 2025-08-08 11:52:07 -06:00
dal ff8530a08f
a little reorg 2025-08-08 11:51:06 -06:00
dal dada5cb0eb
refactor: remove unused dependencies and clean up visualization tools
- Deleted references to the `@mastra/core` package from various configuration files.
- Removed multiple unused test files and helper functions related to visualization tools, including axis validation and version history management.
- Cleaned up import statements for better organization and readability.

These changes streamline the codebase by eliminating unnecessary dependencies and improving maintainability.
2025-08-08 11:48:53 -06:00
Nate Kelley d3dd804a3f
pdf export coming soon. 2025-08-08 11:39:43 -06:00
dal 601a13c402
analyst agent steps is clean 2025-08-08 11:33:04 -06:00
Nate Kelley edabcac7f2
update PDF export features 2025-08-08 11:31:46 -06:00
Nate Kelley fb5abb8a75
added additional styles 2025-08-08 11:05:55 -06:00
Nate Kelley 124997a1c0
Report editor 2025-08-08 10:43:32 -06:00
Nate Kelley f100dc723f
editor pdf exporting 2025-08-08 10:40:47 -06:00
Nate Kelley 4c7cd84e88
Merge pull request #685 from buster-so/nate/memory-leak-quick-wins
Nate/memory leak quick wins
2025-08-08 10:33:46 -06:00
Nate Kelley 1317190edf
export to pdf hook update 2025-08-08 10:33:28 -06:00
Nate Kelley 078ea21086
Merge branch 'staging' into cursor/access-plate-editor-for-pdf-download-4b33 2025-08-08 10:30:14 -06:00
Nate Kelley 083c6c2b57
Remove useless react memo stuff 2025-08-08 10:19:48 -06:00
Cursor Agent 2ccb1e30fe Add report editor registry exports
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-08-08 16:15:06 +00:00
Nate Kelley 31b3116e52
minor update to dashboard grid and memoizing 2025-08-08 10:07:48 -06:00
Nate Kelley 5456561734
add a better markdown converter 2025-08-08 09:57:05 -06:00
Nate Kelley 6ba45c9797
dynamically load posthog provider 2025-08-08 09:44:20 -06:00
Nate Kelley f544d93d6b
Make query cache a little faster 2025-08-08 09:40:46 -06:00
dal 7f1bfc3bc5
fix: improve error handling and refactor test mocks for SQL execution
- Added a check to ensure the DataSource is available before executing SQL statements, throwing an error if not.
- Refactored test mocks to use `vi.mocked` for better clarity and consistency in handling DataSource connection errors.
- Removed unnecessary whitespace for cleaner code.

These changes enhance the robustness of SQL execution and improve the reliability of related tests.
2025-08-08 09:36:26 -06:00
dal fb65ac42ea
test: update integration tests to include additional properties for agent options
- Added userId, chatId, organizationId, dataSourceId, and dataSourceSyntax to the integration tests for the Think and Prep Agent and Mark Message Complete Step.
- Cleaned up import statements for better organization and readability.
- Ensured that the tests reflect the latest schema changes for improved tracking and functionality.

These updates enhance the clarity and robustness of the integration tests, aligning them with recent changes in agent options.
2025-08-08 09:32:53 -06:00
dal 3d12455f69
refactor: enhance agent options and streamline step functions
- Added new properties (chatId, organizationId, dataSourceId, dataSourceSyntax, userId) to the ThinkAndPrepAgentOptionsSchema for improved tracking and functionality.
- Renamed createTodos function to runCreateTodosStep for consistency across step functions.
- Updated integration tests to reflect the new function names and ensure proper functionality.
- Removed outdated test files related to the think-and-prep step, reducing clutter and focusing on relevant tests.

These changes improve the modularity and clarity of the agent's configuration while enhancing the overall maintainability of the codebase.
2025-08-08 09:29:59 -06:00
Nate Kelley b95f952166
Add a few quick wins for caching 2025-08-08 09:24:14 -06:00
dal 402b27d178
integration tests for the steps are great 2025-08-08 09:08:16 -06:00
dal e4b70eb1da
more clean up and exports 2025-08-08 09:04:16 -06:00
dal 0c1a0525e5
clean up 2025-08-08 08:59:57 -06:00
dal 135d95b46e
chore: remove outdated test files for analyst step functionality
- Deleted multiple test files related to the analyst step, including tests for database save, deduplication, failed tool handling, file ID mapping, and file selection.
- This cleanup reduces clutter in the codebase and focuses on maintaining relevant tests.

These changes aim to streamline the testing process and improve overall maintainability.
2025-08-08 08:46:23 -06:00
dal f3dd5c1ccb
refactor: export AnalystAgentOptionsSchema and AnalystStreamOptionsSchema
- Changed the declaration of AnalystAgentOptionsSchema and AnalystStreamOptionsSchema to export them for use in other modules.
- Removed the test files related to analyst-agent steps, streamlining the codebase and improving maintainability.

This update enhances the modularity of the agent's configuration schemas while cleaning up unused test files.
2025-08-08 08:25:41 -06:00
dal 1d92be2a71
more fixes 2025-08-08 08:06:55 -06:00
dal 283d74ca09
tons of cleanup 2025-08-08 08:03:22 -06:00
Cursor Agent c97dc131f1 Update MetricToolbar to support preselected metric and improve modal handling
Co-authored-by: nate <nate@buster.so>
2025-08-08 13:31:55 +00:00
dal 1b70c6e2b3
fix: clean up imports and enhance dashboard file handling
- Removed duplicate import of ModelMessage in create-dashboards-execute.ts for clarity.
- Updated createDashboardsReasoningMessage function to conditionally include version_number only if defined, improving the handling of dashboard file properties.

All changes aim to streamline the code and enhance maintainability.
2025-08-08 07:14:13 -06:00
Cursor Agent dca78e9458 Add metric toolbar with edit and delete actions for metric elements
Co-authored-by: nate <nate@buster.so>
2025-08-08 13:11:14 +00:00
dal c08fdbc30f
ok now i actually removed them 2025-08-08 07:10:50 -06:00
dal a3a078c8cd
removed unnecessary streaming tools for the file tools 2025-08-08 07:10:42 -06:00
dal 4e19eddbb8
communication and cleanup 2025-08-08 06:55:54 -06:00
Nate Kelley e9fb9f0199
Merge pull request #681 from buster-so/big-nate-bus-1647-make-report-top-level-button
Big nate bus 1647 make report top level button
2025-08-07 23:46:16 -06:00
Nate Kelley f38d4b0ac1
Update SortableItemContext.tsx 2025-08-07 23:46:02 -06:00
dal c432df1326
fix: update list-files-tool streaming test expectations to match actual implementation
Updated test expectations in list-files-tool-streaming.test.ts to match the actual structure of MessageEntry objects being passed to updateMessageEntries. The implementation passes complete objects with all properties rather than partial objects, and args are serialized as JSON strings.

Changes:
- Updated test expectations to check for complete MessageEntry objects instead of partial matches
- Fixed args field to expect JSON strings instead of objects
- Added missing properties like type, result, and started_at
- Fixed state.paths expectations for partial JSON parsing scenarios

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 23:39:30 -06:00
Nate Kelley 0455da1455
Update Toolbar.tsx 2025-08-07 23:35:31 -06:00
Nate Kelley 4d3580bf3a
Update transforms.ts 2025-08-07 23:34:53 -06:00
Nate Kelley 51f896d19e
Add title skeletons 2025-08-07 23:24:28 -06:00
dal 8c2c94b31c
feat: enhance file selection and tool creation in communication tools
- Introduced new file selection logic to extract and prioritize files based on their status and relationships.
- Added helper functions for failure indicator checks and file extraction from reasoning history.
- Updated the communication tools to utilize the new file selection methods, improving response message creation.
- Refactored file tools to follow a consistent factory pattern for better maintainability and clarity.

All tests updated and passing for new functionality.
2025-08-07 23:22:29 -06:00
dal b2e5d702cc
feat: refactor create-files-tool to follow factory pattern
- Update create-file-tool.ts to use factory function from create-files-tool.ts
- Fix docs-agent to properly use factory functions for file tools
- Remove experimental_context usage in favor of proper context passing
- Fix lint issues with type definitions in transform helper
- All tests passing for create-files-tool functionality

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 23:17:55 -06:00
Nate Kelley 6fa31403aa
reframe editor 2025-08-07 22:35:41 -06:00
dal d052f56f86
execute sql and sequential tests 2025-08-07 22:21:20 -06:00
dal ca2d3e940c
Refactor SQL execution tools to improve code readability and maintainability. Consolidate function parameters into single lines and enhance error handling in execution results. Update imports for consistency across files. 2025-08-07 22:10:11 -06:00
dal ee99a835c3
Refactor Analyst and Think-and-Prep agents to enforce required messageId field in options schema. Update tool creation logic to streamline context handling and enhance error reporting. Introduce new execute-sql tool with improved state management and SQL execution capabilities, including delta processing and message updates. Remove deprecated execute-sql functionality and related tests. 2025-08-07 22:09:58 -06:00
Nate Kelley 064bc3e9c9
use client updates 2025-08-07 22:04:50 -06:00