#29 Add /admin/cycles/[id] Cycle-Scoped Admin Dashboard#39
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
…pilot/create-cycle-view-route
|
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Fixed in 02d4c25 — the duplicate |
|
@copilot Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server". Or maybe you meant to call this function rather than return it. |
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
Fixed in 3973829. The inline arrow function |
| }, | ||
| }; | ||
|
|
||
| const defaultSettings: Settings = settings ?? { |
There was a problem hiding this comment.
if the settings don't exist, don't show the tab
There was a problem hiding this comment.
Fixed in 60748b9 — the Settings tab (and its content) are now conditionally rendered only when settings !== null.
| </div> | ||
| </div> | ||
|
|
||
| {showSetActiveModal && ( |
There was a problem hiding this comment.
Don't have a set active button on this page
| )} | ||
|
|
||
| {/* Tabs */} | ||
| <Tabs defaultValue="applications"> |
There was a problem hiding this comment.
make this tab bar full width
| } | ||
|
|
||
| export default async function CyclePage({ params }: CyclePageProps) { | ||
| const supabase = await createClient(); |
| }); | ||
|
|
||
| revalidatePath('/admin'); | ||
| revalidatePath('/admin/cycles'); |
…ings, full-width tabs, hide settings tab if null, remove view button for active cycle Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
|
@copilot can you make each tab have equal spacing? Also can you not remove the green highlight on hover? |
…hlight Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
|
Deployment failed with the following error: Learn More: https://vercel.com/b-at-neus-projects?upgradeToPro=build-rate-limit |
|
Deployment failed with the following error: Learn More: https://vercel.com/b-at-neus-projects?upgradeToPro=build-rate-limit |
|
Deployment failed with the following error: Learn More: https://vercel.com/b-at-neus-projects?upgradeToPro=build-rate-limit |
|
@copilot get rid of the highlight on the tabs. I want to edit the hover on the table of cycles. Lets just get rid of the green highlight entirely |
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
|
@copilot remove the green highlight from the /admin/cycles page |
Co-authored-by: b-at-neu <144247685+b-at-neu@users.noreply.github.com>
getCycleByIdtolib/data/cycles.tsgetApplicationsWithNominationCountsByCycleIdandgetApplicationWithNominationsByCycleIdtolib/data/applications.tsgetNominationsByCycleIdtolib/data/nominations.tsgetEndorsementsByCycleIdtolib/data/endorsements.tsgetSettingsByCycleIdtolib/data/settings.ts@radix-ui/react-tabsand create shadcn Tabs componentreadOnlyprop toSettingsFormapp/admin/cycles/[id]/page.tsxserver componentapp/admin/cycles/[id]/cycle-dashboard.tsxclient componentapp/admin/cycles/[id]/endorsements-view.tsxgetApplicationDetailsas bound server action instead of inline closureflex-1onTabsTriggerrevalidatePath('/admin/cycles')fromsetActiveCycleactionbg-success/10) from cycles archive tableOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.