-
Notifications
You must be signed in to change notification settings - Fork 173
feat: add in-app notifications for doubt answers (#734) #745
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
12 commits
Select commit
Hold shift + click to select a range
85bc54a
feat: add in-app notification endpoint for doubt answers (#734)
anshul23102 92d46e7
🐛 fix: remove duplicate describe-block closer breaking TS/ESLint/tests
anshul23102 b028e48
fix: resolve pre-existing test suite and migration integrity failures
anshul23102 cf40edc
Merge remote-tracking branch 'origin/main' into feat/notifications
c7366a7
fix: restore accidentally deleted organizations schema tables
anshul23102 ce817a9
fix: resolve all CI failures blocking this PR (TypeScript, build, mig…
anshul23102 c4fc0bc
test: add coverage for the real notification-emit implementation
f970800
Merge origin/main into feat/notifications - resolve conflicts
anshul23102 d25a253
Fix TypeScript and ESLint issues in notifications
anshul23102 3e60149
Fix remaining :any callback parameters in transaction handlers
anshul23102 5030efa
Remove console statements from production code
anshul23102 0bd9035
Remove :any parameter annotations from test mocks
anshul23102 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
| CREATE TABLE "audit_logs" ( | ||
| "id" integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY (sequence name "audit_logs_id_seq" INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START WITH 1 CACHE 1), | ||
| "actorEmail" varchar(255) NOT NULL, | ||
| "targetEmail" varchar(255), | ||
| "action" varchar(100) NOT NULL, | ||
| "resourceType" varchar(50) NOT NULL, | ||
| "resourceId" varchar(255), | ||
| "metadata" text, | ||
| "createdAt" timestamp DEFAULT now() NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| CREATE TABLE "video_jobs" ( | ||
| "id" varchar(64) PRIMARY KEY NOT NULL, | ||
| "user_email" varchar(255) NOT NULL, | ||
| "status" varchar(20) DEFAULT 'queued' NOT NULL, | ||
| "progress" integer DEFAULT 0 NOT NULL, | ||
| "step" varchar(255), | ||
| "video_type" varchar(20), | ||
| "video_url" text, | ||
| "error" text, | ||
| "created_at" timestamp DEFAULT now() NOT NULL, | ||
| "updated_at" timestamp DEFAULT now() NOT NULL | ||
| ); | ||
| --> statement-breakpoint | ||
| ALTER TABLE "video_jobs" ADD CONSTRAINT "video_jobs_user_email_users_email_fk" FOREIGN KEY ("user_email") REFERENCES "public"."users"("email") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint | ||
| CREATE INDEX "audit_actor_idx" ON "audit_logs" USING btree ("actorEmail");--> statement-breakpoint | ||
| CREATE INDEX "audit_action_idx" ON "audit_logs" USING btree ("action");--> statement-breakpoint | ||
| CREATE INDEX "video_jobs_user_email_idx" ON "video_jobs" USING btree ("user_email");--> statement-breakpoint | ||
| CREATE INDEX "video_jobs_status_created_at_idx" ON "video_jobs" USING btree ("status","created_at"); | ||
Oops, something went wrong.
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.
🗄️ Data Integrity & Integration | 🔴 Critical | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: knoxiboy/DoubtDesk
Length of output: 160
🏁 Script executed:
Repository: knoxiboy/DoubtDesk
Length of output: 918
🏁 Script executed:
Repository: knoxiboy/DoubtDesk
Length of output: 4601
Add the missing organization schema migration
drizzle/0017_wild_klaw.sqlonly addsaudit_logsandvideo_jobs; none of thedrizzle/*.sqlmigrations createorganizations,organization_memberships, orclassrooms.organization_id.src/app/api/organizations/route.tsandsrc/app/api/rooms/route.tsalready depend on them, so a fresh deployment will hit missing-relation errors until this schema lands in a migration.🤖 Prompt for AI Agents