8000 [PM-13015] Remember last opened view (View/Edit cipher) by fedemkr · Pull Request #1053 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[PM-13015] Remember last opened view (View/Edit cipher) #1053

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

Merged
merged 19 commits into from
Nov 4, 2024

Conversation

fedemkr
Copy link
Member
@fedemkr fedemkr commented Oct 17, 2024

🎟️ Tracking

PM-13015

📔 Objective

This PR lays the grounds to remember the last opened view from the user when timeout lock happens.
So if user is automatically locked the last opened view with a minimum state will be saved and when the user unlocks, it will navigate to such view loading it.
This is currently constrained to:

  • View Cipher
  • Edit Cipher

And it's remembered for 5 minutes; after that unlocking will proceed to the default navigation.

📸 Screenshots

Remeber.last.opened.view.mov

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

… (currently View cipher and Edit cipher). UT not added yet.
Copy link
Contributor
github-actions bot commented Oct 17, 2024

Logo
Checkmarx One – Scan Summary & Details3d65b524-1d95-4d08-8125-49f6c2941220

No New Or Fixed Issues Found

# Conflicts:
#	BitwardenShared/UI/Platform/Application/AppProcessor.swift
…ltiple accounts. Also changed the container for weak targets to be a WeakWrapper object to apply a common array instead of a NSPointerArray to be more like Swift language.
@fedemkr fedemkr marked this pull request as ready for review October 23, 2024 21:32
# Conflicts:
#	BitwardenShared/UI/Auth/Extensions/AuthRouter+Redirects.swift
Copy link
codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.38%. Comparing base (bc0356a) to head (5404a11).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1053      +/-   ##
==========================================
+ Coverage   89.36%   89.38%   +0.02%     
==========================================
  Files         677      679       +2     
  Lines       42817    42964     +147     
==========================================
+ Hits        38262    38405     +143     
- Misses       4555     4559       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

waitFor(!errorReporter.errors.isEmpty)
XCTAssertEqual(errorReporter.errors as? [BitwardenTestError], [.example])
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

🔨 just a lint warning to clean up for file_length

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, nice catch, thanks!

phil-livefront
phil-livefront previously approved these changes Oct 30, 2024
Copy link
Collaborator
@phil-livefront phil-livefront 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 need to resolve conflicts but approving nonetheless

matt-livefront
matt-livefront previously approved these changes Nov 1, 2024
Copy link
Collaborator
@matt-livefront matt-livefront left a comment

Choose a reason for hiding this comment

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

This turned out nice! One minor comment but I'll leave that up to you.

@fedemkr fedemkr merged commit 1e02eb7 into main Nov 4, 2024
9 checks passed
@fedemkr fedemkr deleted the pm-13015/remember-last-opened-view branch November 4, 2024 15:27
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.

3 participants
0