Skip to content

Job Creation Flow: Navigation stuck after completion, premature validation, and incorrect "Back" redirect #156

@ntuan2502

Description

@ntuan2502

Summary

I found three main issues regarding the Job Creation UX:

  1. After completing a job (Save Draft or Publish), the "New Job" button in the navbar does not trigger a fresh creation flow.
  2. The "Job title" field shows a "Title is required" error immediately on page load before any interaction.
  3. The "Back to Jobs" link redirects to /dashboard instead of the correct /dashboard/jobs page.

Steps to reproduce

Issue 1: Navbar "New Job" button is stuck

  1. Navigate to /dashboard/jobs/new.
  2. Complete the flow by clicking "Save draft" or "Publish".
  3. While still on the success/finished state, click the "New Job" button on the top navbar.
  4. Observe that the page stays at the current state and does not return to Step 1 of a fresh job creation.

Issue 2: Premature Validation

  1. Open the "New Job" page (Step 1).
  2. Observe that the "Job title" field already displays the error message "Title is required" despite the form being pristine.

Issue 3: Incorrect Redirection

  1. On the "New Job" page, click the "Back to Jobs" button at the top left.
  2. Observe that the application redirects to /dashboard.

Expected behavior

  1. Clicking "New Job" in the navbar should always initiate a brand new creation cycle (resetting to Step 1), even if the user just finished creating a previous job.
  2. The "Title is required" error should only be triggered after the user interacts with the input (on blur) or attempts to proceed to the next step.
  3. The "Back to Jobs" button should redirect to the job listing page: /dashboard/jobs.

Actual behavior

  1. The "New Job" button does nothing because the URL /dashboard/jobs/new is already active. The user is forced to navigate to a different page first to "reset" the route.
  2. Validation is triggered on component mount, which is distracting and confusing for users.
  3. The "Back to Jobs" button sends the user to the main Dashboard home.

Version / commit

No response

Environment

No response

Logs / screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions