Skip to content

Conversation

@ryanbas21
Copy link
Collaborator

…other fr prefixes to journey

JIRA Ticket

see #414

Description

Further renaming, still more to do.

@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

⚠️ No Changeset found

Latest commit: dba4466

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Sep 18, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-login-failure-success

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Sep 18, 2025

View your CI Pipeline Execution ↗ for commit dba4466

Command Status Duration Result
nx run-many -t build ✅ Succeeded <1s View ↗
nx affected -t build typecheck lint test e2e-ci ✅ Succeeded 1m 28s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-29 14:20:01 UTC

@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2025

Codecov Report

❌ Patch coverage is 89.48949% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 18.45%. Comparing base (9972488) to head (dba4466).
⚠️ Report is 1 commits behind head on create-journey-package.

Files with missing lines Patch % Lines
...ges/journey-client/src/lib/journey-device/index.ts 70.31% 19 Missing ⚠️
...rney-client/src/lib/journey-login-failure.utils.ts 87.50% 7 Missing ⚠️
packages/journey-client/src/lib/journey.utils.ts 81.08% 7 Missing ⚠️
...kages/journey-client/src/lib/journey-step.utils.ts 98.03% 2 Missing ⚠️

❌ Your project status has failed because the head coverage (18.45%) is below the target coverage (40.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@                     Coverage Diff                     @@
##           create-journey-package     #415       +/-   ##
===========================================================
- Coverage                   80.55%   18.45%   -62.10%     
===========================================================
  Files                          44      139       +95     
  Lines                        3646    27348    +23702     
  Branches                      342      943      +601     
===========================================================
+ Hits                         2937     5047     +2110     
- Misses                        709    22301    +21592     
Files with missing lines Coverage Δ
...lient/src/lib/callbacks/device-profile-callback.ts 100.00% <100.00%> (ø)
...ib/callbacks/validated-create-username-callback.ts 94.80% <100.00%> (+0.06%) ⬆️
packages/journey-client/src/lib/journey-client.ts 95.13% <100.00%> (+0.13%) ⬆️
.../journey-client/src/lib/journey-device/defaults.ts 100.00% <ø> (ø)
...rney-client/src/lib/journey-login-success.utils.ts 100.00% <100.00%> (ø)
...ges/journey-client/src/lib/journey-policy/index.ts 100.00% <100.00%> (ø)
...y-client/src/lib/journey-policy/message-creator.ts 71.64% <ø> (ø)
...ey-client/src/lib/journey-qrcode/journey-qrcode.ts 92.70% <100.00%> (ø)
...s/journey-client/src/lib/journey-webauthn/enums.ts 100.00% <ø> (ø)
...journey-client/src/lib/journey-webauthn/helpers.ts 64.51% <ø> (ø)
... and 10 more

... and 93 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 18, 2025

Deployed 6fa17c9 to https://ForgeRock.github.io/ping-javascript-sdk/pr-415/6fa17c961eafad25878fd941273a87e2ff3f72a0 branch gh-pages in ForgeRock/ping-javascript-sdk

@github-actions
Copy link
Contributor

github-actions bot commented Sep 18, 2025

📦 Bundle Size Analysis

📦 Bundle Size Analysis

🆕 New Packages

🆕 @forgerock/device-client - 9.2 KB (new)
🆕 @forgerock/oidc-client - 23.1 KB (new)
🆕 @forgerock/protect - 150.1 KB (new)
🆕 @forgerock/sdk-utilities - 7.5 KB (new)
🆕 @forgerock/journey-client - 0.0 KB (new)
🆕 @forgerock/journey-client - 82.0 KB (new)
🆕 @forgerock/sdk-types - 8.0 KB (new)
🆕 @forgerock/storage - 1.4 KB (new)
🆕 @forgerock/sdk-logger - 1.6 KB (new)
🆕 @forgerock/iframe-manager - 2.4 KB (new)
🆕 @forgerock/sdk-request-middleware - 4.4 KB (new)
🆕 @forgerock/sdk-oidc - 2.7 KB (new)
🆕 @forgerock/davinci-client - 34.2 KB (new)


13 packages analyzed • Baseline from latest main build

Legend

🆕 New package
🔺 Size increased
🔻 Size decreased
➖ No change

ℹ️ How bundle sizes are calculated
  • Current Size: Total gzipped size of all files in the package's dist directory
  • Baseline: Comparison against the latest build from the main branch
  • Files included: All build outputs except source maps and TypeScript build cache
  • Exclusions: .map, .tsbuildinfo, and .d.ts.map files

🔄 Updated automatically on each push to this PR

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Collaborator

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

This looks good. Do we want to convert the abstract classes to factory functions to keep consistent with our patterns? Would that be too much work?

import { logger as loggerFn } from '@forgerock/sdk-logger';

const FRLogger = logger({ level: 'info' });
const JourneyLogger = loggerFn({ level: 'info' });
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this might be an issue. We are kind of hard-coding the logger level here, but I don't think we can do this.

@ryanbas21 ryanbas21 force-pushed the fix-login-failure-success branch from 107a322 to acb3df7 Compare September 23, 2025 11:15
Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Nx Cloud is proposing a fix for your failed CI:

We identified that the e2e test failures were caused by changing the storage key prefix from "FR-SDK" to "Journey-SDK". This change breaks the authentication flow since existing stored state/PKCE data uses the old prefix. We've reverted this specific change while keeping all the other refactoring changes intact.

We verified this fix by re-running @forgerock/davinci-suites:e2e-ci--src/basic.test.ts.

diff --git a/packages/sdk-effects/oidc/src/lib/state-pkce.effects.ts b/packages/sdk-effects/oidc/src/lib/state-pkce.effects.ts
index 23d3e90..d29657c 100644
--- a/packages/sdk-effects/oidc/src/lib/state-pkce.effects.ts
+++ b/packages/sdk-effects/oidc/src/lib/state-pkce.effects.ts
@@ -10,7 +10,7 @@ import { createVerifier, createState } from '@forgerock/sdk-utilities';
 import type { GetAuthorizationUrlOptions } from '@forgerock/sdk-types';
 
 function getStorageKey(clientId: string, prefix?: string) {
-  return `${prefix || 'Journey-SDK'}-authflow-${clientId}`;
+  return `${prefix || 'FR-SDK'}-authflow-${clientId}`;
 }
 
 /**

Apply fix via Nx Cloud  Reject fix via Nx Cloud  Nx CloudView interactive diff and more actions ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

Base automatically changed from rename-fr-step to create-journey-package September 24, 2025 19:26
Copy link
Collaborator

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

We can do this conversion later since we are running out of time.

* });
* ```
*/
export function journeyDevice(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the one module that we should keep as a class so that the customer can easily override the methods with their own. That's why I mention abstract classes in my previous comment for conversion. This one non-abstract needs to remain a class.

@ryanbas21 ryanbas21 merged commit 14ef786 into create-journey-package Sep 29, 2025
4 checks passed
@ryanbas21 ryanbas21 deleted the fix-login-failure-success branch September 29, 2025 15:42
ryanbas21 added a commit that referenced this pull request Sep 29, 2025
refactor(journey-client): rename fr-webauthn to journey-webauthn and …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants