Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants