Skip to content

Filter app download links by mobile web browser OS#623

Open
chrisnowak wants to merge 2 commits into
mainfrom
claude/mobile-app-store-links-18m293
Open

Filter app download links by mobile web browser OS#623
chrisnowak wants to merge 2 commits into
mainfrom
claude/mobile-app-store-links-18m293

Conversation

@chrisnowak

Copy link
Copy Markdown
Contributor

Overview

The "Download the App" widget now uses the OperatingSystem property from GetDeviceInfo to only show the app store link that integrates with the participant's mobile web browser: iOS shows only the Apple App Store link, Android shows only the Google Play link, and desktop (or an undetermined OS) shows both. The widget continues to only render on the web platform (hidden in the native app).

Security

  • I have ensured no secure credentials or sensitive information remain in code, metadata, comments, etc.
    • Please verify that you double checked that .storybook/preview.js does not contain your participant access key details.
    • There are no temporary testing changes committed such as API base URLs, access tokens, print/log statements, etc.
  • These changes do not introduce any security risks, or any such risks have been properly mitigated.

Testing

Consider whether the changes might have device-specific behaviors (screen padding, new APIs, etc.) and check one of the following boxes:

  • This change can be adequately tested using the MDH Storybook.
  • This change requires additional testing in the MDH iOS/Android/Web apps. (Create a pre-release tag/build and test in a ViewBuilder PR.)

Storybook should be sufficient; i've validated in the actual data the correct OperatingSystem keys here.

Documentation

Consider whether there are any documentation impacts and check one of the following boxes:

  • I have added relevant Storybook updates to this PR.
  • If this feature requires a developer doc update, I have tagged @CareEvolution/api-docs.
  • This change does not impact documentation or Storybook.

Reviewers

Assign to the appropriate reviewer(s). Minimally, a second set of eyes is needed ensure no non-public information is published. Consider also including:

  • Subject-matter experts
  • Style/editing reviewers
  • Others requested by the content owner

Consider "Squash and merge" as needed to keep the commit history reasonable on main.

The "Download the App" widget now uses the OperatingSystem property from
GetDeviceInfo to only show the app store link that integrates with the
participant's mobile web browser: iOS shows only the Apple App Store link,
Android shows only the Google Play link, and desktop (or an undetermined
OS) shows both. The widget continues to only render on the web platform
(hidden in the native app).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KogJDCU6R3ovcj4w2VboYr
@aws-amplify-us-east-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-623.d1xp2kmk6zrv44.amplifyapp.com

Distinguish the two things that filter the store links: the project's
configured platforms (DesktopProjectSupports*) versus the mobile web
browser's OS (Mobile*Browser), and name the hidden native-app case
explicitly.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KogJDCU6R3ovcj4w2VboYr
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