-
Notifications
You must be signed in to change notification settings - Fork 3
[refactor] 선택한 지원서 양식 id 새로고침해도 저장된다 #902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0e06a52
84a6c3d
58d0520
f6853b3
bf1993a
8e716ff
2f08ca5
1409ec9
104f735
fa9e0d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,13 +14,16 @@ import { updateApplication } from '@/apis/application/updateApplication'; | |
| import CustomTextArea from '@/components/common/CustomTextArea/CustomTextArea'; | ||
| import { APPLICATION_FORM } from '@/constants/APPLICATION_FORM'; | ||
| import { useMutation, useQueryClient } from '@tanstack/react-query'; | ||
| import { useNavigate } from 'react-router-dom'; | ||
| import { useNavigate, useParams } from 'react-router-dom'; | ||
| import Button from '@/components/common/Button/Button'; | ||
|
|
||
| const ApplicationEditTab = () => { | ||
| const navigate = useNavigate(); | ||
| const queryClient = useQueryClient(); | ||
| const { clubId, applicationFormId: formId } = useAdminClubContext(); | ||
| const { applicationFormId: formId } = useParams<{ | ||
| applicationFormId?: string; | ||
| }>(); | ||
| const { clubId } = useAdminClubContext(); | ||
|
|
||
|
Comment on lines
17
to
27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# First, let's examine ApplicationEditTab.tsx around the mentioned lines
fd -e tsx -e ts "ApplicationEditTab.tsx" --type f | head -5Repository: Moadong/moadong Length of output: 134 🏁 Script executed: #!/bin/bash
# Find and examine the ApplicationEditTab file with line numbers
find . -name "ApplicationEditTab.tsx" -type f 2>/dev/nullRepository: Moadong/moadong Length of output: 136 🏁 Script executed: #!/bin/bash
# Search more broadly for the file
rg "ApplicationEditTab" -l --type typescriptRepository: Moadong/moadong Length of output: 93 🏁 Script executed: #!/bin/bash
# List files in frontend pages
ls -la frontend/src/pages/AdminPage/tabs/ApplicationEditTab/ 2>/dev/null || echo "Path not found, searching..."
find frontend -name "*ApplicationEditTab*" -type f 2>/dev/null || echo "Not in frontend, searching project root"
find . -name "*ApplicationEditTab*" -type f 2>/dev/null | head -10Repository: Moadong/moadong Length of output: 644 🏁 Script executed: #!/bin/bash
# Read the ApplicationEditTab.tsx file with line numbers
cat -n frontend/src/pages/AdminPage/tabs/ApplicationEditTab/ApplicationEditTab.tsxRepository: Moadong/moadong Length of output: 14342 🏁 Script executed: #!/bin/bash
# Find the useGetApplication hook
find . -name "*useGetApplication*" -type f 2>/dev/nullRepository: Moadong/moadong Length of output: 186 🏁 Script executed: #!/bin/bash
# Read the useGetApplication hook
cat -n frontend/src/hooks/queries/application/useGetApplication.tsRepository: Moadong/moadong Length of output: 603 🏁 Script executed: #!/bin/bash
# Search for ApplicantDetailPage
find . -name "*ApplicantDetailPage*" -type f 2>/dev/nullRepository: Moadong/moadong Length of output: 252 🏁 Script executed: #!/bin/bash
# Read ApplicantDetailPage.tsx and search for useGetApplication usage
rg -n "useGetApplication" frontend/src/pages/AdminPage/tabs/ApplicantsTab/ApplicantDetailPage/ApplicantDetailPage.tsx -A 3 -B 3Repository: Moadong/moadong Length of output: 762 🏁 Script executed: #!/bin/bash
# Search for all useGetApplication calls in the codebase
rg "useGetApplication\(" -A 1 frontend/src --type ts --type tsxRepository: Moadong/moadong Length of output: 86 🏁 Script executed: #!/bin/bash
# Search for all useGetApplication calls in the codebase
rg "useGetApplication\(" -A 1 frontend/srcRepository: Moadong/moadong Length of output: 764 🏁 Script executed: #!/bin/bash
# Check ApplicationFormPage for context
rg -n "useGetApplication" frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx -B 5 -A 2Repository: Moadong/moadong Length of output: 797 🏁 Script executed: #!/bin/bash
# Search for AdminRoutes to see if there's a create route without applicationFormId
find . -name "*AdminRoute*" -o -name "*admin*route*" | grep -i routeRepository: Moadong/moadong Length of output: 105 🏁 Script executed: #!/bin/bash
# Read AdminRoutes to check route definitions
cat -n frontend/src/pages/AdminPage/AdminRoutes.tsxRepository: Moadong/moadong Length of output: 2257 🏁 Script executed: #!/bin/bash
# Search for mentions of application creation routes or formId defaults
rg "application.*create" frontend/src/pages/AdminPage -i -B 2 -A 2 | head -30Repository: Moadong/moadong Length of output: 1448 Based on my verification, I can now provide the rewritten review comment. The original review is correct and well-founded: Pass ApplicationEditTab currently uses Though the current - } = useGetApplication(clubId ?? undefined, formId ?? '');
+ } = useGetApplication(clubId ?? undefined, formId);When a create route (without
🤖 Prompt for AI Agents |
||
| const { | ||
| data: existingFormData, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.