Repository navigation
Conversation
…ith-procedures Add admin user management API and hooks
…-and-configuration chore: scaffold job sourcing workspace
…eatures Add admin user management and verification UI
…-utility Add date picker prop getter adapter for press events
…allbacks Refine picker type modeling and platform guards
…ng-adapter refactor(jobs): consolidate Jooble adapter under jobs workspace
…-adapter-structure refactor: migrate job sourcing package to jobs workspace
…es-mn7qu6 chore: tighten typings across the app
…d-tests feat(jobs): implement ingestion CLI and tests
…xt-and-routers Add TRPC context and admin service test coverage
- Fix unused parameter warnings in Next.js config - Update package dependencies and configurations - Refactor admin users hooks and improve test utilities - Add new TalentMap export for discover-map feature - Update various test files and configurations across packages
- Resolved conflicts in CLI test and implementation files - Integrated new job ingestion CLI functionality - Added comprehensive test coverage for CLI argument parsing - Updated adapter factory pattern to accept environment variables - Enhanced CLI with support for pagination, filters, and metadata
…-package fix(api): resolve typecheck issues in tests and utils
- Add jest-dom types declaration for UI package tests - Fix MutationWithOptionalOrg type to include isPending property - Fix createAdminUsersHooks type constraints - Fix NativeScreenContainer ScrollView ref type - Fix Next.js app AuthProviderProps import and router type - Fix API test PostgrestSingleResponse mock structure - Fix tRPC context test FetchCreateContextFnOptions structure
- Resolved conflicts in API test files using HEAD version with proper helper functions - Resolved conflicts in test utils files using HEAD version with complete type definitions - Maintained all typecheck fixes from the UI package branch
- Fix MutationWithOptionalOrg type to include isPending property - Fix createAdminUsersHooks type constraints and simplify API - Fix NativeScreenContainer ScrollView ref type - Fix Next.js app AuthProviderProps import and router type - Fix API test FetchCreateContextFnOptions structure - Add jest-dom types declaration for UI package tests - Fix ImagePicker component prop destructuring - Fix LoadingOverlay test aria-hidden boolean type
- Add missing FetchCreateContextFnOptions import - Fix ImagePicker component prop destructuring - Remove unused router variable from Next.js app
- Use fixes from second PR branch for all conflicted files - Maintain all typecheck fixes from both PR branches - Complete merge of both typecheck fix branches
…s-and-utilities Add tests for Supabase-backed hooks
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| if (!user?.id) return | ||
| if (!onboardingProfile) return | ||
|
|
||
| const skills = buildSkillsArray(onboardingProfile.user?.skills_summary ?? null) | ||
| const certifications = onboardingProfile.privateProfile?.certifications ?? [] | ||
| const hourlyRate = onboardingProfile.privateProfile?.hourly_rate_cents ?? null | ||
|
|
||
| const nextValues: FormValues = { | ||
| phone: onboardingProfile.privateProfile?.phone ?? '', | ||
| about: profile?.about ?? onboardingProfile.user?.bio ?? '', | ||
| location: onboardingProfile.privateProfile?.location ?? '', | ||
| openToTravel: onboardingProfile.privateProfile?.open_to_travel ?? false, | ||
| travelMileage: onboardingProfile.privateProfile?.travel_mileage?.toString() ?? '', | ||
| usResident: onboardingProfile.privateProfile?.us_resident ?? false, | ||
| usPassport: onboardingProfile.privateProfile?.us_passport ?? false, | ||
| driversLicense: onboardingProfile.privateProfile?.drivers_license_class ?? DRIVER_LICENSE_OPTIONS[0]?.value ?? 'none', | ||
| veteran: onboardingProfile.privateProfile?.veteran ?? false, | ||
| yearsExperience: onboardingProfile.user?.years_of_experience != null | ||
| ? String(onboardingProfile.user.years_of_experience) | ||
| : '', | ||
| jobTitle: onboardingProfile.user?.headline ?? '', | ||
| primarySkills: skills, | ||
| educationLevel: onboardingProfile.privateProfile?.education_level ?? '', | ||
| certifications: certifications.join('\n'), | ||
| contactMethods: onboardingProfile.privateProfile?.contact_prefs ?? [], | ||
| phoneOs: onboardingProfile.privateProfile?.phone_os ?? '', | ||
| availability: onboardingProfile.privateProfile?.availability ?? [], | ||
| hourlyRate: hourlyRate != null ? (hourlyRate / 100).toFixed(hourlyRate % 100 === 0 ? 0 : 2) : '', | ||
| } | ||
|
|
||
| const nextValues = buildFormValues({ onboardingProfile, profile }) | ||
| form.reset(nextValues) | ||
| setCompletedSteps(determineInitialCompletion(nextValues)) | ||
| }, [form, onboardingProfile, profile?.about, user?.id]) | ||
| setCompletedSteps(determineCompletedSteps(nextValues)) | ||
| }, [form, onboardingProfile, profile, user?.id]) |
There was a problem hiding this comment.
[P1] Prevent onboarding form reset on unrelated profile changes
The effect that loads onboarding defaults now depends on the entire profile object rather than only the fields used in the form. React Query returns a new profile object whenever any field is refreshed (e.g. the periodic profile refetch or an unrelated update elsewhere), so this effect will run again and call form.reset(nextValues) even while the user is editing, discarding unsaved changes. Previously the dependency list was limited to profile?.about, which avoided these spurious resets. Consider narrowing the dependency or skipping the reset when the form is dirty.
Useful? React with 👍 / 👎.
… a chip row on phones (#991) Pointer bump to Scaffald/ui@bf5979e, which brings Scaffald/ui#46 (the glass-era deletions), #47 (Chip tones, the bordered SegmentedControl, TextLink) and #48 (the quiet panel and strip). Then the app-side half: - The five hand-rolled "See all" links — three sizes, two colours, one with a chevron and one a bordered Button — become `TextLink` (#981). - The count tags are the accent Chip: the drawer's Notifications row and its collapsed count, and the account sheet's badge, which was a teal `borderRadius: 999` pill (#978). - On a phone the section strip is one row of chips scrolling sideways, the chosen one tinted, instead of folder tabs wrapping onto two rows at 390 (#980). Desktop keeps the folder tabs. Ratchet ceilings drop: drawer fontSize 15 → 13 and borderRadius 7 → 6, dashboard fontSize 34 → 33, search fontSize 3 → 2. Closes #978, closes #980, closes #981. Refs #977, #982, #979. Co-authored-by: Claude Fable 5.1 <[email protected]>
Summary
Testing
https://chatgpt.com/codex/tasks/task_b_68d41c155a508331ad79ffd665f84d63