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

Add FXIOS-8988 [Microsurvey] Redux architecture #20094

Merged
merged 2 commits into from May 14, 2024

Conversation

cyndichin
Copy link
Contributor

@cyndichin cyndichin commented Apr 30, 2024

📜 Tickets

Jira ticket
Github issue

💡 Description

Setup Redux architecture to handle state for microsurvey prompt. Draft PR to discuss with Orla in how we envision our architecture to be going forward and to see microsurveys as an example.

Handles

  • initializing / showing prompt
  • dismissing prompt when tapping on close button
  • print out text to open survey when tapping on continue button

📝 Checklist

You have to check all boxes before merging

  • Filled in the above information (tickets numbers and description of your work)
  • Updated the PR name to follow our PR naming guidelines
  • Wrote unit tests and/or ensured the tests suite is passing
  • When working on UI, I checked and implemented accessibility (minimum Dynamic Text and VoiceOver)
  • If needed, I updated documentation / comments for complex code and public methods
  • If needed, added a backport comment (example @Mergifyio backport release/v120)

@cyndichin cyndichin force-pushed the cc/FXIOS-8988_setup-redux-for-prompt branch from 41adb49 to aa8cdb6 Compare April 30, 2024 17:35
Comment on lines -36 to -46
init(_ appState: BrowserViewControllerState) {
self.init(
windowUUID: appState.windowUUID,
isOpen: appState.fakespotState.isOpen,
sidebarOpenForiPadLandscape: appState.fakespotState.sidebarOpenForiPadLandscape,
currentTabUUID: appState.fakespotState.currentTabUUID,
expandState: appState.fakespotState.expandState,
telemetryState: appState.fakespotState.telemetryState
)
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am able to build without this, seems like we can remove

@mobiletest-ci-bot
Copy link

mobiletest-ci-bot commented Apr 30, 2024

Warnings
⚠️ Variable 'crossCircleFill' in Medium is out of alphabetical order.
⚠️ Variable 'cross' in Medium is out of alphabetical order.
Messages
📖 Project coverage: 32.53%
📖 Edited 6 files
📖 Created 4 files

Client.app: Coverage: 31.14

File Coverage
MicrosurveyPromptState.swift 86.96%
BrowserViewController.swift 4.48% ⚠️
MicrosurveyPromptAction.swift 100.0%
MicrosurveyPromptMiddleware.swift 47.5% ⚠️
MicrosurveyPrompt.swift 0.0% ⚠️
BrowserViewControllerState.swift 0.0% ⚠️
AppState.swift 89.66%
FakespotState.swift 13.67% ⚠️

Generated by 🚫 Danger Swift against b19f69c

@cyndichin cyndichin requested a review from OrlaM April 30, 2024 19:41
@cyndichin cyndichin force-pushed the cc/FXIOS-8988_setup-redux-for-prompt branch from aa8cdb6 to d4c613d Compare May 13, 2024 17:22
Copy link
Contributor

mergify bot commented May 13, 2024

This pull request has conflicts when rebasing. Could you fix it @cyndichin? 🙏

@cyndichin cyndichin force-pushed the cc/FXIOS-8988_setup-redux-for-prompt branch 3 times, most recently from 664e6c3 to 8f68fdd Compare May 13, 2024 17:29
@cyndichin cyndichin force-pushed the cc/FXIOS-8988_setup-redux-for-prompt branch from b01b44b to 98f3898 Compare May 13, 2024 19:49
@cyndichin cyndichin force-pushed the cc/FXIOS-8988_setup-redux-for-prompt branch from 98f3898 to b218ade Compare May 13, 2024 19:54
@cyndichin cyndichin changed the title [WIP] Add FXIOS-8988 [Microsurvey] Redux architecture Add FXIOS-8988 [Microsurvey] Redux architecture May 13, 2024
@cyndichin cyndichin marked this pull request as ready for review May 13, 2024 20:29
@cyndichin cyndichin requested a review from a team as a code owner May 13, 2024 20:29
@cyndichin cyndichin requested review from nbhasin2 and OrlaM May 13, 2024 20:29
@cyndichin cyndichin merged commit bbb4e7e into main May 14, 2024
10 checks passed
@cyndichin cyndichin deleted the cc/FXIOS-8988_setup-redux-for-prompt branch May 14, 2024 13:08
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.

None yet

3 participants