Skip to content

"Create Project" Option Remains Selected in Project Dropdown After Use #25

@csrl23

Description

@csrl23

Description

The project dropdown menu is retaining "Create Project" as the selected option after a user clicks it, instead of reverting to the default placeholder text "Projects". This creates a confusing user experience as it makes an action item appear as a selectable project option. The dropdown should either clear its selection or show the newly created project after the creation process, rather than keeping "Create Project" as the selected value.

Reproduction

Steps to Reproduce:

  1. Log in to the GuardQL dashboard
  2. Navigate to the dashboard page
  3. Click on the project dropdown menu
  4. Select "Create Project" from the dropdown
  5. Complete project creation process
  6. Observe that "Create Project" remains as the selected option in the dropdown

Expected Behavior:

  • After creating a project, the dropdown should either:
    - Show the newly created project as selected, or
    - Return to its default state showing placeholder text

Actual Behavior:

  • "Create Project" remains selected in the dropdown
  • The action item is being treated as a selectable option

System information

System:
OS: macOS 15.3.1
CPU: (10) arm64 Apple M4
Memory: 171.34 MB / 32.00 GB
Shell: 5.9 - /bin/zsh

Binaries:
Node: 23.4.0 - /opt/homebrew/bin/node
npm: 10.9.2 - /opt/homebrew/bin/npm

Browsers:
Chrome: 131.0.6778.140
Safari: 18.3

npmPackages:
@apollo/server: ^4.11.3 => 4.11.3

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions