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

Release 7.139.0-4 #3411

Merged
merged 19 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ jobs:

steps:
- name: Create Asana task when workflow failed
if: ${{ failure() }}
run: |
curl -s "https://app.asana.com/api/1.0/tasks" \
--header "Accept: application/json" \
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-task-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Asana PR Task URL

on:
pull_request:
types: [opened, edited, closed, synchronize, review_requested]
types: [opened, edited, closed, synchronize, review_requested, ready_for_review]

jobs:

Expand All @@ -14,6 +14,8 @@ jobs:

runs-on: ubuntu-latest

if: ${{ !github.event.pull_request.draft }}

outputs:
task_id: ${{ steps.get-task-id.outputs.task_id }}
task_in_project: ${{ steps.check-board-membership.outputs.task_in_project }}
Expand Down Expand Up @@ -47,7 +49,7 @@ jobs:

- name: Add Task to the App Board Project
id: add-task-to-project
if: ${{ github.event.action == 'opened' && steps.check-board-membership.outputs.task_in_project == '0' }}
if: ${{ (github.event.action == 'opened' || github.event.action == 'ready_for_review') && steps.check-board-membership.outputs.task_in_project == '0' }}
env:
ASANA_ACCESS_TOKEN: ${{ secrets.ASANA_ACCESS_TOKEN }}
ASANA_PROJECT_ID: ${{ vars.IOS_APP_BOARD_ASANA_PROJECT_ID }}
Expand Down
44 changes: 44 additions & 0 deletions .maestro/release_tests/tabs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,27 @@ tags:
- assertVisible: ".*Privacy Test Pages.*"
- tapOn: "Refresh Page"

# Suggestions
- assertVisible:
id: "searchEntry"

- tapOn:
id: "searchEntry"
- inputText: "ad click"
- assertVisible: "Switch to Tab.*search-company.site"
- tapOn: "Switch to Tab.*search-company.site"
- assertVisible: ".*Ad Click Flow.*"

- tapOn:
id: "searchEntry"
- inputText: "privacy"
- assertVisible: "Switch to Tab.*privacy-test-pages.site"
- tapOn: "Switch to Tab.*privacy-test-pages.site"
- assertVisible: ".*Privacy Test Pages.*"

# Needed or else test can't see the Tab Switcher button for some reason
- tapOn: "Refresh Page"

# Close Tab
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
Expand All @@ -57,3 +78,26 @@ tags:
- assertNotVisible: ".*Ad Click Flow.*"
- assertVisible: "1 Private Tab"
- tapOn: "Done"

# Switch tabs from new tab
- tapOn: "Refresh Page"
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
- assertVisible: ".*Privacy Test Pages.*"
- assertVisible:
id: "Add"
- tapOn:
id: "Add"
- assertVisible:
id: "searchEntry"
- tapOn:
id: "searchEntry"
- inputText: "privacy"
- assertVisible: "Switch to Tab.*privacy-test-pages.site"
- tapOn: "Switch to Tab.*privacy-test-pages.site"
- assertVisible: ".*Privacy Test Pages.*"
- tapOn: "Refresh Page"
- assertVisible: Tab Switcher
- tapOn: Tab Switcher
- assertVisible: "1 Private Tab"

2 changes: 1 addition & 1 deletion Core/AppURLs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public extension URL {
static let emailProtectionSupportLink = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/email/settings/support"))!
static let emailProtectionHelpPageLink = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/duckduckgo-help-pages/email-protection/what-is-duckduckgo-email-protection/"))!
static let aboutLink = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/about"))!
static let apps = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/apps"))!
static let apps = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/apps?origin=funnel_app_ios"))!
static let searchSettings = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/settings"))!
static let autofillHelpPageLink = URL(string: AppDeepLinkSchemes.quickLink.appending("\(ddg.host!)/duckduckgo-help-pages/sync-and-backup/password-manager-security/"))!

Expand Down
2 changes: 0 additions & 2 deletions Core/PixelEvent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,6 @@ extension Pixel {
case newTabPageMessageDismissed

case newTabPageFavoritesPlaceholderTapped
case newTabPageFavoritesInfoTooltip

case newTabPageFavoritesSeeMore
case newTabPageFavoritesSeeLess
Expand Down Expand Up @@ -1581,7 +1580,6 @@ extension Pixel.Event {
case .newTabPageMessageDismissed: return "m_new_tab_page_message_dismissed"

case .newTabPageFavoritesPlaceholderTapped: return "m_new_tab_page_favorites_placeholder_click"
case .newTabPageFavoritesInfoTooltip: return "m_new_tab_page_favorites_info_tooltip"

case .newTabPageFavoritesSeeMore: return "m_new_tab_page_favorites_see_more"
case .newTabPageFavoritesSeeLess: return "m_new_tab_page_favorites_see_less"
Expand Down
106 changes: 43 additions & 63 deletions DuckDuckGo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/DuckDuckGo/BrowserServicesKit",
"state" : {
"revision" : "4db50292abf1180d66da55cf83f75d37395df1f9",
"version" : "198.1.0"
"revision" : "b60b38bace7262e0c4a006018b7e4b060ba4b754",
"version" : "198.2.1"
}
},
{
"identity" : "content-scope-scripts",
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/content-scope-scripts",
"state" : {
"revision" : "2bed9e2963b2a9232452911d0773fac8b56416a1",
"version" : "6.17.0"
"revision" : "1ed569676555d493c9c5575eaed22aa02569aac9",
"version" : "6.19.0"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AddFavoritePlaceholderItemView.swift
// FavoriteAddItemView.swift
// DuckDuckGo
//
// Copyright © 2024 DuckDuckGo. All rights reserved.
Expand All @@ -20,7 +20,7 @@
import SwiftUI
import DesignResourcesKit

struct AddFavoritePlaceholderItemView: View {
struct FavoriteAddItemView: View {
var body: some View {
RoundedRectangle(cornerRadius: 8, style: .continuous)
.fill(.clear)
Expand All @@ -33,6 +33,6 @@ struct AddFavoritePlaceholderItemView: View {
}

#Preview {
AddFavoritePlaceholderItemView()
FavoriteAddItemView()
.frame(width: 100)
}
5 changes: 4 additions & 1 deletion DuckDuckGo/FavoriteItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import UniformTypeIdentifiers
enum FavoriteItem {
case favorite(Favorite)
case addFavorite
case placeholder(_ id: String)
}

extension FavoriteItem: Identifiable {
Expand All @@ -32,6 +33,8 @@ extension FavoriteItem: Identifiable {
return favorite.id
case .addFavorite:
return "addFavorite"
case .placeholder(let id):
return id
}
}
}
Expand All @@ -43,7 +46,7 @@ extension FavoriteItem: Reorderable {
let itemProvider = NSItemProvider(object: (favorite.urlObject?.absoluteString ?? "") as NSString)
let metadata = MoveMetadata(itemProvider: itemProvider, type: .plainText)
return .movable(metadata)
case .addFavorite:
case .addFavorite, .placeholder:
return .stationary
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// FavoriteEmptyStateItem.swift
// FavoritePlaceholderItemView.swift
// DuckDuckGo
//
// Copyright © 2024 DuckDuckGo. All rights reserved.
Expand All @@ -19,7 +19,7 @@

import SwiftUI

struct FavoriteEmptyStateItem: View {
struct FavoritePlaceholderItemView: View {
var body: some View {
RoundedRectangle(cornerRadius: 8, style: .continuous)
.stroke(Color(designSystemColor: .lines),
Expand All @@ -29,5 +29,5 @@ struct FavoriteEmptyStateItem: View {
}

#Preview {
FavoriteEmptyStateItem()
FavoritePlaceholderItemView()
}
Loading
Loading