Charis
3b7052b5a9
cleanup: fix import order and prefixes for studio/data ( #44501 )
2026-04-03 09:15:57 +02:00
Matt Rossman
20d1ac0f83
feat(assistant): send user feedback to Braintrust traces ( #43021 )
...
- Expose Braintrust span ID to client via `x-braintrust-span-id`
response header, captured in chat transport
- On feedback submission, call `logFeedback()` with `scores["User
Rating"]` (1/0), `comment`, and on the root span assign
`metadata.feedbackCategory`
- Silently skipped when tracing is disabled (HIPAA, missing env vars)
- Log `requestedModel` in trace metadata so we can see what model the
user selected vs what was actually used after throttling
Example traces:
- [Thumbs
up](https://www.braintrust.dev/app/supabase.io/p/Assistant/trace?object_type=project_logs&object_id=5a8d02e5-b3b6-40cc-ba76-ecee286478f4&r=0bb71680-784c-45c1-a234-cba0242562d6&s=0bb71680-784c-45c1-a234-cba0242562d6 )
- [Thumbs down + negative
feedback](https://www.braintrust.dev/app/supabase.io/p/Assistant/trace?object_type=project_logs&object_id=5a8d02e5-b3b6-40cc-ba76-ecee286478f4&r=d5a78084-6c9a-4230-8615-1e864bb9bac7&s=d5a78084-6c9a-4230-8615-1e864bb9bac7 )
<img width="645" height="173" alt="CleanShot 2026-02-19 at 13 30 25@2x"
src="https://github.com/user-attachments/assets/6c463e83-27c6-4afb-a8d0-a329ed61270a "
/>
Closes AI-442
2026-02-19 15:00:07 -05:00
Ivan Vasilov
8b657165b5
chore: Migrate to use custom type for ReactQuery queries and mutations ( #40073 )
...
* Add custom types for queries, mutations and infinite queries.
* Migrate all queries to use the new type.
* Migrate all infinite queries to useCustomInfiniteQueryOptions.
* Migrate all mutations to use useCustomMutationOptions.
* Add type to all imports in `types` folder.
2025-11-03 13:18:13 +01:00
Joshen Lim
64e3e047eb
Final final cleaning up barrel files ( #40018 )
...
* Final final cleaning up barrel files
* Fix merge conflict
2025-10-31 14:02:59 +08:00
Alaister Young and Joshen Lim
8855d05803
chore(studio): swap react-query to object syntax ( #39842 )
...
* chore(studio): swap react-query to object syntax
* Fix small issues found
* Fix realtime settings
* Nit
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2025-10-27 09:38:27 +01:00
Saxon Fletcher
d5bf4ef13b
Rate assistant responses ( #39224 )
...
* rate assistant responses
* test
* always show
2025-10-06 22:46:30 +00:00