Skip to content

feat: job edit#4907

Merged
capJavert merged 3 commits intomainfrom
job-edit
Sep 23, 2025
Merged

feat: job edit#4907
capJavert merged 3 commits intomainfrom
job-edit

Conversation

@capJavert
Copy link
Copy Markdown
Contributor

@capJavert capJavert commented Sep 18, 2025

Changes

  • edit controls
  • add react-hook-form and zod for form validation and management
    • also add server side helper to handle api zod errors to form
  • add new modal to handle editing of opportunity content
  • standard gql mutations and types
  • adjusted some component to support hint/error states in form

API PR dailydotdev/daily-api#3143

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Preview domain

https://job-edit.preview.app.daily.dev

@capJavert capJavert self-assigned this Sep 18, 2025
@vercel
Copy link
Copy Markdown

vercel Bot commented Sep 18, 2025

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

Project Deployment Preview Updated (UTC)
daily-webapp Ready Ready Preview Sep 23, 2025 6:57am
1 Skipped Deployment
Project Deployment Preview Updated (UTC)
storybook Ignored Ignored Sep 23, 2025 6:57am

Copy link
Copy Markdown
Contributor

@rebelchris rebelchris left a comment

Choose a reason for hiding this comment

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

Nice the zod-hookform is really neat!

import z from 'zod';
import { labels } from '../labels';

export const opportunityEditInfoSchema = z.object({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, @dailydotdev/common when 😆

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

gathering is close, we could hack it there...

Comment on lines +305 to +311
const canEdit = useMemo(() => {
if (!user) {
return false;
}

return !!opportunity?.recruiters?.some((item) => item.id === user.id);
}, [opportunity, user]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need another layer I think.
If draft && !recruiter redirect away.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah but for now I just kept it open until I connect step two and draft state this week 👍

@capJavert capJavert merged commit 23df82e into main Sep 23, 2025
10 checks passed
@capJavert capJavert deleted the job-edit branch September 23, 2025 07:54
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.

2 participants