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
7a45e20903
Add more error handling for get report
2025-08-07 16:42:04 -06:00
Nate Kelley
358e74149a
try catch wrap
2025-08-07 15:09:49 -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
e67f896b7f
Update turbo.json
2025-08-07 12:51:44 -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
1ef0d18c61
Report playground updates for fixed toolbar
2025-08-05 10:15:22 -06:00
Nate Kelley
44787f5478
Add additional asset queries
2025-08-04 22:13:09 -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
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
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
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
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
3fba54a26c
Merge pull request #646 from buster-so/big-nate-bus-1520-make-report-component
...
Big nate bus 1520 make report component
2025-07-29 16:50:04 -06:00
Nate Kelley
be3e8b7adf
add a common markdown parser to server
2025-07-29 14:57:19 -06:00
Nate Kelley
c0a12cad88
Merge pull request #643 from buster-so/big-nate-bus-1520-make-report-component
...
Big nate bus 1520 make report component
2025-07-29 13:31:16 -06:00
Nate Kelley
27009621b5
Add temp parser
2025-07-29 12:49:58 -06:00
Nate Kelley
20d7c179b0
Fix tests
2025-07-29 11:06:23 -06:00
Nate Kelley
4023985bd6
workspace installations
2025-07-29 10:56:52 -06:00
Nate Kelley
ae2b21dcd9
update server markdown to platejs
2025-07-29 10:53:24 -06:00
dal
1a5cc47b58
Reverse message IDs in chat response to ensure they are ordered from oldest to newest.
2025-07-28 12:39:44 -06:00
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