Commit Graph

1082 Commits

Author SHA1 Message Date
dal ccc4528396
Refactor chat cancellation logic and remove unused components
- Updated type imports in `cancel-chat.ts` from `CoreMessage` to `ModelMessage` and adjusted related function signatures for consistency.
- Modified the structure of tool result messages to use `ToolResultPart` instead of the deprecated types.
- Deleted the `AIMenu.tsx` and `ai-kit.tsx` files to remove unused components, streamlining the codebase.
- These changes enhance the clarity and maintainability of the chat cancellation functionality while cleaning up the project structure.
2025-08-12 14:17:04 -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 c6a28e39d5
migration changes 2025-08-12 12:44:15 -06:00
Nate Kelley 9079a768ab
fixed strange issue causing initial token to be undefined 2025-08-11 17:24:39 -06:00
Nate Kelley 9d023db3f8
Merge pull request #699 from buster-so/cursor/ensure-active-auth-session-38b9
Ensure active auth session
2025-08-11 16:48:30 -06:00
Nate Kelley 34cc2226b9
Update supbase 2025-08-11 16:44:25 -06:00
Nate Kelley 2fee9a2311
Update next config to support supabase url 2025-08-11 16:41:11 -06:00
Nate Kelley d8451325cc
Update vitest.setup.ts 2025-08-11 15:52:45 -06:00
Nate Kelley d64f911442
Fix imports 2025-08-11 15:46:47 -06:00
Cursor Agent 6b68d16461 Changes from background agent bc-654437a1-f840-4d59-90ee-87a733d631b1 2025-08-11 21:26:34 +00:00
Nate Kelley a369ba2b32
browser client update 2025-08-11 15:22:17 -06:00
Nate Kelley 48fa337303
can parse dollar signs 2025-08-11 15:10:55 -06:00
Nate Kelley 438bec4ce4
Fix caption parser 2025-08-11 15:01:08 -06:00
Nate Kelley 9dd37de7cd
Add tests for metric caption parsing 2025-08-11 14:53:41 -06:00
Nate Kelley 9f6df07334
Add streaming to report component 2025-08-11 14:11:27 -06:00
Nate Kelley e9d6b7ed1b
Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-08-11 13:40:03 -06:00
Nate Kelley 23411f25c6
report editor updates 2025-08-11 13:40:01 -06:00
dal 8d438f25fd
fix trigger int tests 2025-08-11 13:32:13 -06:00
Nate Kelley 78374e7ddf
Update server editor 2025-08-11 13:13:33 -06:00
Nate Kelley f948ad3415
web load env 2025-08-11 11:53:05 -06:00
Nate Kelley a2190e677e
Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-08-11 11:39:29 -06:00
Nate Kelley 28e704c53e
added env validation for server 2025-08-11 11:39:08 -06:00
dal b96cb39b78
turbo fast web build 2025-08-11 11:33:18 -06:00
dal 332c367be2
trigger dev upgrade 2025-08-11 11:15:24 -06:00
dal 21c76f268a
trigger stuff 2025-08-11 11:03:09 -06:00
Nate Kelley 1196893a08
Added some content 2025-08-11 11:02:32 -06:00
Nate Kelley c81fdd00bc
throttle stream 2025-08-11 10:56:12 -06:00
Nate Kelley 41db82df6e
Remove streaming with llm ui 2025-08-11 09:18:11 -06:00
Nate Kelley 68038e13e5
Fix potential memory leak 2025-08-11 09:09:30 -06:00
dal 74ae581f73
refactor: update ESLint rules and clean up socket query files
- Disabled specific TypeScript ESLint rules to allow for more flexibility in type definitions.
- Removed unused socket query files and related types to streamline the codebase.
- Enhanced various components and layouts for better performance and readability.

These changes improve code maintainability and reduce clutter in the project.
2025-08-11 07:57:14 -06:00
Nate Kelley 729004b925
card font updates 2025-08-09 23:31:10 -06:00
Nate Kelley f86d612ac7
Merge branch 'staging' into cursor/diagnose-appmarkdownstreaming-memory-leak-f64a 2025-08-09 22:44:23 -06:00
Nate Kelley 6c4cd8bcf3
Merge branch 'staging' into devin/1754746916-fix-memory-leaks 2025-08-09 22:35:49 -06:00
Nate Kelley 3f87a7bd6f
Remove socket 2025-08-09 22:34:57 -06:00
Nate Kelley 3be68339db
Make more components for streaming 2025-08-09 17:08:09 -06:00
Nate Kelley 21dcae0878
Add different context selector 2025-08-09 16:50:31 -06:00
Nate Kelley 548505a856
Merge branch 'staging' into cursor/diagnose-appmarkdownstreaming-memory-leak-f64a 2025-08-09 16:34:06 -06:00
Nate Kelley 74675a8b55
metric element can be deleted 2025-08-09 16:32:04 -06:00
Nate Kelley 9bfab329d9
Merge branch 'staging' into cursor/fix-metric-node-deletion-in-plate-js-editor-8ba9 2025-08-09 15:33:42 -06:00
Nate Kelley 8ba281cf31
Add caption and ring content 2025-08-09 15:31:03 -06:00
Nate Kelley 5b56b88839
Merge branch 'staging' into cursor/add-floating-toolbar-for-metric-element-1f54 2025-08-09 15:19:42 -06:00
Devin AI db2365c5ed Fix PreventNavigation memory leak while preserving isDirty behavior
- Add conditional check for isDirty before adding event listeners
- Ensure cleanup always runs to prevent memory leaks
- Address greptile-apps[bot] feedback about breaking intended behavior
- Maintain original logic where listeners are only active when there are unsaved changes

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-09 13:58:29 +00:00
Devin AI eb02a76f2a Fix critical memory leaks in Next.js navigation
- Fix PreventNavigation event listener accumulation by changing useEffect dependency from [isDirty] to [handleClick, handlePopState, handleBeforeUnload]
- Improve RoutePrefetcher cleanup by adding proper load event listener cleanup
- Simplify Chart tooltip cleanup to use direct DOM removal instead of complex cloning
- Enhance canvas cleanup in getTextWidth with try/finally pattern
- Add canvas cleanup in DotPattern useEffect return function

These fixes prevent memory leaks during page navigation loops by ensuring proper cleanup of event listeners, timers, observers, and DOM elements.

