-
Notifications
You must be signed in to change notification settings - Fork 11
Add AI-generated flashcard study sets #781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9b115b3
refactor(workspaces): generalize item creation and editing
urjitc 1273ff2
feat(workspaces): add flashcard content and study state
urjitc c37aac1
feat(workspaces): add flashcard study viewer
urjitc 8e50444
refactor(workspaces): simplify flashcard study session
urjitc 88439ad
fix(chat): preserve continuation baseline on resume
urjitc da18a0a
fix(chat): harden agents recovery patch
urjitc 8c93536
fix(chat): harden recovery reconciliation
urjitc 3bdf874
fix(workspaces): enforce flashcard data invariants
urjitc 6868b00
feat(workspaces): polish flashcard study interactions
urjitc 890c3cb
fix(workspaces): harden AI creation flows
urjitc 4f9fb21
fix(workspaces): smooth flashcard transition handoff
urjitc a76c5a0
refactor(workspaces): clarify creation and study menus
urjitc 9811d56
perf(workspaces): lazy-load flashcard motion
urjitc 67b35af
style(workspaces): format flashcard review fixes
urjitc 958074c
feat(workspaces): expose scalable flashcard study reads
urjitc 100e41c
refactor(workspaces): make item views feature-owned
urjitc e9fe586
fix(workspaces): serialize flashcard progress writes
urjitc 3d9ba49
refactor(chat): trim unsupported recovery cases
urjitc 742b247
fix(workspaces): restore flashcard rating animation
urjitc 99e5c43
fix(workspaces): animate final flashcard feedback
urjitc cdb6e82
style(workspaces): simplify flashcard mode menu
urjitc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| patches/*.patch whitespace=-space-before-tab |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| CREATE TABLE "workspace_item_user_states" ( | ||
| "user_id" text NOT NULL, | ||
| "item_id" text NOT NULL, | ||
| "state" jsonb NOT NULL, | ||
| "updated_at" timestamp with time zone DEFAULT now() NOT NULL, | ||
| CONSTRAINT "workspace_item_user_states_user_id_item_id_pk" PRIMARY KEY("user_id","item_id") | ||
| ); | ||
| --> statement-breakpoint | ||
| ALTER TABLE "workspace_items" DROP CONSTRAINT "workspace_items_type_check";--> statement-breakpoint | ||
| ALTER TABLE "workspace_item_user_states" ADD CONSTRAINT "workspace_item_user_states_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint | ||
| ALTER TABLE "workspace_item_user_states" ADD CONSTRAINT "workspace_item_user_states_item_id_workspace_items_id_fk" FOREIGN KEY ("item_id") REFERENCES "public"."workspace_items"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint | ||
| CREATE INDEX "workspace_item_user_states_item_id_idx" ON "workspace_item_user_states" USING btree ("item_id");--> statement-breakpoint | ||
| ALTER TABLE "workspace_items" ADD CONSTRAINT "workspace_items_type_check" CHECK ("workspace_items"."type" in ('folder', 'document', 'flashcard', 'file')); | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Deleting workspace items scans the entire user-state table because the cascading foreign key uses
item_id, but the only index starts withuser_id. Add an index onworkspace_item_user_states(item_id)and declare the same index in the Drizzle schema.Prompt for AI agents