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

BIT-1212: Nested Folder Support #532

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Conversation

matt-livefront
Copy link
Collaborator

🎟️ Tracking

BIT-1212

🚧 Type of change

  • 🚀 New feature development

📔 Objective

Adds support for nested folders.

📋 Code changes

  • Tree.swift: A tree data structure for managing the nested folders.
  • VaultRepository.swift: Updates the vault lists to handle the nesting of folders.

📸 Screenshots

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-03-14.at.16.45.37.mp4

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation 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

Copy link
Contributor

github-actions bot commented Mar 14, 2024

2 Warnings
⚠️ Ignoring duplicate libraries: '-lbitwarden_uniffi'
⚠️ BitwardenShared/Core/Vault/Extensions/BitwardenSdk+Vault.swift has less than 80% code coverage

Bitwarden code coverage

Total coverage: 86.43%

File Coverage
BitwardenShared/Core/Platform/Utilities/Tree.swift 100.00%
BitwardenShared/Core/Vault/Extensions/BitwardenSdk+Vault.swift 62.37%
BitwardenShared/Core/Vault/Repositories/VaultRepository.swift 96.57%
BitwardenShared/UI/Vault/Vault/VaultList/VaultListGroup.swift 98.33%

Powered by Slather

Generated by 🚫 Danger

/// - Returns: A list of items for the group in the vault list.
///
private func vaultListItems(
private func vaultListItems( // swiftlint:disable:this function_body_length
Copy link
Contributor

Choose a reason for hiding this comment

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

🎨 : Instead of disabling the swiftlint warning on length here, would it be possible to put some of the functionality into a separate private method, and make this smaller as a result? In particular, could the calculation of folderSection be split out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, good callout, updated!

Base automatically changed from matt/BIT-1212-refactor-vault-group to main March 19, 2024 16:05
@bitwarden-bot
Copy link

Logo
Checkmarx One – Scan Summary & Detailse2874ab1-faec-4f57-a784-eb2f81f6677e

No New Or Fixed Issues Found

Copy link
Contributor

@KatherineInCode KatherineInCode left a comment

Choose a reason for hiding this comment

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

Looks good!

@matt-livefront matt-livefront merged commit 5caff0c into main Mar 21, 2024
6 checks passed
@matt-livefront matt-livefront deleted the matt/BIT-1212-nested-folders branch March 21, 2024 16:49
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.

4 participants