Co-Authored-By: nate@buster.so <nate@buster.so>
2025-08-09 13:43:16 +00:00
Cursor Agent 65271a18bd Optimize markdown streaming memory management and rendering
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-08-09 05:11:43 +00:00
Nate Kelley b73795355b
remove markdown streaming in thoughts 2025-08-08 22:54:38 -06:00
Nate Kelley 1ad0a5bed1
added report fixes 2025-08-08 22:38:35 -06:00
Nate Kelley 31030b8eb8
Update AppCodeEditor.tsx 2025-08-08 21:53:24 -06:00
Nate Kelley 66e0e4651c
Try to find memory leak 2025-08-08 21:25:43 -06:00
Nate Kelley 95d081766e
update imports 2025-08-08 20:39:15 -06:00
Nate Kelley 79472ea766
update hooks 2025-08-08 20:27:09 -06:00
Nate Kelley 342d323f67
update the params and remove the logs 2025-08-08 20:21:26 -06:00
Nate Kelley ca38f7444b
added some validators and stable refs 2025-08-08 19:39:22 -06:00
Nate Kelley 58d58675e6
remove useless chat stuff 2025-08-08 19:27:37 -06:00
Nate Kelley b8422f0c4a
update titles endpoints 2025-08-08 19:16:20 -06:00
Nate Kelley 6af0f6e011
Add a few stable selectors 2025-08-08 18:30:52 -06:00
Nate Kelley 0d20155b97
Add stable selectors 2025-08-08 18:23:29 -06:00
Nate Kelley 8911e7954f
Additional render updates 2025-08-08 17:58:46 -06:00
Nate Kelley 165576b669
Merge branch 'staging' of https://github.com/buster-so/buster into staging 2025-08-08 17:42:26 -06:00
Nate Kelley d888d4294c
Update useReportEditor.tsx 2025-08-08 17:42:11 -06:00
Nate Kelley a175d11492
existing stlye update 2025-08-08 17:36:30 -06:00
Nate Kelley 8feff47f4c
add better export settings 2025-08-08 17:27:28 -06:00
Nate Kelley 40454d2519
add global vars 2025-08-08 16:55:08 -06:00
Nate Kelley 70780a3773
add print stuff 2025-08-08 16:45:04 -06:00
Cursor Agent 521569ec75 Add keyboard handling for deleting adjacent metric nodes
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-08-08 20:54:29 +00:00
Nate Kelley 6aeda29592
Merge pull request #679 from buster-so/cursor/access-plate-editor-for-pdf-download-4b33
Access plate editor for pdf download
2025-08-08 14:26:07 -06:00
Nate Kelley 1e9e3c6a80
add print html page functionality 2025-08-08 14:13:17 -06:00
Nate Kelley cb02074cba
handle after print 2025-08-08 13:58:25 -06:00
dal 9156e7a06e
merge staging 2025-08-08 13:17:58 -06:00
Nate Kelley 5c6bfdf96a
pass down ids and update pdf generation logic 2025-08-08 13:14:55 -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 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
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 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
Nate Kelley b95f952166
Add a few quick wins for caching 2025-08-08 09:24:14 -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
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
Nate Kelley f38d4b0ac1
Update SortableItemContext.tsx 2025-08-07 23:46:02 -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
Nate Kelley 6fa31403aa
reframe editor 2025-08-07 22:35:41 -06:00
Nate Kelley 064bc3e9c9
use client updates 2025-08-07 22:04:50 -06:00
Cursor Agent f7f6019e9b Implement PDF export and editor registry for report management
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-08-07 23:43:22 +00:00
Nate Kelley 216e610aa8
Added some additional safe parse element stuff 2025-08-07 17:21:38 -06:00
Nate Kelley 75950ae108
super nested list items 2025-08-07 17:01:45 -06:00
Nate Kelley 69eb14c836
Update report editor to the ui 2025-08-07 16:44:49 -06:00
Nate Kelley 7a45e20903
Add more error handling for get report 2025-08-07 16:42:04 -06:00
Nate Kelley 01add5df25
added a fix for markdown report 2025-08-07 16:37:47 -06:00
Nate Kelley 04121ac987
report version handler 2025-08-07 16:17:22 -06:00
Nate Kelley 2f06ede92c
Merge branch 'staging' into cursor/add-report-menu-options-and-stub-functions-e636 2025-08-07 15:34:49 -06:00
Nate Kelley 2f324baa62
Remove some unecssary memo 2025-08-07 15:28:53 -06:00
Nate Kelley 991dd172f6
Fix dropdown on metric title 2025-08-07 15:26:52 -06:00
Nate Kelley 358e74149a
try catch wrap 2025-08-07 15:09:49 -06:00
Cursor Agent fa0df63a78 Add more actions to report three-dot menu dropdown
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-08-07 21:06:29 +00:00
Nate Kelley fe22aabbbb
Fixed context selector 2025-08-07 14:59:41 -06:00
Nate Kelley 105348562d
part 1 of adding three dot menu items 2025-08-07 14:48:19 -06:00
Nate Kelley 115a6da7e9
quick BIG alert 2025-08-07 14:18:12 -06:00
Nate Kelley 1ef2983d15
Merge branch 'staging' into big-nate-bus-1617-create-report-page-and-file-page 2025-08-07 14:08:59 -06:00
Nate Kelley 40a44cf1f9
Merge branch 'staging' into dallin-bus-1589-create-and-modify-report-tools 2025-08-07 14:05:44 -06:00
Nate Kelley 7e40fbd769
Editor is working 2025-08-07 13:34:35 -06:00
Nate Kelley 409af5e02e
Editor container fix 2025-08-07 13:25:08 -06:00
Nate Kelley 12d060cf58
Merge branch 'staging' into big-nate-bus-1617-create-report-page-and-file-page 2025-08-07 12:51:57 -06:00
Nate Kelley e67f896b7f
Update turbo.json 2025-08-07 12:51:44 -06:00
Nate Kelley 6fc8d70b45
Fixed toolbar button 2025-08-07 12:44:46 -06:00
Nate Kelley ae9efb406b
Update ImportToolbarButton.tsx 2025-08-07 12:18:44 -06:00
Nate Kelley 26b3fd0d88
update 2025-08-07 12:18:26 -06:00
Nate Kelley 48c34235cb
update msw 2025-08-07 11:07:32 -06:00
Nate Kelley f3f493740c
upgrade storybook to v9 2025-08-07 10:42:37 -06:00
Nate Kelley 63121edcf4
Add reports page 2025-08-07 10:03:14 -06:00
Nate Kelley 33bdee5ea4
update package versions 2025-08-07 09:40:51 -06:00
Nate Kelley c9f3ea8494
Merge pull request #672 from buster-so/big-nate-bus-1617-create-report-page-and-file-page
Big nate bus 1617 create report page and file page
2025-08-06 22:48:12 -06:00
Nate Kelley 81bddd5216
Add 3 dot menu for report 2025-08-06 22:46:15 -06:00
Nate Kelley ac818aff47
create a shared metric card component 2025-08-06 15:33:54 -06:00
Nate Kelley 1ccccce3a7
Update MetricElement.tsx 2025-08-06 12:54:26 -06:00
Nate Kelley 8695bd8579
metric plugin add modal update 2025-08-06 12:51:45 -06:00
Nate Kelley a3f9dc8d13
metric placeholder plugin 2025-08-06 11:16:45 -06:00
Nate Kelley 09e44171d4
fix merge conflict 2025-08-06 09:55:39 -06:00
Cursor Agent 295ecac4fe Refactor metric plugin with improved element rendering and resizing
Co-authored-by: natemkelley <natemkelley@gmail.com>
2025-08-06 14:52:16 +00:00
Nate Kelley 90d572c92f
Metric caption kit 2025-08-06 08:52:05 -06:00
Nate Kelley 4d5c3afc34
create temp hook override 2025-08-05 23:17:31 -06:00
Nate Kelley 9ba4750a65
Adjust add metric modal 2025-08-05 17:05:27 -06:00
Nate Kelley 57c1fe0f56
character counter kit 2025-08-05 15:43:28 -06:00
Nate Kelley b7a489d73b
counter reach 2025-08-05 15:15:52 -06:00
Nate Kelley 09c977a891
custom components 2025-08-05 14:43:37 -06:00
Nate Kelley 8e31d18066
Add markdown conversion function 2025-08-05 13:40:16 -06:00
dal a26242c46d
Enhance report handling by integrating markdown to PlateJS conversion in the report retrieval process, improving content formatting and error handling. Update report update schema to accept string content for markdown streaming. 2025-08-05 12:02:40 -06:00
Nate Kelley 45f7950851
Remove reports from sidebar 2025-08-05 11:10:14 -06:00
dal 9be23fac0e
Enhance SQL query safety checks with dialect-aware filtering and improve data source type retrieval in query engine 2025-08-05 11:00:34 -06:00
Nate Kelley 9b7921c38a
update unit tests 2025-08-05 10:22:53 -06:00
Nate Kelley 1ef0d18c61
Report playground updates for fixed toolbar 2025-08-05 10:15:22 -06:00
Nate Kelley e70d68d9ea
prefetch list if a name change 2025-08-05 09:30:38 -06:00
Nate Kelley 44787f5478
Add additional asset queries 2025-08-04 22:13:09 -06:00
Nate Kelley 0c0973195d
Update useGetAsset.tsx 2025-08-04 21:42:41 -06:00
Nate Kelley 255460b0e3
Add report file page 2025-08-04 21:39:35 -06:00
Nate Kelley 124523ade9
add a version number to reports 2025-08-04 21:37:23 -06:00
Nate Kelley 43af5fdb4d
add a fix for broken migrate 2025-08-04 20:45:30 -06:00
Nate Kelley 62644bffeb
better error handling for get report 2025-08-04 19:27:18 -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 aae819e151
create new schema for reports 2025-08-04 14:03:52 -06:00
Nate Kelley 1c0947f73d
fix broken types 2025-08-04 13:42:35 -06:00
Nate Kelley f01c6d7dc5
create listing updates 2025-08-04 13:39:08 -06:00
Nate Kelley d98c5f6e37
add better layout config 2025-08-04 11:26:28 -06:00
Nate Kelley bcd06409ce
fixed button cn 2025-08-04 11:08:59 -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 08afd397bc
route id correctly 2025-08-04 10:44:16 -06:00
Nate Kelley 780749682d
added base report stuff 2025-08-04 10:40:29 -06:00
Nate Kelley 2435c1a5e3
update broken types 2025-08-04 10:24:22 -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 21b3c22e5c
pass generics onto the components themselves 2025-08-02 23:38:48 -06:00
Nate Kelley 38e2bbafba
minor updates to pass through generic 2025-08-02 23:34:00 -06:00
Nate Kelley 962b4edd8d
make list column more type safe 2025-08-02 23:08:28 -06:00
Nate Kelley fd377cbfa2
create mapped union type 2025-08-02 23:00:42 -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 b031cec0c4
create report requests on web 2025-08-02 22:05:17 -06:00
Nate Kelley 729468d5cd
Merge pull request #659 from buster-so/devin/BUS-1605-1754181219
feat: implement reports API endpoints for BUS-1605
2025-08-02 21:49:24 -06:00
Nate Kelley cf5d549af3
stubbed in report lists 2025-08-02 21:48:15 -06:00
Nate Kelley 605b79f9b9
update parsing 2025-08-02 21:24:06 -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
Nate Kelley 3b3e9a2c9b
Merge pull request #661 from buster-so/big-nate-bus-1611-finalize-slash-menu
Big nate bus 1611 finalize slash menu
2025-08-02 19:32:34 -06:00
Nate Kelley 58ded517d5
update common shared add 2025-08-02 19:30:05 -06:00
Nate Kelley 19862ceaf6
update slash node 2025-08-02 19:18:30 -06:00
Nate Kelley 67f396eaa1
block context menu updates 2025-08-02 19:08:05 -06:00
Nate Kelley f38c61e70c
Remove logs 2025-08-02 18:39:11 -06: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
Nate Kelley 90f5e3a05e
Add a shared icon strategry 2025-08-02 18:31:54 -06:00
Nate Kelley 3754be7875
make single icon config 2025-08-02 17:34:45 -06:00
Nate Kelley 5a501d9630
Finalized floating toolbars 2025-08-02 17:20:37 -06:00
Nate Kelley f51a599f3d
finalized highlighter 2025-08-02 17:12:33 -06:00
Nate Kelley 6502d9487d
finalized toolist 2025-08-02 16:49:01 -06:00
Nate Kelley 3d726438fb
custom colors in dropdown 2025-08-02 16:22:17 -06:00
Nate Kelley 0778c8db4e
update elements to support date 2025-08-02 15:49:52 -06:00
Nate Kelley b8b39b3d93
finalized equation 2025-08-02 14:04:37 -06:00
Nate Kelley ab9b19e9cd
fix toc 2025-08-02 13:33:02 -06:00
Nate Kelley 1f8cdd1677
media embed element 2025-08-02 13:16:06 -06:00
Nate Kelley 709c3bf627
embed parsing 2025-08-02 13:09:55 -06:00
Nate Kelley 3b4394874e
Update MediaEmbedNode.tsx 2025-08-02 12:49:36 -06:00
Nate Kelley ce7ecbe4bb
media embed update 2025-08-02 12:21:47 -06:00