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.
This pull request includes significant changes to the
src/lib
andsrc/routes
directories to update the data structures and enhance functionality for handling sessions and discussions. The most important changes include modifying the data structures for sessions, individual discussions, and group discussions, as well as adding new functions and endpoints to handle these changes.Changes to data structures:
src/lib/types/IndividualDiscussion.ts
: Addedgoal
,subQuestions
, andresourcesTexts
fields toFirestoreIndividualDiscussion
andIndividualDiscussion
interfaces. UpdatedconvertFirestoreIndividualDiscussion
to include these new fields. [1] [2] [3]src/lib/types/groupDiscussion.ts
: AddedgroupName
field toFirestoreGroupDiscussion
andGroupDiscussion
interfaces. UpdatedconvertFirestoreGroupDiscussion
to include this new field. [1] [2] [3]src/lib/types/session.ts
: Addedstage
,resourceIds
, andgroups
fields toFirestoreSession
andSession
interfaces. UpdatedconvertFirestoreSession
to include these new fields. [1] [2] [3]Enhancements to functionality:
src/routes/session/[id]/participant/+page.server.ts
: Added new actionsstartIndividualStage
andsendConversation
to handle the start of the individual stage and sending conversations, respectively. (src/routes/session/[id]/participant/+page.server.tsR71-R156)src/routes/session/[id]/participant/+page.svelte
: Updated the component to handle the new data structure for groups and participants. Removed the QR code functionality for group leaders. (src/routes/session/[id]/participant/+page.svelteL19-R18, src/routes/session/[id]/participant/+page.svelteL137-R147)Refactoring and cleanup:
src/lib/server/llm.ts
: Refactored theDocument
interface to usename
andtext
fields instead oftitle
andcontent
. Updated thechatWithLLMByDocs
function accordingly. [1] [2] [3] [4]src/lib/types/speech.ts
: Removed theFirestoreSpeech
andSpeech
interfaces along with theconvertFirestoreSpeech
function.src/routes/session/[id]/+page.svelte
: Removed theLink
icon import and related conditional rendering for resource types. (src/routes/session/[id]/+page.svelteL11, src/routes/session/[id]/+page.svelteL216-R217)New utility function:
src/lib/server/parse.ts
: Added a placeholder functionparsePdf2Text
to parse PDF files to text.