Skip to content

feat(auth): password change #226

Merged
michalges merged 8 commits into
mainfrom
feat/password-change-and-reset
Jul 13, 2026
Merged

feat(auth): password change #226
michalges merged 8 commits into
mainfrom
feat/password-change-and-reset

Conversation

@Konzum59

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 12, 2026 14:58
@Konzum59
Konzum59 requested a review from kguzek as a code owner January 12, 2026 14:58

Copilot AI left a comment

Copy link
Copy Markdown

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 implements a password change feature for authenticated users, adding a new password change form, API integration, validation schema, and UI navigation. While the title mentions "reset," only the password change functionality is implemented in this PR.

Changes:

  • Added password change feature with form validation (minimum 8 characters, passwords must match, new password must differ from old)
  • Integrated new API endpoint for password changes with error handling
  • Added navigation menu item and dedicated page for password changes
  • Modified backend logging to use warnings instead of errors for validation failures

Reviewed changes

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

Show a summary per file
File Description
src/features/password-change/schemas/change-password-schema.ts Defines validation schema with password matching and difference checks
src/features/password-change/index.ts Feature module exports for components, API, and schemas
src/features/password-change/components/change-password-form.tsx React form component with error handling and toast notifications
src/features/password-change/api/change-password.ts API integration function for password change endpoint
src/features/backend/utils/handle-response.ts Modified to log validation errors as warnings instead of errors
src/components/presentation/navbar.tsx Added "Change Password" menu item to user dropdown
src/app/(private)/change-password/page.tsx New page component for password change functionality

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

Comment thread src/features/password-change/schemas/change-password-schema.ts Outdated
Comment thread src/features/password-change/components/change-password-form.tsx Outdated
Comment thread src/features/password-change/api/change-password.ts Outdated
Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/features/password-change/components/change-password-form.tsx Outdated
Comment thread src/features/password-change/schemas/change-password-schema.ts Outdated
Comment thread src/features/password-change/components/change-password-form.tsx Outdated
@kguzek kguzek changed the title Feat/password change and reset feat(auth): password change and reset Feb 16, 2026
@kguzek kguzek linked an issue Feb 16, 2026 that may be closed by this pull request
kguzek
kguzek previously requested changes Feb 22, 2026

@kguzek kguzek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

brakuje implementacji opcji 'zapomniałem hasła' w formularzu zalogowania

przeczytaj też komentarze od copilota, wiszą od dawna a niektóre uwagi dość trafne są

Comment thread src/features/backend/utils/handle-response.ts
Comment thread src/app/(private)/change-password/page.tsx Outdated
Comment thread src/features/password-change/components/change-password-form.tsx Outdated
Comment thread src/features/password-change/components/change-password-form.tsx Outdated
Comment thread src/features/password-change/api/change-password.ts Outdated
Comment thread src/features/password-change/index.ts Outdated
Comment thread src/features/password-change/api/change-password.ts Outdated
Comment thread src/features/password-change/api/change-password.ts Outdated
@kguzek
kguzek force-pushed the feat/password-change-and-reset branch from 4d293c6 to 720a346 Compare February 22, 2026 20:02
Copilot AI review requested due to automatic review settings March 25, 2026 19:58
@kguzek
kguzek force-pushed the feat/password-change-and-reset branch from 720a346 to e2e1cce Compare March 25, 2026 19:58

Copilot AI left a comment

Copy link
Copy Markdown

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 7 out of 7 changed files in this pull request and generated 2 comments.


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

Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/features/password-change/index.ts Outdated
@Konzum59
Konzum59 requested a review from michalges April 23, 2026 17:27
@kguzek

kguzek commented Apr 24, 2026

Copy link
Copy Markdown
Member

@Konzum59 zrebasuj też brancha:)

@michalges michalges left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Jeśli będziesz robił "Zapomniałem hasła" w osobnej pr'ce to zrób issue od razu

Comment thread src/features/password-change/components/change-password-form.tsx Outdated
Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/app/(private)/change-password/page.tsx Outdated
Copilot AI review requested due to automatic review settings May 11, 2026 14:39
@Konzum59 Konzum59 changed the title feat(auth): password change and reset feat(auth): password change May 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

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 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread src/features/password-change/schemas/change-password-schema.ts
Comment thread src/features/password-change/components/change-password-form.tsx Outdated
Comment thread src/app/(private)/change-password/page.tsx
Copilot AI review requested due to automatic review settings July 13, 2026 18:25
@michalges
michalges force-pushed the feat/password-change-and-reset branch from e588891 to 604af96 Compare July 13, 2026 18:25

Copilot AI left a comment

Copy link
Copy Markdown

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 10 out of 10 changed files in this pull request and generated 4 comments.

Comment thread src/components/inputs/password-input.tsx
Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/features/password-change/components/change-password-form.tsx
Copilot AI review requested due to automatic review settings July 13, 2026 18:38

Copilot AI left a comment

Copy link
Copy Markdown

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 10 out of 10 changed files in this pull request and generated 4 comments.

Comment thread src/features/password-change/api/change-password.ts
Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/features/password-change/components/change-password-form.tsx
Comment thread src/components/presentation/navbar.tsx
Copilot AI review requested due to automatic review settings July 13, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@michalges
michalges self-requested a review July 13, 2026 19:08
@michalges
michalges dismissed kguzek’s stale review July 13, 2026 19:09

naprawione to juz, czemu ten github sie tak pruje

@michalges
michalges merged commit 48859c4 into main Jul 13, 2026
7 checks passed
@michalges
michalges deleted the feat/password-change-and-reset branch July 13, 2026 19:09
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.

dodać możliwość resetowania hasła

4 participants