Commit Graph

3683 Commits

Author SHA1 Message Date
jelveh e58d6f0770 Enhance test UI with sticky headers and checkbox groups
- Added sticky positioning for h2 headers in the test section.
- Updated h2 elements to include checkboxes for grouping tests (File System, Key Value Store, AI).
- Implemented event listeners to synchronize individual test checkboxes with their respective group checkboxes.
- Simplified select/unselect all functionality to update group checkboxes accordingly.
2025-07-06 14:54:55 -07:00
Neal Shah bddc872e00 feat: puter workers
* experimental Cloudflare Workers for Platforms support

* add support for the puter driver

* stop hardcoding api.puter.localhost

* support destroy from express route as well

* initial worker support

* xhrshim + fixes (incomplete)

* change order of readyState + load event

* remove some debug logs

* change worker/puterUtils into a cjs module

* Cloudflare workers eventtarget workaround

* worker preamble webpack

* edit worker readme to reflect reality

* allow a way to code in api endpoint instead of hardcoding it to api.puter.com

* move cloudflare eventtarget fix to puter-portable template

This is so it gets run before the rest of puter-js initializes

* remove express route for worker
2025-07-05 17:01:44 -04:00
jelveh 8fa8dd0987 Add tests for App Directory isolation 2025-07-05 12:24:45 -07:00
jelveh af9bf0980c Add puter.ai streaming test 2025-07-05 11:36:29 -07:00
jelveh a2d05af556 Add support for Uint8Array in puter.fs.write 2025-07-05 11:18:13 -07:00
jelveh b0a2590426 Remove redundant tests in puter.js 2025-07-05 10:53:14 -07:00
jelveh 779ee8d5d2 Add human-readable descriptions to Puter.js tests 2025-07-05 10:50:06 -07:00
jelveh 1fb1edd621 remove unused tests from GUI 2025-07-05 10:26:56 -07:00
jelveh 4ca7e852d8 fix toolbar showing scroll on disabling autohide 2025-07-05 09:41:00 -07:00
jelveh 7ccc704694 Use better font for the test UI 2025-07-04 19:14:18 -07:00
jelveh a02a228bf6 Add a 'test' button to each test in Puter.js's test suite 2025-07-04 19:12:06 -07:00
jelveh 6da8ebfe96 Fix the copy assertion rule in puter.js test suites 2025-07-04 19:05:04 -07:00
jelveh 9698761b2b AND MOOOAREEE AI tests 2025-07-04 19:01:16 -07:00
jelveh 3fdee779c7 MOAAAAREEE AI tests! 2025-07-04 18:43:10 -07:00
jelveh 478aed7bda Add basic tests for puter.ai 2025-07-04 18:20:31 -07:00
Nariman Jelveh 3eef18c578 Remove captcha from frotnend (#1335) 2025-07-04 16:31:42 -07:00
KernelDeimos f3c658c011 chore: sync package-lock.json 2025-07-04 18:30:00 -04:00
KernelDeimos 354b116b42 fix: make sharp optional 2025-07-04 18:29:29 -04:00
KernelDeimos 502204a7b7 test: update tests, migrate backend to vitest
Backend had tests written in mocha as well as a test written for jest
(created by an AI utility, wasn't compatible with mocha tests). The AI
generated test had merit so it was migrated to vitest along with all the
mocha tests, which supports conventions from both frameworks.

Vitest also has an excellent watcher cli.

The root repo package.json now runs unit tests in backend. Before it was
only running tests defined in the _test method of backend services.
2025-07-04 18:21:45 -04:00
Nariman Jelveh 87e15cac2d Update SECURITY.md to use the warning tag in the markdown 2025-07-04 06:51:48 -07:00
Xiaochen Cui ade213b88b fix: return proper error message when the model is not found (#1331)
* fix: return proper error message when the model is not found

* use global source for the domain

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>

---------

Co-authored-by: Eric Dubé <eric.alex.dube@gmail.com>

Closes #1326
2025-07-03 17:58:04 -04:00
KernelDeimos c7970fd1a8 fix: include base reserved words by default 2025-07-03 17:41:10 -04:00
jelveh b0b131f214 add expire mthod to puter.kv 2025-07-02 22:54:55 -07:00
jelveh 6df1d4d5f2 Fix puter.js test for incr and decr in KV 2025-07-02 22:31:25 -07:00
jelveh 2bad220602 Update KVStoreInterfaceService.js 2025-07-02 20:10:00 -07:00
jelveh 0947b90c87 Make puter.js tests print out error results 2025-07-02 20:06:25 -07:00
jelveh 37d09a63d4 Only support language and voice (ordered) in puter.js txt2speech 2025-07-02 18:08:54 -07:00
Nariman Jelveh aa3032da8e Add preliminary support for different voices (#1325) 2025-07-02 17:09:48 -07:00
jelveh 62e786faa6 Do not activate toolbar when desktop selectable is active 2025-07-02 16:14:18 -07:00
jelveh 7285a27be4 Fix toolbar autohide/hide timing 2025-07-01 22:42:50 -07:00
Nariman Jelveh 2103374854 Dynamic toolbar: allow users to customize toolbar sticky (#1330)
* close #1329
2025-07-01 18:37:36 -07:00
Nariman Jelveh 485f9a6f14 Don't hide the toolbar on mobile and tablet (#1328) 2025-06-30 17:18:56 -07:00
Nariman Jelveh 9700488aff Merge pull request #1324 from HeyPuter/dynamic-toolbar
Dynamic toolbar
2025-06-30 16:53:35 -07:00
jelveh edf00a5fd4 Update style.css 2025-06-30 10:24:24 -07:00
jelveh 278bb29ee5 better coloring and delay 2025-06-30 07:01:16 -07:00
jelveh 0864be054c When a window is being dragged don't activate toolbar (duh!) 2025-06-29 19:36:03 -07:00
jelveh 40260a9fb2 full support for fullpage mode 2025-06-29 19:17:58 -07:00
jelveh ad68ddeacc make window snap animation appear faster 2025-06-29 17:36:58 -07:00
jelveh 54ae9c1ca9 the first time toolbar is shown, keep it open until user hovers over it at least once 2025-06-29 16:57:24 -07:00
jelveh b1de89e1ec Update tr.js 2025-06-29 16:03:41 -07:00
jelveh 3db99aa67b Puter will now support only one type of menubar, and that's the in-window type 2025-06-29 15:58:53 -07:00
jelveh 0895418f0c Improve the logic behind hiding the toolbar after clicks and other interactions 2025-06-29 15:18:20 -07:00
jelveh b0fdf1f63d Implement the basics of a dynamic toolbar
Dynamic toolbar will hide and show automatically depending on user actions and state of the app. This is to save screen real estate.
2025-06-29 14:21:40 -07:00
jelveh 657a615d9e Update AI.js 2025-06-28 23:28:31 -07:00
Nariman Jelveh 2ddd26b13d Merge pull request #1319 from Krisss46/fixing-arrow-key-behaviour
fix: arrow key navigation in Explorer (#1089)
2025-06-28 20:44:56 -07:00
Krisss46 5fd5017080 fix: arrow keys unresponsive when selecting items with offset center points 2025-06-29 03:05:17 +01:00
jelveh 9a847760bc Fix #1231 2025-06-28 12:38:39 -07:00
Nariman Jelveh a135c354fb Merge pull request #1318 from XiaochenCui/xiaochen/dev
dev: extension prefix update, doc helper & docs update
2025-06-28 11:29:24 -07:00
Krisss46 ae07a5e316 fix: arrow key navigation 2025-06-28 16:12:12 +01:00
Nariman Jelveh 9b9733c9c2 Merge pull request #1219 from rodrick-mpofu/feature/desktop-shortcut-link
feat: add desktop link shortcuts (refs #682)
2025-06-27 23:27:51 -07:00