WebSorcery / testcase-generator

automates the process of generating test cases for cp. It takes input data, specified constraints, and test case conditions, and produces a set of test cases that exercise different paths and functions of the software application under test.
https://testcase-generator.vercel.app
MIT License
0 stars 6 forks source link

Oauth using Clerk #31

Closed singhcoder694 closed 8 months ago

singhcoder694 commented 8 months ago

Description

Used CLERK for Authentication of User.

Fixes #9

Type of change

Installed CLERK npm package and set up it using Documentation on Clerk for Page Router.

Please delete options that are not relevant.

Screenshots

Screenshot 2023-12-21 162002 Screenshot 2023-12-21 162011 Screenshot 2023-12-21 162026 Screenshot 2023-12-21 162048 Screenshot 2023-12-21 162054 Screenshot 2023-12-21 162101

Video

https://github.com/WebSorcery/testcase-generator/assets/114601400/4b312c8c-8af7-464e-a2c7-3ac34395967e

IMPORTANT I removed Contributor link from nav and provide link for signin and signup to preserve UI and Screen Behaviour, we can give contribute link in Footer as Footer is one of the most important thing for any website that can be build to enhance User Experiencs.

Checklist:

Summary by CodeRabbit

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
testcase-generator ❌ Failed (Inspect) Dec 23, 2023 5:18am
coderabbitai[bot] commented 8 months ago

Walkthrough

The recent updates integrate Clerk for OAuth-based login, enhancing authentication across the application. Specific routes are now protected, while others remain public. The user interface adapts to the user's sign-in status, and dedicated sign-in and sign-up pages are introduced, all styled consistently with the application's theme.

Changes

File Path Change Summary
middleware.js Introduced Clerk authentication middleware
pages/_app.js Added ClerkProvider for application-wide integration
pages/index.js Implemented user state handling and conditional UI
pages/sign-in/[[...index]].jsx Added sign-in page with Clerk component
pages/sign-up/[[...index]].jsx Added sign-up page with Clerk component
styles/Home.module.css Updated styles for navigation elements

Assessment against linked issues

Objective Addressed Explanation
Integrate OAuth Login using Clerk (#9)

Poem

In the web's vast burrow, a change took flight, OAuth wings with Clerk, now clasped tight. Sign in, sign up, a secure embrace, CodeRabbit hopped forward, a seamless interface. 🐇💻✨

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ?


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - You can directly reply to a review comment made by CodeRabbit. Example: - _I pushed a fix in commit ``._ - You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging `@coderabbitai` in a comment. Examples: - _@coderabbitai generate unit tests for this file_ - _@coderabbitai modularize this function_ - You can tag `@coderabbitai` in a PR comment and ask questions about the PR and the codebase. Use quoted replies to pass the context for follow-up questions. Examples: - _@coderabbitai render interesting statistics about this repository as a table_. - _@coderabbitai show all the `console.log` statements in this repository_. - _@coderabbitai generate unit tests for the `src/utils.ts` file_. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json` ### CodeRabbit Discord Community Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
ghost commented 8 months ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/WebSorcery/testcase-generator/31/b7ced83b/8e708dcfbdbf344282bd1259db2bf5519064943f.svg)](https://app.codesee.io/r/reviews?pr=31&src=https%3A%2F%2Fgithub.com%2FWebSorcery%2Ftestcase-generator) #### Legend CodeSee Map legend
ank1traj commented 8 months ago

Please remove package-lock.json file

gitstream-cm[bot] commented 8 months ago

This PR is missing a Jira ticket reference in the title or description. Please add a Jira ticket reference to the title or description of this PR.

ank1traj commented 8 months ago

Please have a look on the PR review

singhcoder694 commented 8 months ago

@ank1traj what is meaning of jira ticket, unable to understand and resolve...

ank1traj commented 8 months ago

Look into the review comments which I gave. Leave all the others.

singhcoder694 commented 8 months ago

You commented about package.json that I have removed already @ank1traj

singhcoder694 commented 8 months ago

Done @ank1traj

singhcoder694 commented 8 months ago

Should I start my work on Email issue as now I have email of user @ank1traj

ank1traj commented 8 months ago

Sure @singhcoder694. Thanks for the contributions

singhcoder694 commented 8 months ago

Sure @singhcoder694. Thanks for the contributions

My pleasure sir, I learnt alot by contributing to your project. You have really good issues to work upon.