Skip to content

Commit 4f63474

Browse files
Version Packages (canary)
1 parent c22f0e8 commit 4f63474

6 files changed

Lines changed: 64 additions & 69 deletions

File tree

.changeset/eleven-bugs-deny.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/red-crews-move.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

.changeset/silent-pillows-sip.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/thin-things-repair.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

core/CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,68 @@
11
# Changelog
22

3+
## 1.4.0
4+
5+
### Minor Changes
6+
7+
- [#2709](https://github.com/bigcommerce/catalyst/pull/2709) [`3820a75`](https://github.com/bigcommerce/catalyst/commit/3820a754def724ddd335e7b36d5ac2633b6e23e2) Thanks [@jordanarldt](https://github.com/jordanarldt)! - Adds product review submission functionality to the product detail page via a modal form with validation for rating, title, review text, name, and email fields. Integrates with BigCommerce's GraphQL API using Conform and Zod for form validation and real-time feedback.
8+
9+
- [#2708](https://github.com/bigcommerce/catalyst/pull/2708) [`aa35bec`](https://github.com/bigcommerce/catalyst/commit/aa35bec2dd45c7a8280b2583e830deafe666277e) Thanks [@jordanarldt](https://github.com/jordanarldt)! - Adds OpenTelemetry instrumentation for Catalyst, enabling the collection of spans for Catalyst storefronts.
10+
11+
### Migration
12+
13+
Change is new code only, so just copy over `/core/instrumentation.ts` and `core/lib/otel/tracers.ts`.
14+
15+
- [#2711](https://github.com/bigcommerce/catalyst/pull/2711) [`fcd0836`](https://github.com/bigcommerce/catalyst/commit/fcd08369ed17e97619e98c2f71cf7c2fa8467906) Thanks [@jordanarldt](https://github.com/jordanarldt)! - Separate first and last name fields on user session object.
16+
17+
### Patch Changes
18+
19+
- [#2750](https://github.com/bigcommerce/catalyst/pull/2750) [`c22f0e8`](https://github.com/bigcommerce/catalyst/commit/c22f0e889e96d23a972fcd9a702ec137bdd3a800) Thanks [@jorgemoya](https://github.com/jorgemoya)! - Improved login error handling to display a custom error message when BigCommerce indicates a password reset is required, instead of showing a generic error message.
20+
21+
## What's Fixed
22+
23+
When attempting to log in with an account that requires a password reset, users now see an informative error message: "Password reset required. Please check your email for instructions to reset your password."
24+
25+
**Before**: Generic "something went wrong" error message
26+
**After**: Clear error message explaining the password reset requirement
27+
28+
## Migration
29+
30+
### Step 1: Update Translation Files
31+
32+
Add this translation key to your locale files (e.g., `core/messages/en.json`):
33+
34+
```json
35+
{
36+
"Auth": {
37+
"Login": {
38+
"passwordResetRequired": "Password reset required. Please check your email for instructions to reset your password."
39+
}
40+
}
41+
}
42+
```
43+
44+
Repeat for all supported locales if you maintain custom translations.
45+
46+
### Step 2: Update Login Server Action
47+
48+
In your login server action (e.g., `core/app/[locale]/(default)/(auth)/login/_actions/login.ts`):
49+
50+
Add the password reset error handling block:
51+
52+
```typescript
53+
if (
54+
error instanceof AuthError &&
55+
error.type === 'CallbackRouteError' &&
56+
error.cause &&
57+
error.cause.err instanceof BigCommerceGQLError &&
58+
error.cause.err.message.includes('Reset password"')
59+
) {
60+
return submission.reply({ formErrors: [t('passwordResetRequired')] });
61+
}
62+
```
63+
64+
This should be placed in your error handling, before the generic "Invalid credentials" check.
65+
366
## 1.3.5
467

568
### Patch Changes

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@bigcommerce/catalyst-core",
33
"description": "BigCommerce Catalyst is a Next.js starter kit for building headless BigCommerce storefronts.",
4-
"version": "1.3.5",
4+
"version": "1.4.0",
55
"private": true,
66
"scripts": {
77
"dev": "npm run generate && next dev",

0 commit comments

Comments
 (0)