Commit Graph
128 Commits
Author SHA1 Message Date
Timothy Jaeryang Baek 0c64e5d596 chore: format 2026-11-03 17:36:03 +09:00
Timothy Jaeryang Baek d99ec1c02c refac 2026-11-02 08:48:51 +09:00
G30 a3801c4bd5 fix(a11y): 25 fields, switches and buttons with no name, or only a placeholder, have names (#33471) 2026-11-01 09:07:16 +09:00
Timothy Jaeryang Baek 64796faceb chore: i18n 2026-10-31 17:40:38 +09:00
Timothy Jaeryang Baek f62bd78fa0 refac 2026-10-30 18:08:02 +09:00
Timothy Jaeryang Baek 30d7a93de5 refac 2026-10-30 17:50:22 +09:00
Timothy Jaeryang Baek 9d1b4ef362 refac 2026-10-30 16:01:47 +09:00
Timothy Jaeryang Baek 5c4fb61d86 refac 2026-10-30 07:15:50 +09:00
Timothy Jaeryang Baek 7618df3f53 refac 2026-10-30 07:08:28 +09:00
G30 db146f9459 fix: a refused sharing change is undone in the Access dialog (#33209)
* fix: a refused sharing change is undone in the Access dialog

* fix: a refused sharing change in the model editor shows the server's message
2026-10-26 17:31:30 +09:00
Classic298 0a568f6a81 fix: knowledge base files stay on "Uploading" instead of switching to "Processing" (#32982)
* fix: knowledge base files stay on "Uploading" instead of switching to "Processing"

A file added to a knowledge base is uploaded in a moment, and the long wait after that is the text extraction, which the file list still called "Uploading". Nothing updated on its own either, so the only way to find out whether a file had moved on or finished was to leave the knowledge base and come back. The file now switches to "Processing" as soon as it has reached the server, and the list keeps itself current until the file is ready, so slow text extraction no longer looks like a stuck upload. Adding a folder or a web page goes through a different flow and is not touched here.

* refac: inline the processing status update for knowledge base uploads

Moves the status update straight into the upload call with no change in behaviour.

* refac: drop a stray blank line and comment from the upload handler

Removes a blank line and a comment the previous follow-up added, with no change in behaviour.
2026-10-25 08:11:35 +09:00
Classic298 0c684208bb fix: files selected together for a knowledge base only appear one at a time (#32992)
* fix: files selected together for a knowledge base only appear one at a time

Selecting or dropping several files into a knowledge base showed a row for the first file only. The others got no row at all until the one before them had finished processing, which with slow text extraction can be many minutes per file, so they looked lost. Every selected file now shows up as "Uploading" straight away, in the order they will be uploaded, and keeps its row until it has been added to the knowledge base. Each file still waits for the previous one to finish processing, as before.

* refac: give the upload list a type

The list of files waiting to upload now carries the same type as the rows it holds.
2026-10-25 07:23:46 +09:00
Classic298 ac12b04aad fix: access button shows while sharing is not allowed (#32979)
The Access button in the model, prompt, tool, knowledge, skill and note editors, the Access entry in their list menus and the Access button in folder settings showed to users without the matching sharing permission. The dialog then had nothing they could change. The button and the menu entry now only show to users who may share that kind of item, and admins see them as before.

Refs #32830
2026-10-23 10:58:17 +09:00
G30 d907b61816 fix: dropping several folders on a knowledge base uploads all of them (#32653) 2026-10-21 02:34:03 +09:00
G30 08f6023427 fix: a collaborator saving a shared knowledge base's name or description keeps its sharing (#32450) 2026-10-15 13:58:49 +04:00
Timothy Jaeryang Baek 1045d74c75 refac 2026-10-14 15:20:25 +04:00
Timothy Jaeryang Baek 206bf97235 refac 2026-10-09 19:01:08 +04:00
Timothy Jaeryang Baek bea1b468b4 refac 2026-10-09 18:54:13 +04:00
Timothy Jaeryang Baek c783208a35 refac 2026-10-09 17:25:58 +04:00
Timothy Jaeryang Baek 33dd7dd224 refac 2026-10-09 16:17:11 +04:00
G30 4b61b86a83 fix: apply the knowledge File content filter on the first click (#30211) 2026-09-21 11:30:42 -04:00
G30 af9ef1dcbc fix: hide the group picker from users who may not share with groups (#30189) 2026-09-19 15:34:33 -05:00
Timothy Jaeryang Baek 6786ae1797 refac 2026-09-13 20:00:29 -04:00
Classic298 ca8f151a12 fix: show which file and why knowledge directory sync failed (#29507)
Syncing a knowledge base from a local directory only ever showed a
generic "Error accessing directory" toast when a per-file read
failed, and production builds strip console.error, so nothing else
recorded the cause either. On Windows this hides a real Chromium bug
where files with very long absolute paths throw a NotFoundError from
the File System Access API, leaving no way to tell which file failed
or why.

Both per-file read paths (the directory picker and drag-and-drop) now
wrap read failures with the file's relative path and the underlying
browser error before they reach the toast, so the message actually
names the file and the reason. Reuses the existing translated toast
text instead of adding a new i18n key, so the fix doesn't orphan
existing translations of that string.
2026-09-12 18:55:31 -04:00
Classic298 188fc83a79 fix: surface files the browser cannot read during a knowledge base directory sync (#29135)
* fix: surface files the browser cannot read during a knowledge base directory sync

Syncing a local folder into a knowledge base could fail with nothing but "Error accessing directory": no failing file name, no network request, no server log, and no console output either, because production builds strip console.error. On Windows this happens once the absolute path of a file passes the platform limit, at which point the browser refuses to open a file it just listed.

The directory scan now handles that per file. It names the first failing path and how many files are affected, and stops before anything is uploaded. Stopping is the point: a file missing from the manifest is treated as deleted by the sync, so continuing would remove the knowledge base copy of a file that still exists on disk.

Dragging a folder in hit the same failure and reported nothing at all, and the Firefox picker path returned its promise without awaiting it, so a rejection escaped the error handler and surfaced only as an unhandled rejection. Both report through the existing handler now, and production builds keep console.error so the underlying exception stays visible.

* fix: narrow the change to the silent drag-and-drop folder failure

Dropping a folder onto a knowledge base did nothing at all when the browser refused to open one of the files inside it: the rejection escaped the async drop listener, so the user got no toast, no upload and no clue why. The listener now routes that failure through the same error handler the directory picker already uses, so one path and one message cover both ways of adding a folder.

The rest of the branch is reverted. Dropping `console.error` from the esbuild `pure` list un-stripped 597 call sites across 103 files from every production bundle, which is a repo-wide logging policy change that needs its own argument. The picker-side collect-and-count machinery only reworded a toast the existing catch already showed, and the Firefox `return await` fix is a different bug in a different path.
2026-08-31 00:45:26 -04:00
Timothy Jaeryang Baek 09163ccc73 refac 2026-08-31 00:06:05 -04:00
Timothy Jaeryang Baek 21366fa1b1 refac 2026-08-25 14:19:58 -04:00
Timothy Jaeryang Baek 20f35d157b refac 2026-08-25 14:14:13 -04:00
Timothy Jaeryang Baek a914868e3c refac 2026-08-24 17:25:33 -04:00
Timothy Jaeryang Baek 33dff414e8 refac 2026-08-19 16:35:49 -07:00
Timothy Jaeryang Baek d4461bd6f3 refac 2026-08-10 18:52:18 -06:00
Timothy Jaeryang Baek 8fbfd14a8b refac 2026-08-10 01:38:32 -06:00
Timothy Jaeryang Baek 810378c0b8 refac 2026-07-27 19:39:36 -04:00
Timothy Jaeryang Baek 1bf05ebc7d refac 2026-07-17 06:06:23 -04:00
Timothy Jaeryang Baek 343eb1d659 refac 2026-07-15 04:52:06 -04:00
Timothy Jaeryang Baek aedb6bef4e refac 2026-07-14 04:15:20 -04:00
Timothy Jaeryang Baek 34813573fa refac 2026-07-14 01:34:41 -04:00
Timothy Jaeryang Baek f1584b5a37 refac 2026-07-14 00:48:40 -04:00
Timothy Jaeryang Baek 2ed8934f5b refac 2026-07-01 02:05:14 -05:00
Timothy Jaeryang Baek 46c1d6591b refac 2026-06-29 01:41:43 -05:00
Timothy Jaeryang Baek 15c7e37438 refac 2026-06-23 23:13:32 +02:00
Timothy Jaeryang Baek fc9c2ea191 refac 2026-06-17 00:17:14 +02:00
Timothy Jaeryang Baek de2360ac07 refac 2026-06-01 14:38:54 -07:00
Timothy Jaeryang Baek 6fce92aa12 chore: format 2026-06-01 13:56:55 -07:00
Timothy Jaeryang Baek ad9f2eeb15 refac 2026-06-01 11:34:46 -07:00
G30 1010fd3142 fix(knowledge): remove premature drag-and-drop upload toast (#25484) 2026-06-01 11:09:58 -07:00
Timothy Jaeryang Baek 84659035f0 refac 2026-05-28 17:28:14 -05:00
Timothy Jaeryang Baek 591e0aafa1 refac 2026-05-28 17:24:33 -05:00
Timothy Jaeryang Baek 1527eb6e01 refac 2026-05-20 01:46:59 +04:00
Timothy Jaeryang Baek 8f2d346e10 refac 2026-05-20 01:39:22 +04:00