Conversation
|
The preview deployment for frontend-testownik-dev is ready. 🟢 Open Preview | Open Build Logs | Open Application Logs Last updated at: 2026-03-16 21:17:59 CET |
Contributor
There was a problem hiding this comment.
Pull request overview
Renames the maintainer field/variable to creator throughout the codebase, aligning the frontend naming with what appears to be an updated backend API field.
Changes:
- Renamed the
maintainerproperty tocreatorin theQuizMetadatainterface and all consuming components/pages - Updated all local variables and props referencing
maintainer(e.g.,isMaintainer→isCreator,isMaintainerAnonymous→isCreatorAnonymous) - Updated validation allow-lists, migration code, tests, and comments to use
creator
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/types/quiz.ts | Renamed maintainer → creator in QuizMetadata interface |
| src/lib/migration.ts | Updated migration output to use creator |
| src/lib/migration.spec.ts | Updated test assertion for creator |
| src/lib/legacy-guest-quiz-migration.spec.ts | Updated test fixture to use creator |
| src/lib/auth/permissions.ts | Updated comment text |
| src/components/quiz/share-quiz-dialog/share-quiz-dialog.tsx | Renamed state/props from maintainer to creator |
| src/components/quiz/share-quiz-dialog/access-list.tsx | Renamed props and template references |
| src/components/quiz/quiz-info-card.tsx | Updated display reference |
| src/components/quiz/quiz-action-buttons.tsx | Renamed isMaintainer → isCreator |
| src/components/quiz/hooks/use-external-image-approval.ts | Renamed isMaintainer → isCreator |
| src/components/quiz/helpers/quiz-validation.ts | Updated allowed keys list |
| src/components/quiz/helpers/legacy-quiz-validation.ts | Updated allowed keys list |
| src/app/quizzes/client.tsx | Updated filter reference |
| src/app/quiz/[quizId]/page.tsx | Updated metadata generation |
| src/app/quiz/[quizId]/opengraph-image.tsx | Updated OG image generation |
| src/app/(dashboard)/components/search-card.tsx | Renamed interface field and usage |
You can also share your feedback on Copilot code review. Take the survey.
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.
Rename
maintainer->creatorWaiting for: Solvro/backend-testownik#157