Skip to content

Conversation

@pan93412
Copy link
Member

@pan93412 pan93412 commented Jan 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 5, 2026 14:03
@vercel
Copy link

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
admin-frontend Ready Ready Preview, Comment Jan 5, 2026 2:08pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for rendering and managing a visibleScope field on Questions in the frontend. The visibleScope field allows questions to be restricted to users with specific scopes, or visible to everyone when left empty.

Key changes:

  • Added visibleScope field to GraphQL queries and fragments for Questions
  • Implemented form input field for creating and updating question visibility scope
  • Created a dedicated card component to display visibility scope on question detail pages
  • Added visibility scope column to the questions data table

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
gql/graphql.ts Added QuestionVisibleScopeCardFragment type and updated query types to include visibleScope field
gql/gql.ts Updated GraphQL document definitions to include visibleScope in queries and fragments
app/(admin)/(question-management)/questions/_components/update.tsx Added logic to handle visibleScope updates with clearVisibleScope flag for empty values
app/(admin)/(question-management)/questions/_components/update-form.tsx Added optional visibleScope field to form schema and interface
app/(admin)/(question-management)/questions/_components/query.ts Added visibleScope to QuestionById and QuestionsTable queries
app/(admin)/(question-management)/questions/_components/data-table-columns.tsx Added visibleScope column to questions table with badge display
app/(admin)/(question-management)/questions/_components/create.tsx Added visibleScope handling in question creation logic
app/(admin)/(question-management)/questions/[id]/_components/visible-scope-card.tsx New component to display question visibility scope as a card
app/(admin)/(question-management)/questions/[id]/_components/question-cards.tsx Integrated VisibleScopeCard into question detail layout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@pan93412 pan93412 merged commit c32c814 into main Jan 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant