Faq m#4
Open
osctoss wants to merge 67 commits into
Open
Conversation
…tivity feed
Chunk 7 — User management:
- UserProfilePage at /users/:id (name, username, email, role, QP, join date)
- UserListPage: confirm dialogs on restrict/role-change; usernames link to profile
Chunk 8 — Search & discovery:
- GlobalSearch overlay: press '/' to search FAQs + RTQs in real-time
- RTQPage: category dropdown filter wired to /api/rtq?category=
- FAQPage: sort dropdown (Most Upvoted / Newest / Oldest) wired to server
Chunk 9 — QP wire-up:
- Nav: live QP badge with scale+color animation on QP change
- QPContext: awardQP/deductQP now sync with server (optimistic + re-fetch)
- ProfilePage: paginated QP history (20/page with Prev/Next controls)
- qp.controller: getHistory returns { data, pagination } with page+limit params
Chunk 10 — Dashboard activity feed + charts:
- server/src/routes/dashboard.routes.js: new GET /dashboard/activity endpoint
Returns 20 most-recent RTQs/FAQs/Users/QP transactions + 7-day per-day counts
- MiniChart.jsx: SVG sparkline component (height-scaled bars per day)
- SeniorDashboard: 7-day sparklines for RTQ/FAQ/Users + activity feed panel
- StudentDashboard: same sparklines + activity feed
Also: CONTEXT.md updated (chunks 7-10 table, port 3001, new files)
…age model loading error
… sync in FAQ/RTQ controllers
…ies, fix sortDir parsing, fix dashboard status aggregation conflict
…ection and PippaQ premium styling
feat: integrate Sentence Transformer + Qdrant Cloud ANN, PippaQ premium branding, and auto-upvote engine
…quick link card from dashboards
Implement role constraints on RTQ and remove redundant notification cards
…dd database migration tool
…questions/answers
Few upgrades regarding the categories and Upvote functionalitites
…ntrollers, data models, and frontend pages for tracking and managing questions
resolved Conflicts
…ity FAQ conversion
…l, duplicate prevention, and bidirectional traceability references
…nverted to FAQ by the logged-in Senior
…eability, and Senior Personal History
…ard hover shadows, and premium rounded mark-as-read check buttons
…FAQ conversion requests - Rename UserListPage to Leaderboard with card-based rank display (Crown/Trophy for top 3) - Add block/unblock functionality for admin user management - Remove email change from profile edit (read-only after registration) - Add FAQ conversion request flow with approve/reject actions - Role status badges in dashboards, role guard component - Various UX improvements and bug fixes
Implement Controlled "Add to FAQ" Review Flow & Senior Personal History
…derator request conversion and Senior controlled Add to FAQ flows
… display accepted badge
…s, shift FAQ requests to FAQ page, fix service type errors, and enable Qdrant indexing on approve
feat: Implement controlled Senior FAQ workflow, dynamic dashboard badges, and moderator operations alignment
…m rules Public FAQ Mode: - FAQ page accessible without login (read-only for guests) - Login modal shown when non-auth users try to upvote - Browse FAQ links on login/signup pages - FAQ list/category/ranked endpoints made public on backend QP System: - 100 starting QP awarded on first account activation - QP < 50 auto-restricts user from asking questions - QP back above 50 auto-unrestricts with notification - Student reaching 500 QP notifies admins for Moderator promotion - Seniors excluded from promotion flow - Negative QP still auto-restricts (separate notification) QP History Page: - New dedicated /qp-history page with transaction ledger - Summary cards: Total Earned, Total Deducted, Net Change - Fully paginated, immutable (no edit/delete) - QP score in Nav is clickable → navigates to QP history - QP history nav link added Notifications: - Delete individual notifications (Trash2 icon on read notifications) - Delete all notifications option - QP earned/deducted notifications stored in QP history - New notification types: qp_earned, qp_deducted, promotion_request Dashboard UX: - Trending FAQs and Open Questions redesigned with category badges - Activity charts moved below FAQ/RTQ sections - Open questions use indigo hue for unread items - Amber pulse indicator for unread notifications Cleanup: - Removed QP history from ProfilePage - Replaced emojis with Lucide icons (AlertTriangle, Star, Search) - Rejected RTQs no longer show status change options
…t fixes, QP ledger, and nav/route adjustments
…d fix upvote click event propagation
…, role QP rules, and map branding header link
…card hover clipping
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.
No description provided.