Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add param handler to toggle bundles on/off based on client #995

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Aug 22, 2023

This allows frontend to send mobile=true as parameter when requesting GetAppSetup to activate the param handler.

The handler removes any bundles listed in oskari-ext.properties under actionhandler.GetAppSetup.desktopOnly.bundles from the appsetup and adds bundles listed under actionhandler.GetAppSetup.mobileOnly.bundles to create a more mobile friendly experience for the geoportal.

When combined with desktop-bundles being lazy-loaded when building the frontend this also decreases the size of the JS code that the frontend needs to download.

@ZakarFin ZakarFin added this to the 2.12.0 milestone Aug 23, 2023
@ZakarFin ZakarFin merged commit 285889f into oskariorg:develop Aug 23, 2023
2 checks passed
@ZakarFin ZakarFin deleted the mobile branch August 23, 2023 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant