Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #4191: - Allow sharing Brave Playlist + Fix Time Formatting for >= 1-Hour #4192

Merged
merged 8 commits into from
Oct 5, 2021

Conversation

Brandon-T
Copy link
Collaborator

@Brandon-T Brandon-T commented Sep 17, 2021

Summary of Changes

  • Fix Time on Playlist showing incorrectly when Time >= 1-Hour.
  • Added Sharing to Playlist.

This pull request fixes #4191

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Screenshots:

image
image
image

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue and pull request is assigned to a milestone (should happen at merge time).

@Brandon-T Brandon-T added this to the 1.32 milestone Sep 17, 2021
@Brandon-T Brandon-T force-pushed the feature/BravePlaylistSharing branch from 8689678 to 1123726 Compare September 17, 2021 15:14
@Brandon-T Brandon-T force-pushed the feature/BravePlaylistSharing branch from 93f265f to 543d56b Compare September 27, 2021 16:46
@Brandon-T Brandon-T requested a review from iccub September 27, 2021 16:47

cacheAction.image = cacheState == .invalid ? #imageLiteral(resourceName: "playlist_download") : #imageLiteral(resourceName: "playlist_delete_download")
cacheAction.backgroundColor = #colorLiteral(red: 0.4509803922, green: 0.4784313725, blue: 0.8705882353, alpha: 1)

deleteAction.image = #imageLiteral(resourceName: "playlist_delete_item")
deleteAction.backgroundColor = #colorLiteral(red: 0.9176470588, green: 0.2274509804, blue: 0.05098039216, alpha: 1)

return UISwipeActionsConfiguration(actions: [deleteAction, cacheAction])
shareAction.image = UIImage(systemName: "square.and.arrow.up")
shareAction.backgroundColor = #colorLiteral(red: 0.1764705926, green: 0.4980392158, blue: 0.7568627596, alpha: 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we this or similar color hardcoded somewhere already?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This colour was made up by me :( There is no design for it, so I chose one sort of in-between existing colours but one that would stand out enough on the swipe menu, and be colour blind friendly.

@Brandon-T Brandon-T force-pushed the feature/BravePlaylistSharing branch 2 times, most recently from e3c255e to 4be96ce Compare October 4, 2021 19:29
@Brandon-T Brandon-T force-pushed the feature/BravePlaylistSharing branch from 4be96ce to de311cb Compare October 4, 2021 19:32
Copy link
Contributor

@iccub iccub left a comment

Choose a reason for hiding this comment

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

Code looks good to me, we waiting on a final blue color for the button we added

@iccub iccub added the blocked If a ticket is blocked for some reason, if not using a sub-block label, please provide info in issue label Oct 4, 2021
@iccub iccub removed the blocked If a ticket is blocked for some reason, if not using a sub-block label, please provide info in issue label Oct 5, 2021
@iccub iccub merged commit e6a4c82 into development Oct 5, 2021
@iccub iccub deleted the feature/BravePlaylistSharing branch October 5, 2021 08:01
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow playlist items to be shared
2 participants