The more prompts are created, the harder it gets for users to browse created prompts for editing.
"My Prompts" provides users with a view on only those prompts they have created.
My Prompts is only visible for authenticated users. next.js middleware ensures that requests of unauthenticated users are redirected to /auth
The PromptRepository introduces first features that allows faceted search or filtering capabilities. With that, additional features like "filter by category" or "filter by sdlc phase" can be implemented at a later stage.
Related Issue
Resolves #3
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
[x] PromptCollection.test.tsx to verify faceted search
[x] TopNav.test.tsx to verify link toggling for authenticated/guest user
Checklist:
Before submitting your pull request, please review the following checklist:
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Description
The more prompts are created, the harder it gets for users to browse created prompts for editing. "My Prompts" provides users with a view on only those prompts they have created.
My Prompts is only visible for authenticated users. next.js middleware ensures that requests of unauthenticated users are redirected to /auth
The PromptRepository introduces first features that allows faceted search or filtering capabilities. With that, additional features like "filter by category" or "filter by sdlc phase" can be implemented at a later stage.
Related Issue
Resolves #3
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist:
Before submitting your pull request, please review the following checklist:
Additional context