Skip to content

Conversation

@malessani
Copy link
Contributor

Closes #51

What I did

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • Make sure to add/update documentation regarding your changes.
  • You are NOT deprecating/removing a feature.

@malessani malessani requested a review from gciotola May 8, 2025 13:01
@malessani malessani self-assigned this May 8, 2025
@malessani malessani requested a review from Copilot May 8, 2025 13:01
@malessani malessani added the enhancement New feature or request label May 8, 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

This PR adds support for replacing the :token placeholder in organization configuration URLs and updates the linting setup by replacing ESLint with Biome.

  • Adds a new token property to configuration and enhances placeholder replacement logic
  • Updates type definitions and refactors import/quote styles in multiple files
  • Updates and adds test cases and benchmarks, and revises project configuration (package.json and biome.json)

Reviewed Changes

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

Show a summary per file
File Description
packages/organization-config/src/testHelper.ts Introduces default and override configurations with URL templates
packages/organization-config/src/schema/types.ts Updates type definitions formatting and semicolon usage
packages/organization-config/src/schema/generate.js Refactors import syntax and quote styles in schema generation
packages/organization-config/src/index.ts Adjusts exports from getMfeConfig modules
packages/organization-config/src/getMfeConfig.ts Adds support for a new token parameter in placeholder replacement
packages/organization-config/src/getMfeConfig.test.ts Updates tests to verify token replacement and other URL placeholders
packages/organization-config/src/getMfeConfig.benchmark.ts Benchmarks merging utilities with updated configuration
packages/organization-config/package.json Replaces ESLint with Biome and bumps dependency versions
packages/organization-config/biome.json Adds the new Biome configuration file

},
{
value: "US",
label: "Unites States of America",
Copy link

Copilot AI May 8, 2025

Choose a reason for hiding this comment

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

The label for the US appears to be misspelled ('Unites' should be 'United'). Please correct it for clarity.

Suggested change
label: "Unites States of America",
label: "United States of America",

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +31
export type Url = string
/**
* The international 2-letter country code as defined by the ISO 3166-1 standard.
*/
export type CountryCode = string;
export type CountryCode = string
/**
* List of billing countries by identifier and label.
*/
export type StateCountry = {
value: CountryCode;
value: CountryCode
/**
* Name of the country.
*/
label: string;
}[];
label: string
}[]
/**
* List of shipping countries by identifier and label.
*/
export type StateCountry1 = {
value: CountryCode;
value: CountryCode
/**
* Name of the country.
*/
label: string;
}[];
label: string
Copy link

Copilot AI May 8, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using consistent semicolon usage (or omit them consistently) in type declarations to match the rest of the codebase's style.

Copilot uses AI. Check for mistakes.
@malessani malessani force-pushed the feat/add-support-to-order-token branch from 57e3391 to 968b424 Compare May 8, 2025 13:15
@malessani malessani force-pushed the feat/add-support-to-order-token branch from 968b424 to af00be8 Compare May 8, 2025 13:19
@malessani malessani merged commit ecc1fa1 into main May 8, 2025
1 check passed
@malessani malessani deleted the feat/add-support-to-order-token branch July 29, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support to token parameter on organization-config

3 participants