added a new collection called documents that contains only letters, files and documents #22
Open
Ajay-AJ7899 wants to merge 1 commit intoRhysSullivan:mainfrom
Open
added a new collection called documents that contains only letters, files and documents #22Ajay-AJ7899 wants to merge 1 commit intoRhysSullivan:mainfrom
Ajay-AJ7899 wants to merge 1 commit intoRhysSullivan:mainfrom
Conversation
…les where type === document like the letters and written documents also updated
|
@Ajay-AJ7899 is attempting to deploy a commit to the Rhys's Projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this PR, the backend and UI were extended to support a new “documents” mode alongside the existing people‑based browsing. The shared
FileItemtype incache.tsnow includes an optionaltypefield so items can be labelled as documents, or other file kinds. In the workerindex.ts, helper constants and functions were introduced to recognize document‑like objects (by extension or name keywords), and the/api/all-filesand/api/filesresponses were updated to propagate thistypeand classify each file accordingly. A new POST endpoint,/api/build-documents-index, was added to scan the R2 bucket for document‑type files and write a dedicatedindexes/documents-index.jsoncontaining only those entries. On the frontend,celebrity-combobox.tsxwas generalized withplaceholderandallLabelprops plus adaptive empty‑state text so it can be reused for documents as well as people. Finally,file-browser.tsxgained asearchMode(People/Documents), a mode selector, a virtual “Documents” collection in the dropdown, a deriveddocumentsListwired into the combobox, and updated collection filtering logic that treats"documents"as a virtual collection showing only items wheretype === "document".