Skip to content

Feature/panoramax#74

Open
ofr1tz wants to merge 5 commits intodevelopfrom
feature/panoramax
Open

Feature/panoramax#74
ofr1tz wants to merge 5 commits intodevelopfrom
feature/panoramax

Conversation

@ofr1tz
Copy link
Contributor

@ofr1tz ofr1tz commented Feb 23, 2026

Depends on mapswipe/mapswipe-backend#236

Changes

This introduces the possibility to create View Streets projects and tutorials with Panoramax as the image provider. Managers can choose to use either the federated Panoramax metacatalog, or a specific Panoramax instance (by providing the API url).

  • Adds an image provider input form
  • Adds a Panoramax image preview component to the tutorial scenario preview
  • Also: Fix to use default View Streets custom options

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • build works
  • eslint issues
  • typescript issues
  • codegen errors
  • console.log meant for debugging
  • typos
  • unwanted comments
  • conflict markers

@ofr1tz ofr1tz marked this pull request as ready for review February 24, 2026 17:42
@frozenhelium frozenhelium self-requested a review March 6, 2026 07:58
@frozenhelium frozenhelium self-assigned this Mar 6, 2026
Copy link
Contributor

@frozenhelium frozenhelium left a comment

Choose a reason for hiding this comment

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

Let's send the Enum value from the backend (main/graphql/enums.py) and use that instead of creating a separate enum on the client side. We can then receive and use it in the EnumContext. We should add custom panoramax option to StreetImageProviderNameEnum and only add url field to the custom option.

To summarize, let's change following in the backend

  • In StreetImageProvider
    • Add PANORAMAX_CUSTOM option
    • Add pydantic validation to the StreetImageProvider.url
  • Add StreetImageProviderNameEnum to ENUM_TO_STRAWBERRY_ENUMS (main/graphql/enum)

… support

- Expose StreetImageProviderNameEnum from backend via GraphQL and
  consume it in EnumsContext, replacing the hardcoded frontend enum
- Remove StreetImageProviderInput/constants.ts (UI enum no longer needed)
- Add PANORAMAX_CUSTOM provider option with required URL field
- Rename isPano to panoOnly for semantic clarity; move filtering logic
  to backend (only filters when true)
- Simplify StreetImageProviderInput and StreetMapillaryImageFiltersInput
  by removing unnecessary callback wrappers
- Add Panoramax image preview component
- Add user-friendly error message when image provider URL is unreachable
@ofr1tz ofr1tz force-pushed the feature/panoramax branch from 2610264 to 7ba77a9 Compare March 19, 2026 16:08
@ofr1tz ofr1tz requested a review from frozenhelium March 23, 2026 16:05
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