Skip to content

feat(EL-826): add file field to ConfigurationFeature - #37

Merged
mariusz-peplinski merged 2 commits into
mainfrom
feat/EL-826-configuration-feature-file
Jun 29, 2026
Merged

feat(EL-826): add file field to ConfigurationFeature#37
mariusz-peplinski merged 2 commits into
mainfrom
feat/EL-826-configuration-feature-file

Conversation

@mariusz-peplinski

Copy link
Copy Markdown
Contributor

Summary

Adds support for reading the file uploaded to a File-type configurator feature (FeatureType.File, value 5).

  • New ConfigurationFeatureFile type — { url: string; name: string } — mirroring the configurator API's FileValue DTO.
  • New optional file?: ConfigurationFeatureFile field on ConfigurationFeature.
  • Re-exported ConfigurationFeatureFile from the package entrypoint.

The configurator API already returns this object on the feature when a file is present; the SDK type just didn't expose it. No runtime/behavioural change — type-only addition.

Why

Part of EL-826File feature type does not show file attachment component in Showroom v2. Showroom v2 needs the file field to render the download link + delete control for already-uploaded files, matching legacy Showroom v1.

Multi-repo

This is the first / prerequisite of two interdependent PRs:

  1. (this) Elfsquad/configurator — expose the file field. Merge + release first.
  2. Elfsquad/showroom — implement the File feature UI/upload/remove; will consume this field once released and the dependency is bumped.

Version bump is intentionally not included here — per repo convention versions are bumped in a separate release commit/PR.

Test impact

Type-only change; npm run build passes. No new tests.

@mariusz-peplinski
mariusz-peplinski force-pushed the feat/EL-826-configuration-feature-file branch from a2ab7ea to befeb2e Compare June 29, 2026 11:42
Adds a ConfigurationFeatureFile type ({ url, name }) and an optional
file?: ConfigurationFeatureFile field on ConfigurationFeature, mirroring
the configurator API's FileValue. This lets consumers (Showroom v2) read
the uploaded file for File-type features (FeatureType.File) to render a
download link, matching legacy Showroom v1 behaviour.
@mariusz-peplinski
mariusz-peplinski force-pushed the feat/EL-826-configuration-feature-file branch from befeb2e to cfd3e17 Compare June 29, 2026 11:56
@mariusz-peplinski
mariusz-peplinski marked this pull request as ready for review June 29, 2026 12:01
@mariusz-peplinski
mariusz-peplinski merged commit 84a1c6c into main Jun 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants