Skip to content

Fix/graphql enum case sensitivity#3685

Closed
fasiho7 wants to merge 2 commits intoOWASP:mainfrom
fasiho7:fix/graphql-enum-case-sensitivity
Closed

Fix/graphql enum case sensitivity#3685
fasiho7 wants to merge 2 commits intoOWASP:mainfrom
fasiho7:fix/graphql-enum-case-sensitivity

Conversation

@fasiho7
Copy link

@fasiho7 fasiho7 commented Jan 30, 2026

STOP AND READ BEFORE SUBMITTING! REMOVE THIS PARAGRAPH BEFORE OPENING THE PR

Thank you for your interest in contributing to OWASP Nest!

Before starting any work, all external contributors must first be assigned to an issue in the repository.
This is a mandatory step in the OWASP Nest workflow and ensures that effort is coordinated, approved, and tracked properly.

Exception: OWASP leaders are not required to follow this rule —- just make sure your username is included in the exception list.

If you were not assigned to the issue you are trying to resolve, stop right now and do NOT create this PR.
Unassigned pull requests are automatically closed by our workflows — please don't waste your time.

If you want to be assigned on any available issue, comment on it and wait for confirmation from the maintainers or project leads.

Proposed change

Resolves #(put the issue number here)

Add the PR description here.

Checklist

  • Required: I followed the contributing workflow
  • Required: I verified that my code works as intended and resolves the issue as described
  • Required: I ran make check-test locally: all warnings addressed, tests passed
  • I used AI for code, documentation, tests, or communication related to this PR

- Fix GraphQL enum case sensitivity issue
- Convert lowercase level values to uppercase
- Match backend ProjectLevel enum expectations
- Resolves project level filtering bug
Resolves OWASP#3599

- Update grid layout classes to use mobile-first approach
- Add responsive breakpoints: sm:, md:, lg:, xl:
- Mobile: 1 column, Tablet: 2 columns, Desktop: 2-3 columns
- Improve spacing with responsive gap values
- Add col-span-full for proper empty state layout
- Prevent overflow and layout breaking on mobile devices

Result:
✅ Fully responsive layout across all screen sizes
✅ No overflow or layout breaking on mobile devices
✅ Improved user experience on smaller screens
@github-actions
Copy link

PR validation failed: No linked issue and no valid closing issue reference in PR description

@github-actions github-actions bot closed this Jan 30, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 30, 2026

Caution

Review failed

The pull request is closed.

Summary by CodeRabbit

  • Improvements
    • Enhanced metrics grid layout with improved responsiveness across different screen sizes and devices
    • Fixed "No metrics found" message alignment within the grid structure

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

The metrics dashboard page component was updated with three main changes: project-level filter values were converted to uppercase string literals, the metrics grid layout was restructured to be responsive with defined breakpoints across different screen sizes, and the "No metrics found" message container was styled to span the full grid column.

Changes

Cohort / File(s) Summary
Filter Configuration
frontend/src/app/projects/dashboard/metrics/page.tsx
Project level filter values changed from lowercase to uppercase: incubator, lab, production, and flagship.
Layout & Styling
frontend/src/app/projects/dashboard/metrics/page.tsx
Metrics grid updated from single-column to responsive multi-column layout with breakpoints (sm/md/lg/xl) and adjusted gaps; "No metrics found" container now uses col-span-full class.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested labels

frontend

Suggested reviewers

  • arkid15r
  • kasya
  • ahmedxgouda
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant