Settings linked to a second dashboard with its own tab bar and its own visual language. The admin sections are rendered in Settings now, under headings that say who they are for — You, Content, The site — and each has its own address, so People, AI models, Safety and Search are links. /admin redirects into Settings for anyone who bookmarked it. AdminPage takes a `section` prop and drops its tab row when embedded; it is loaded lazily, so it is not in a learner's download. Comments are gone: router, model, table and the half of the test file that covered them. They were a discussion thread nobody was obliged to answer, and feedback replaced them with a message addressed to whoever maintains the question. The table was empty, so nothing was lost — verified before dropping it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TqXevQJhxFrM7jJg82cgZN
43 lines
1.4 KiB
Python
43 lines
1.4 KiB
Python
from app.models.user import User
|
|
from app.models.pdf_document import PDFDocument
|
|
from app.models.section import Section
|
|
from app.models.quiz import Quiz
|
|
from app.models.question import Question
|
|
from app.models.attempt import QuizAttempt, AttemptAnswer
|
|
from app.models.ai_model_config import AIModelConfig
|
|
from app.models.favorite import Favorite
|
|
from app.models.user_note import UserNote
|
|
from app.models.lab_reference import LabReference, LabReferenceCardLink
|
|
from app.models.article import Article, QuestionArticleLink
|
|
from app.models.flashcard import FlashcardDeck, Flashcard, FlashcardDeckRating, FlashcardQuestionLink, FlashcardArticleLink
|
|
from app.models.question_category import QuestionCategory, QuestionCategoryLink
|
|
from app.models.collection import UserCollection, UserCollectionQuestion
|
|
|
|
__all__ = [
|
|
"User",
|
|
"PDFDocument",
|
|
"Section",
|
|
"Quiz",
|
|
"Question",
|
|
"QuizAttempt",
|
|
"AttemptAnswer",
|
|
"AIModelConfig",
|
|
"Favorite",
|
|
"UserNote",
|
|
"LabReference",
|
|
"LabReferenceCardLink",
|
|
"Article",
|
|
"QuestionArticleLink",
|
|
"FlashcardDeck",
|
|
"Flashcard",
|
|
"FlashcardDeckRating",
|
|
"FlashcardQuestionLink",
|
|
"FlashcardArticleLink",
|
|
"QuestionCategory",
|
|
"QuestionCategoryLink",
|
|
"UserCollection",
|
|
"UserCollectionQuestion",
|
|
]
|
|
|
|
from app.models.feedback import QuestionFeedback # noqa: F401
|
|
from app.models.invite import InviteCode # noqa: F401
|