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

Fix frequent feedback view model instantiation #3915

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

samsymons
Copy link
Contributor

@samsymons samsymons commented Feb 3, 2025

Task/Issue URL: https://app.asana.com/0/414235014887631/1209301003276843/f
Tech Design URL:
CC:

Description:

This PR updates the feedback form view model to no longer get created any time the view is recreated. Instead, it gets created at the same time as the regular view model and passed in the same way.

Steps to test this PR:

  1. Run this branch and start the VPN
  2. Check that you do not see frequent subscription cache hits every couple seconds
  3. Next, in the VPN UI, tap the Send Feedback button and go through the flow to the point of submitting an issue (in debug mode, pixels won't send, so feel free to submit)
  4. Check that the feedback pixel shows up in the logs with the correct data

Definition of Done (Internal Only):

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

Copy link
Member

@federicocappelli federicocappelli left a comment

Choose a reason for hiding this comment

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

Tested as requested, LGTM

@samsymons samsymons merged commit 115813b into main Feb 3, 2025
19 of 21 checks passed
@samsymons samsymons deleted the sam/fix-overly-frequent-view-model-creation branch February 3, 2025 06:39
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