Skip to content

Conversation

@mcvinci
Copy link
Contributor

@mcvinci mcvinci commented Nov 14, 2025

This PR:

Tophatting

  1. In the ui-extensions repo, run yarn docs:point-of-sale 2024-10.
  2. In shopify-dev, run a server (dev server) and review the 2024-10 docs (descriptions for targets, APIs, and components) at https://shopify-dev.shop.dev/docs/api/pos-ui-extensions/2024-10

Known issues

  • Unable to create different descriptions on API and component index pages versus detailed API and component pages. For the time being, I've just added the long description that is intended for the details pages.
  • Some nested descriptions get duplicated, given the existing generated docs infrastructure. Hoping that we can resolve this as we continue the templated refs project work.

Focus for reviewers

I'm mainly looking for a gut-check on the following:

  • Do the descriptions convey the necessary context?
  • Are the descriptions positioned in the right place? (Typically, above interfaces and fields)
  • Are the changes scoped to descriptions only? Or have we accidentally updated / added types?

@mcvinci mcvinci changed the base branch from 2025-10 to 2024-10 November 14, 2025 07:34
@mcvinci mcvinci self-assigned this Nov 14, 2025
@mcvinci mcvinci added the #gsd:47443 Templated References https://vault.shopify.io/gsd/projects/47443 label Nov 14, 2025
linting

linting

linting

More description improvements

type errors

Remove event data files not needed in 2025-01 version and revert BaseInput/BaseIntent to original names

Remove new files that don't belong in 2025-01 version

More descriptions

Add descriptions to BaseInput and BaseIntent, fix TaxLine import error

FormattedTextField desc

Fix import path and remove deprecated warnings for 2024-10

- Fix CurrencyCode import path in session.ts (should be 4 levels up)
- Remove deprecation warnings from Spacing.ts (sizes.ts doesn't exist in 2024-10)

Remove new API features from cherry-pick - keep only description improvements

Removed NEW items that shouldn't be in 2024-10:
- bulkCartUpdate() method and CartUpdateInput type
- Cart.editable field
- LineItem.discountAllocations field
- LineItem.taxLines field
- Session.currency and Session.posVersion fields
- Removed CurrencyCode import from session.ts
- Removed @returns documentation for methods that return Promise<void>

Only keeping the improved descriptions for existing APIs, types, and methods.

Remove additional new fields from cart.ts for 2024-10

Removed NEW fields/types that shouldn't be in 2024-10:
- LineItem.attributedUserId field
- LineItem.components field
- LineItemComponent interface (entirely new)
- Discount.currency field

Only keeping description improvements for EXISTING fields in 2024-10.

Restore original Icon.ts - remove new deprecated types for 2024-10

The cherry-pick added NEW types that shouldn't be in 2024-10:
- DeprecatedIconName type (with deprecation notices for 2025-10 removal)
- DeprecatedIconSize type (with deprecation notices for 2025-10 removal)

In 2024-10, these icons are NOT deprecated yet. Restored the original
simple Icon.ts with just IconName and IconSize types.

Restore original Spacing.ts - remove new Spacing type for 2024-10

The cherry-pick added a NEW 'Spacing' type (numeric values 0.5, 1, 2, etc.)
that wasn't in 2024-10. This type doesn't exist in 2024-10.

Restored the original with only VerticalSpacing and HorizontalSpacing types.

Add proper descriptions for all Customer interface fields

Fixed incorrect description on Customer.id (was talking about selling plans)
and added descriptions for all fields:
- id: Customer identifier with common use cases
- email: Email address for communication
- firstName: Customer's first name
- lastName: Customer's last name
- note: Internal merchant notes about the customer

Improve Icon.ts field descriptions

Enhanced descriptions for IconProps fields:
- name: Added examples of icon types (cart, payment, search, etc.)
- size: Added clear explanation of each size option (minor, major, spot, caption, badge)

Add descriptions for IconName and IconSize types

Added comprehensive descriptions for:
- IconName: Describes the icon identifier with categorized examples (commerce operations, payment methods, navigation, actions, status indicators, system symbols)
- IconSize: Explains each size option (minor, major, spot, caption, badge) with specific use cases
@mcvinci mcvinci force-pushed the pos-ui-extensions-2024-10-api-prop-descriptions branch from 55e36ae to c3a0f6d Compare November 14, 2025 07:58
@mcvinci mcvinci marked this pull request as ready for review November 14, 2025 07:59
@github-actions
Copy link
Contributor

We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset directory. If the changes are user-facing and should cause a version bump, run yarn changeset to track your changes and include them in the next release CHANGELOG. If you are making simple updates to repo configuration, examples, or documentation, you do not need to add a changeset.

@mcvinci mcvinci changed the title [POS UI extensions]: Improved API, component, and prop descriptions for 2024-10 [POS UI extensions]: Improved target, API, and component descriptions for 2024-10 Nov 17, 2025
Copy link

@johndcollett johndcollett left a comment

Choose a reason for hiding this comment

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

structure looks good.

@mcvinci mcvinci merged commit beeb628 into 2024-10 Nov 25, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:47443 Templated References https://vault.shopify.io/gsd/projects/47443

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants