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

1647: Add store links #1708

Merged
merged 3 commits into from
Oct 30, 2024
Merged

1647: Add store links #1708

merged 3 commits into from
Oct 30, 2024

Conversation

f1sh1918
Copy link
Contributor

Short description

For the download instructions of the koblenz pass self service we need store links. in #1707 we may also create a separate app download route and need also the urls for the other projects

Proposed changes

Side effects

-none

Testing

  1. Ensure npm i ran on root folder to have new buildConfig variables
  2. Start koblenz pass go to /erstellen and create a pass.
  3. Go to next and check that the store links are properly set. Note that for ios the app is not visible until first production release

Resolved issues

Fixes: #1647

Copy link
Member

@steffenkleinle steffenkleinle left a comment

Choose a reason for hiding this comment

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

Tested on firefox, nice :)

administration/src/bp-modules/components/AppStoreLinks.tsx Outdated Show resolved Hide resolved
Comment on lines 33 to 34
<StoreLink href={appStoreUrl} target='_blank' rel='noreferrer'>
<StoreIcon src={AppleStoreIcon} alt='AppStore öffnen' />
Copy link
Member

Choose a reason for hiding this comment

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

🔧 I think it would be cool to keep the naming consistent, either app store or apple store all the time. Same for android store vs play store.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For google they always use "Google Play öffnen" and for Apple "App Store öffnen"
This is a common thing and branded on the icons

Copy link
Member

Choose a reason for hiding this comment

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

Sorry for the misunderstanding, this comment is about variable naming, not about the user facing texts.
We have link vs url and appStore vs appleStore.

@@ -104,11 +104,13 @@ const bayern: BuildConfigType = {
excludeLocationPlayServices: false,
excludeX86: false,
},
appStoreLink: `https://play.google.com/store/apps/details?id=${ANDROID_APPLICATION_ID}`,
Copy link
Member

@steffenkleinle steffenkleinle Oct 24, 2024

Choose a reason for hiding this comment

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

🙃 : As this is redundant to the applicationId, I think it would be nice to just construct it from the applicationId in AppStoreLinks and not any additional property here.

Suggested change
appStoreLink: `https://play.google.com/store/apps/details?id=${ANDROID_APPLICATION_ID}`,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So you think i should create a constant for the base appStoreLink like "https://play.google...." and then construct it with the applicationId.
Hm for me the issue is that for the app store link (apple) its constructed very different and i would need to also set a base url like https://apps.apple.com/de/app/
and then use the application name and id ehrenamtskarte-bayern/id1261285110
If i do that i would have to create a separate Id for apple and export it to be able to construct the complete appStoreLink in a common way in the AppStoreLinks
I don't think that its worth the effort tbh

frontend/build-configs/nuernberg/index.ts Outdated Show resolved Hide resolved
},
ios: {
...bayernCommon,
bundleIdentifier: IOS_BUNDLE_IDENTIFIER,
provisioningProfileSpecifier: "match AppStore de.nrw.it.ehrensachebayern",
appStoreLink: "https://apps.apple.com/de/app/ehrenamtskarte-bayern/id1261285110",
Copy link
Member

Choose a reason for hiding this comment

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

🙃 Optional: Personally I think it might be better to also just add the appStoreId to the build configs, e.g. id1261285110 in this case.
This would

  • allow us to use the appStoreId separately for e.g. an apple-itunes-app meta tag for websites
  • allow us to set the language of the link dynamically based on the users language
  • reduce the chance of copy/paste mistakes like setting the language to ky

However, due neither of the first two points being relevant to us atm, feel free to just keep this as it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm same as i mentioned above. the i also need thisehrenamtskarte-bayern separately.
I don't see a big improvement here and will keep my solution

@f1sh1918
Copy link
Contributor Author

may i get a second review @seluianova ? :)

@seluianova
Copy link
Contributor

Is a 'zu' needed here?
image

Copy link
Contributor

@seluianova seluianova left a comment

Choose a reason for hiding this comment

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

lgtm, just one concern regarding 'zu' (not directly related to this PR, but maybe you could fix that as well)

@f1sh1918 f1sh1918 merged commit c056cc7 into main Oct 30, 2024
1 check passed
@f1sh1918 f1sh1918 deleted the 1647-add-store-links branch October 30, 2024 19:19
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.

Add store links
3 participants