Address first round of feedback

- Flashcards: whole card flips on click (both sides), 3D turn, swipe-away on grading,
  streak chip and flame bursts, bigger cards on desktop, arrow keys for everything
- Review and browse keep the sidebar on desktop
- Quizzes: live practice score, partial-credit explanation, time limit for shared exams
- Class page: items grouped by type inside each folder
- Import: copyable, editable instructions for outside chatbots
- Assistant: reads notes and links to library items

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-11 18:30:07 -07:00
parent c59591ccb9
commit aed14cd04f
13 changed files with 769 additions and 216 deletions

View file

@ -1,5 +1,6 @@
import { memo, type ReactNode } from 'react';
import ReactMarkdown, { type Components } from 'react-markdown';
import { Link } from 'react-router';
import remarkGfm from 'remark-gfm';
import { cx } from '@/lib/util';
@ -11,11 +12,16 @@ export interface Citation {
}
const BASE: Components = {
a: ({ href, children }) => (
<a href={href} target={href?.startsWith('/') ? undefined : '_blank'} rel="noreferrer noopener">
{children}
</a>
),
a: ({ href, children }) =>
// Links to pages inside the app (the assistant uses these to point at quizzes, decks and notes)
// navigate without a reload; everything else opens in a new tab.
href && href.startsWith('/') && !href.startsWith('//') && !href.startsWith('/api/') && !href.startsWith('/media/') ? (
<Link to={href}>{children}</Link>
) : (
<a href={href} target="_blank" rel="noreferrer noopener">
{children}
</a>
),
table: ({ children }) => (
<div className="table-wrap">
<table>{children}</table>