WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@akinsola-guardian
Copy link
Contributor

@akinsola-guardian akinsola-guardian commented Nov 13, 2025

What does this change?

  • This PR refactors the Cookie In the browser dropdown and adds it to the Registration page.
  • Reinstates eslint comments.

Images

Before After
Screenshot 2025-11-13 at 10 08 45 Screenshot 2025-11-13 at 10 06 58
Screenshot 2025-11-13 at 11 13 46 Screenshot 2025-11-13 at 11 08 29

@github-actions
Copy link

github-actions bot commented Nov 13, 2025

@akinsola-guardian akinsola-guardian marked this pull request as ready for review November 13, 2025 10:10
@akinsola-guardian akinsola-guardian requested a review from a team as a code owner November 13, 2025 10:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the "Cookies in the browser" dropdown component by extracting it into a reusable component and adding it to the Registration page. Additionally, it reinstates several eslint disable comments that were previously removed.

  • Extracts the cookies disclosure UI into a new CookiesInTheBrowser component
  • Adds the cookies disclosure component to the Registration page
  • Reinstates eslint comments for async middleware handling

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/server/lib/typedRoutes.ts Reinstates eslint comments for async middleware in rate-limited router methods
src/server/lib/middleware/index.ts Reinstates eslint comment for async middleware in request state
src/client/pages/SignIn.tsx Removes inline cookies disclosure markup and replaces with new component; removes unused CSS constant
src/client/pages/Registration.tsx Adds the new CookiesInTheBrowser component
src/client/components/CookiesInTheBrowser.tsx Creates new reusable component containing the cookies disclosure dropdown

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

rBangay
rBangay previously approved these changes Nov 13, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import { SUPPORT_EMAIL } from '@/shared/model/Configuration';
import { MinimalLayout } from '@/client/layouts/MinimalLayout';
import ThemedLink from '@/client/components/ThemedLink';
import { CookiesInTheBrowser } from '../components/CookiesInTheBrowser';
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use absolute import path '@/client/components/CookiesInTheBrowser' to maintain consistency with other imports in this file.

Suggested change
import { CookiesInTheBrowser } from '../components/CookiesInTheBrowser';
import { CookiesInTheBrowser } from '@/client/components/CookiesInTheBrowser';

Copilot uses AI. Check for mistakes.
import { MinimalLayout } from '@/client/layouts/MinimalLayout';

import { GatewayError } from '@/shared/model/Errors';
import { CookiesInTheBrowser } from '../components/CookiesInTheBrowser';
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use absolute import path '@/client/components/CookiesInTheBrowser' to maintain consistency with other imports in this file.

Suggested change
import { CookiesInTheBrowser } from '../components/CookiesInTheBrowser';
import { CookiesInTheBrowser } from '@/client/components/CookiesInTheBrowser';

Copilot uses AI. Check for mistakes.
import locations from '@/shared/lib/locations';
import { SUPPORT_EMAIL } from '@/shared/model/Configuration';
import { PasscodeErrors } from '@/shared/model/Errors';
import { CookiesInTheBrowser } from '../components/CookiesInTheBrowser';
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use absolute import path '@/client/components/CookiesInTheBrowser' to maintain consistency with other imports in this file.

Suggested change
import { CookiesInTheBrowser } from '../components/CookiesInTheBrowser';
import { CookiesInTheBrowser } from '@/client/components/CookiesInTheBrowser';

Copilot uses AI. Check for mistakes.
@akinsola-guardian akinsola-guardian merged commit a719f4e into main Nov 21, 2025
25 checks passed
@akinsola-guardian akinsola-guardian deleted the al/add-cookie-copy-to-registration branch November 21, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants