Skip to content

feat(event-display): load zipped version of event data in a generic way (#441) - #1040

Open
DashratRajpurohit wants to merge 3 commits into
HSF:mainfrom
DashratRajpurohit:feat/441-generic-zip-event-data
Open

DashratRajpurohit wants to merge 3 commits into
HSF:mainfrom
DashratRajpurohit:feat/441-generic-zip-event-data

Conversation

@DashratRajpurohit

Copy link
Copy Markdown
Contributor

Description

This PR resolves Issue #441 by centralizing and making zip event loading generic across phoenix-event-display and phoenix-ui-components.

Key Changes

  1. Centralized Zip Event Extraction: Added loadEventsFromZip helper in packages/phoenix-event-display/src/helpers/zip.ts that handles reading .zip files containing JSON or JiveXML event data.
  2. Exposed parseZipEventData on EventDisplay: Added EventDisplay.parseZipEventData(zipData) to simplify parsing zip event archives from both files and ArrayBuffers.
  3. URL & IO Dialog Refactoring:
    • Refactored URLOptionsManager.handleZipFileEvents and IOOptionsDialogComponent.handleZipEventDataInput to use parseZipEventData.
    • Added automatic extension detection (.zip / .phnxzip) in URLOptionsManager when type parameter is omitted in URL query params.
  4. Unit Tests: Added comprehensive unit test coverage in packages/phoenix-event-display/src/tests/helpers/zip.test.ts.

Closes #441

@DashratRajpurohit
DashratRajpurohit force-pushed the feat/441-generic-zip-event-data branch from 51336cd to a7c4a27 Compare September 27, 2026 13:53
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: http://phoenix-pr-1040.surge.sh

Built from cf8ae6e.

This branch was successfully deployed

1 active deployment
pull-request — cf8ae6ec Deployed Sep 27, 2026 by github-actions[bot]
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.

Be able to load zipped version of event/geometry files in a generic way

1 participant