Starring gives you a personal bookmark layer on top of your folder hierarchy. Any file or folder can be starred regardless of where it lives in the tree, and starred items are accessible from the Starred section in the Sidebar without navigating into the folder that contains them.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/Storx/llms.txt
Use this file to discover all available pages before exploring further.
How Starring Works
Starring is stored as theisStarred boolean column on the files table:
PATCH /api/files/[fileId]/star endpoint toggles isStarred — it reads the current value from the database and flips it, regardless of what the client sends in the body:
Starring from the Dashboard
The star action is available in the list viewFileList component via the ⋮ dropdown menu. Clicking Star or Unstar calls handleStarToggleWithRefresh in Dashboard, which delegates to handleStarToggle() in useFileOperations and then refreshes the file list:
The client sends
isStarred: !isCurrentlyStarred in the request body, but
the server ignores that value and always performs a toggle based on the current
database value of file.isStarred. The body field is present for reference
only and has no effect on the outcome.Star icon badge overlaid on their thumbnail or file-type icon — but the toggle action is only available in list view’s dropdown menu.
Viewing Starred Files
TheSidebar component contains a Starred navigation button (rendered with a Star icon from Lucide):
isStarred = true.
Request / Response
PATCH/api/files/{fileId}/star
Request body:
200 OK) — the full updated database record:
| Status | Body | Cause |
|---|---|---|
401 | { "error": "Unauthorized" } | Missing or mismatched session / body userId |
400 | { "error": "File id is required" } | fileId path param is empty |
404 | { "error": "File not found" } | No file with that ID belonging to the user |
500 | { "error": "Failed to mark the file as starred" } | Database error |