Commit Graph

73 Commits

Author SHA1 Message Date
Hayden Bleasel ae7091290c Fix controls dark mode 2025-10-07 14:02:46 -07:00
Hayden Bleasel 50c755f596 Rename hooks 2025-10-06 14:59:03 -07:00
Hayden Bleasel 3d9dff9662 Update prompt-input.tsx 2025-10-06 14:14:07 -07:00
Hayden Bleasel 1ef040abd9 Increase test coverage from 95.5% to 96.34% 2025-10-06 14:10:22 -07:00
Hayden Bleasel 8944115c60 Increase test coverage from 94.43% to 95.5% 2025-10-06 14:03:40 -07:00
Hayden Bleasel 0e3111cda0 Misc fixes 2025-10-06 14:01:58 -07:00
Hayden Bleasel 17df70e47d Increase test coverage from 92.94% to 94.43% 2025-10-06 13:59:18 -07:00
Hayden Bleasel dda289ac83 Fix vitest config 2025-10-06 13:52:35 -07:00
Hayden Bleasel 815c1240da Increase test coverage from 92.69% to 92.94% 2025-10-06 13:50:52 -07:00
Hayden Bleasel 9d4f904ed6 Increase test coverage from 92.33% to 92.69% 2025-10-06 13:45:44 -07:00
Hayden Bleasel f87ec1cb02 Fix broken imports 2025-10-06 13:43:33 -07:00
Hayden Bleasel 2bcbae72b3 Increase test coverage from 84.71% to 92.33% 2025-10-06 13:41:20 -07:00
Hayden Bleasel d75a5ee2f0 Increase test coverage from 81.35% to 84.71% 2025-10-06 13:35:25 -07:00
Hayden Bleasel a85bbf5b7a Improve unit tests 2025-10-06 13:27:50 -07:00
Hayden Bleasel 517cdfe966 Add unit tests for new components 2025-10-06 13:27:41 -07:00
Hayden Bleasel fbe92b4a9e Run Ultracite 2025-10-06 13:18:55 -07:00
Milind Mishra ccd7037ec3 feat: add stt and add to test and example apps (#112)
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-06 13:16:35 -07:00
Matthias Platzer 2db6495cee Added PromptInputProvider (#96)
* Added PromptInputProvider
- to access attachements outside the PromptInput context
- also added textInput controlls

Adapted PromptInput attachement rendering for non-image attachements
- show filename, use tooltip to show more
- group files, then images

* Merge provider back into prompt-input file

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-06 13:07:49 -07:00
Hayden Bleasel 98e36007b2 Resolves #122 2025-10-06 11:21:09 -07:00
Hayden Bleasel c3a463dffd Resolves #127 2025-10-06 11:18:15 -07:00
Hayden Bleasel 7f41880e17 Update shadcn/ui 2025-10-06 11:05:40 -07:00
Hayden Bleasel 0c64c3dedb Resolves #126 2025-10-06 10:55:19 -07:00
Hayden Bleasel e3bc4435cb Workflow Elements (#116)
* Draft workflow elements

* Create canvas.tsx

* Draft examples

* Improve demo

* Add Connection component

* Add Controls and Panel

* Update components

* Update workflow.tsx

* Update node.tsx

* Update edge.tsx

* Update node.tsx

* Scaffold Toolbar

* Fix toolbar classname

* Update controls.tsx
2025-10-06 10:48:18 -07:00
zxzinn 323b184f09 Improve form submission handling by using form reference and resettin… (#125)
* Prevent race condition by resetting form before async file processing

Add test for clearing textarea after form submission

Improve form submission handling by using form reference and resetting form after submission

* Update test case titles to include issue #125

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-10-06 07:21:47 -07:00
김의중(UyJoong Kim) 0188b6df91 fix: memoize chain-of-thought context (#117) 2025-10-04 00:54:31 -07:00
Andrew Chen Wang dca6c934e7 Check if output is a valid React element in ToolOutput (fixes #118) (#119) 2025-10-04 00:53:25 -07:00
Hayden Bleasel d971feaed6 Backfill unit tests 2025-09-30 11:56:30 +10:00
Hayden Bleasel b1420f6089 Resolves #113 2025-09-30 11:51:56 +10:00
Hayden Bleasel 656c4a5d97 add unit tests (#115)
* Add 200 unit tests

* Fix unit tests

* Create test.yml
2025-09-29 18:47:51 -07:00
Tobias Büschel a26d53160a fix: clear attachments in PromptInput after submit (#111) 2025-09-29 17:57:49 -07:00
Lachlan Campbell 6db48388c5 fix(OpenInChat): Update Claude branding (#109)
* fix(OpenInChat): Update Claude branding

* Fix JSX syntax
2025-09-29 17:56:19 -07:00
Lachlan Campbell 610669abec [OpenInChat] Fix capitalization of V0 → v0 (#108) 2025-09-29 17:55:10 -07:00
Hayden Bleasel 64d13a50ff add onPaste File Event Support to PromptInput Component (#105) 2025-09-22 12:08:09 -07:00
Parbez 7a65c0f231 fix: allow passing a custom title in tool header (#85) 2025-09-22 10:30:24 -07:00
Rohit Singh c06baa3502 fix(task): stop the jump of collapsible animation in task section (#83) 2025-09-22 10:23:54 -07:00
Hayden Bleasel ac65261848 Update open-in-chat.tsx 2025-09-21 13:42:42 -07:00
Hayden Bleasel 0daec531cc Bump Streamdown 2025-09-16 10:33:09 -07:00
Hayden Bleasel d05f5d77b4 Bump tokenlens 2025-09-12 21:41:01 -07:00
17hz e41ac1088b fix: Update the all components link in the installation command to all.json (#88) 2025-09-10 09:08:59 -07:00
Hayden Bleasel ecc03478fb Update package.json 2025-09-09 08:55:35 -07:00
Hayden Bleasel 2599cf229f Create new "all.json" 2025-09-09 08:55:05 -07:00
Hayden Bleasel 701e570979 September 8 Updates (#80)
* feat: Add File Upload with PromptAttachments and PromptForm Components (#76)

* feat: Add PromptInputActionMenu for granular action dropdowns

* feat: Implement PromptForm and PromptAttachments components for file attachment handling

* refactor: Integrate PromptForm with PromptInput for enhanced submission handling and attachment support

* docs: Update README files to include new components PromptForm and PromptInputAttachments

* refactor: Refactor useAttachment hook for better DX

* feat: Add Chat context visualization component (#75)

* feat: add context component to visualise model context usage

* chore: update README and package.json to include context component in documentation and description

* feat: integrate context component into example files for enhanced token visualization

* fix: update title for ContextIcon to improve accessibility

* refactor: remove title element from ContextIcon for cleaner code

* fix: add className prop to button in Context for improved styling flexibility

* fix: apply minHeight and maxHeight props in PromptInputTextarea (#40)

* fix: apply minHeight and maxHeight props in PromptInputTextarea

* style: revert unintended quote changes

* Switch to pure CSS

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>

* feat: add MessageContent variants (#37)

* feat: add variants for message content

* chore: remove unneded join

* Bump deps

* Ignore shadcn/ui

* Run formatter

* Update biome.jsonc

* Resolves #77

* Resolves #69

* Resolves #60

* Remove logo.dev from examples

* Update context.tsx

* Propagate fixes from ai-studio

* Resolves #74

* Resolves #59

* Resolves #67

* Run Ultracite

* Resolves #73

* Resolves #71

* Update prompt-input.tsx

* Start merging prompt input files

* Continue working

* STILL working

* Finish cleaning up prompt input

* Update prompt-input.tsx

* Remove context

* Update prompt-input.tsx

* Update prompt-input.tsx

* Update message.tsx

* Fix trigger consistency

* Fade reasoning text

* Resolves #38

* Create artifact.tsx

* Misc fixes

* Port Context from ChatSDK (WIP)

* Rebuild context component

* Update context.tsx

* Misc fixes

* Port updates from ai-studio

* Update suggestion-input.tsx

* Update v0-clone.tsx

---------

Co-authored-by: Nicklas Scharpff <64584979+xn1cklas@users.noreply.github.com>
Co-authored-by: huygbui <160628415+huygbui@users.noreply.github.com>
Co-authored-by: Damiano Carradori <damiano.carradori@gmail.com>
2025-09-08 21:47:43 -07:00
Hayden Bleasel 33a12b70c3 Update Streamdown to 1.2 2025-09-04 22:00:53 -07:00
Hayden Bleasel a1929e8e50 Resolves #63 2025-09-02 19:49:55 -07:00
Hayden Bleasel 16d3a6f255 Update Streamdown 2025-09-02 19:46:18 -07:00
Hayden Bleasel 5cabdd443d Update package.json 2025-08-30 10:12:29 -07:00
Hayden Bleasel b9d252fa6c Resolves #55 2025-08-30 10:11:42 -07:00
Timo Wernars 5933623f65 apply classname prop in sources trigger (#54)
Co-authored-by: Timo <timo@goedgemerkt.nl>
2025-08-30 10:06:56 -07:00
Hayden Bleasel 6351918777 Improve registry reliability (#53)
* Improve registry reliability

* Add error handling

* Update index.js

* Run all shadcn commands together

* Update package.json
2025-08-28 15:12:08 -07:00
Hayden Bleasel 8de78cb32e Update tool.tsx 2025-08-28 08:28:48 -07:00