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

Dish intern #208

Open
wants to merge 179 commits into
base: main
Choose a base branch
from
Open

Dish intern #208

wants to merge 179 commits into from

Conversation

jedi-of-the-sea
Copy link
Contributor

@jedi-of-the-sea jedi-of-the-sea commented Dec 13, 2024

Summary

DISH client with two modes for different usage.
The mode INTERN uses a new plugins DishExportMap and a new custom gfi component InternGfi.
Both modes got two new search configurations for address search and parcel search.
New background layers were added to the EXTERN map client.

Instructions for local reproduction and review

Start the client and set modein the index.html to EXTERN and INTERN for different views.
Note that some services in INTERN Mode are not availaible as they have a specific intranet URL and we do not have access to that. Also, some services in INTERN are only available in VPN.

@jedi-of-the-sea jedi-of-the-sea self-assigned this Dec 13, 2024
@dopenguin dopenguin added the enhancement New feature or request label Dec 13, 2024
Copy link
Member

@dopenguin dopenguin left a comment

Choose a reason for hiding this comment

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

🏓 @jedi-of-the-sea

If you got any questions, let me know!

@@ -3,6 +3,10 @@
## unpublished

- Feature: If a user is geolocated outside of the map's extent, the client will inform the user of why geolocation did not take effect via a textbox.
- Feature: The map can now be used for internal use with specific configurations. This will be defined by the parameter `MODE` in the index.html. The parameters `internalHost`, `internalPort` and `internalPath` for the internal map must be passed in the `createMap` call.
- Feature: New searches for address and parcels added.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Feature: New searches for address and parcels added.
- Feature: Add new searches for addresses and parcels.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -3,6 +3,10 @@
## unpublished

- Feature: If a user is geolocated outside of the map's extent, the client will inform the user of why geolocation did not take effect via a textbox.
- Feature: The map can now be used for internal use with specific configurations. This will be defined by the parameter `MODE` in the index.html. The parameters `internalHost`, `internalPort` and `internalPath` for the internal map must be passed in the `createMap` call.
- Feature: New searches for address and parcels added.
- Feature: New background and specialist data layers added.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Feature: New background and specialist data layers added.
- Feature: Add new background and specialist data layers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

- Feature: The map can now be used for internal use with specific configurations. This will be defined by the parameter `MODE` in the index.html. The parameters `internalHost`, `internalPort` and `internalPath` for the internal map must be passed in the `createMap` call.
- Feature: New searches for address and parcels added.
- Feature: New background and specialist data layers added.
- Feature: New plugins DishExportMap and InternGfi for intern mode use added.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Feature: New plugins DishExportMap and InternGfi for intern mode use added.
- Feature: Add new plugins DishExportMap and InternGfi for usage in the internal mode.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -2,14 +2,30 @@

## Content

The client can use two different configurations which are controlled by the parameter `MODE`. `MODE="EXTERN"` will apply the configuration for the map client as the website for the public, and `MODE="INTERN"` for the map used in the internal DISH application. `MODE` is initially set and cannot be changed after hosting.
Copy link
Member

Choose a reason for hiding this comment

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

Where can this be set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines 29 to 31



Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +27 to +29
interne Benutzerhinweise
</v-card-text>
<v-card-text> interne Benutzerhinweise </v-card-text>
Copy link
Member

Choose a reason for hiding this comment

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

Is interne Benutzerhinweise currently a placeholder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I am currently waiting for the content that should be displayed there.

export default Vue.extend({
name: 'DishModalHints',
computed: {
...getSetGenerator('plugin/modal', ['closed']),
Copy link
Member

Choose a reason for hiding this comment

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

@warm-coolguy do you remember the reason why the mutation setClosed is not being used here (as this is the same in Hint.vue)?

Comment on lines +52 to +59
maxFeatures() {
const search = this.selectedGroup.find(
(searchService) =>
searchService.categoryId === 'categoryDenkmalsucheDish'
)
if (search) return search.queryParameters.maxFeatures
return ''
},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
maxFeatures() {
const search = this.selectedGroup.find(
(searchService) =>
searchService.categoryId === 'categoryDenkmalsucheDish'
)
if (search) return search.queryParameters.maxFeatures
return ''
},

This is not being used.

Copy link
Member

Choose a reason for hiding this comment

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

GeoJsonProperties from import { GeoJsonProperties } from 'geojson' is the correct type for currentProperties as windowFeatures is typed as GeoJsonProperties[] and currentProperties is typed as GeoJsonProperties.

import { FeatureCollection, Geometry, GeometryCollection } from 'geojson'

export function zoomToFeatureById(
instance,
Copy link
Member

Choose a reason for hiding this comment

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

Please expose MapInstance of @polar/core as described by this ADR as a new export and use it as a type here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants