Commit 66548e3
authored
Merge #385: bounded plans + Explore + course aliasing + 2 audits + CI fixes (local-main → main)
## Summary by Sourcery
Harden authentication and content-write routes, improve cross-platform
layout and motion behavior, and polish core collaboration flows around
study groups, messaging, notes, library, Scholar, and onboarding.
New Features:
- Send notifications to note owners when their notes are starred.
- Notify study-group members when sessions are cancelled or rescheduled.
- Allow sharing Scholar papers into study groups as link resources from
the paper page.
- Add a mobile bottom navigation bar for authenticated users on phone
viewports.
Bug Fixes:
- Fix Scholar discovery and similar-papers queries that previously
returned empty lists due to invalid non-null filters.
- Ensure passkey (WebAuthn) login issues a proper session compatible
with step-up MFA checks, restoring access to admin-gated routes.
- Apply an Origin allowlist to WebAuthn and sheetLab routes to close
CSRF-related gaps.
- Prevent saver-mode preference changes from being ignored until the
next session refresh by syncing saved preferences back into the session
user.
- Restore achievement-unlock notifications in the bell by avoiding
self-notify suppression.
- Fix study-group list performance by batching per-group aggregates
instead of issuing many queries per group.
- Show error toasts when joining groups, following users, or starring
notes fail instead of silently appearing to succeed.
- Prevent invalid material and assignment IDs from being processed by
validating numeric IDs before archive/delete operations.
- Ensure study-group background image previews resolve the same URL as
the header image.
- Fix iOS Safari auto-zoom on form inputs by enforcing a minimum font
size on touch viewports.
- Make conversation lists and security-alerts settings show skeleton
loaders instead of bare loading text.
Enhancements:
- Introduce canonical spacing and chrome tokens and migrate key layouts
and sidebars to use them for consistent rhythm and sticky offsets across
pages.
- Standardize sticky offsets, split-panel heights, and safe-area
handling (e.g., AiBubble, messages split panel, sidebars) using navbar
height and dynamic viewport units for better mobile behavior.
- Honor the reduced-motion escape hatch via data-motion="keep" so
critical spinners can animate while other motion is suppressed.
- Add focus-trapped, accessible modals for group create/edit, note
conflict-compare, and destructive library actions, improving keyboard
and screen-reader behavior.
- Replace window.confirm flows for deleting shelves and bookmarks with
styled, focus-trapped confirmation dialogs.
- Refine feed, sidebar, skeleton, and settings spacing to reduce layout
shifts and align gaps to the shared spacing scale.
- Parallelize unread-count computations in messaging routes to avoid N+1
latency on large inboxes.
- Lazy-load the onboarding tour (react-joyride) so its bundle is fetched
only when a tour actually runs.
- Clear Scholar "saved" cache entries after toggling shelf state so the
Saved view can’t render stale lists.
- Align various authenticated pages (Hub AI, Study Groups,
Notifications, Playground) with breadcrumb-based nav for consistency.
Documentation:
- Extend the public release log with detailed wave-12.14–12.18 entries
documenting security, performance, UX, and audit follow-ups.
Tests:
- Update WebAuthn unit tests to assert session issuance via the
canonical helper and ensure sessions are not created on failed
authentication.
- Adjust study-group route tests to accommodate new batched aggregation
queries.
Chores:
- Remove unused design-v2 feature flags and associated network requests
to simplify config and reduce per-page flag fetches.209 files changed
Lines changed: 10018 additions & 4453 deletions
File tree
- .github/workflows
- backend
- prisma
- migrations
- 20260427000001_add_teacher_materials_tables
- 20260428000001_add_ai_suggestion
- 20260531000001_course_aliases
- scripts
- src
- core
- http
- lib
- email
- webauthn
- middleware
- modules
- achievements
- admin
- ai
- auth
- courses
- explore
- featureFlags
- feed
- gifs
- hashtags
- library
- materials
- messaging
- moderation
- notes
- notifications
- onboarding
- payments
- plagiarism
- provenance
- referrals
- reviews
- scholar
- sections
- sheetLab
- sheets
- studyGroups
- studyStatus
- upload
- users
- video
- webauthn
- test
- unit
- docs
- frontend/studyhub-app
- src
- components
- sidebar
- video
- lib
- mobile
- components
- pages
- pages
- admin/components
- ai
- auth
- explore
- feed
- library
- messages
- components
- notes
- notifications
- playground
- profile
- scholar
- __tests__
- integration
- settings
- components
- sheets
- lab
- upload
- viewer
- studyGroups
- teach
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
11 | 55 | | |
12 | 56 | | |
13 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
| 536 | + | |
536 | 537 | | |
537 | 538 | | |
538 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 71 | | |
77 | | - | |
78 | | - | |
| 72 | + | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 87 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | | - | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | | - | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
50 | | - | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
77 | | - | |
78 | | - | |
79 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
95 | 111 | | |
96 | 112 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
101 | 128 | | |
102 | 129 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
109 | 153 | | |
110 | 154 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | | - | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | | - | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
| 35 | + | |
31 | 36 | | |
0 commit comments