From 8dda681409e5629e8e41d83fdf3c10db1e37e873 Mon Sep 17 00:00:00 2001
From: Maurice Parker
Date: Tue, 10 Sep 2019 11:09:17 -0500
Subject: [PATCH 1/5] Add accessibility labels to Sidebar, Timeline, and
Article. Issue #934
---
Mac/Base.lproj/MainWindow.storyboard | 16 +++++++++-------
Mac/MainWindow/Detail/DetailWebView.swift | 4 ++++
Mac/MainWindow/Timeline/TimelineTableView.swift | 4 ++++
3 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/Mac/Base.lproj/MainWindow.storyboard b/Mac/Base.lproj/MainWindow.storyboard
index 7d5f2c5dc..0a9cf634e 100644
--- a/Mac/Base.lproj/MainWindow.storyboard
+++ b/Mac/Base.lproj/MainWindow.storyboard
@@ -1,7 +1,8 @@
-
+
-
+
+
@@ -268,14 +269,14 @@
-
+
-
+
-
+
@@ -311,6 +312,7 @@
+
@@ -345,7 +347,7 @@
-
+
@@ -444,7 +446,7 @@
-
+
diff --git a/Mac/MainWindow/Detail/DetailWebView.swift b/Mac/MainWindow/Detail/DetailWebView.swift
index 03c8109a6..e235b7d7b 100644
--- a/Mac/MainWindow/Detail/DetailWebView.swift
+++ b/Mac/MainWindow/Detail/DetailWebView.swift
@@ -14,6 +14,10 @@ final class DetailWebView: WKWebView {
weak var keyboardDelegate: KeyboardDelegate?
+ override func accessibilityLabel() -> String? {
+ return NSLocalizedString("Article", comment: "Article")
+ }
+
// MARK: - NSResponder
override func keyDown(with event: NSEvent) {
diff --git a/Mac/MainWindow/Timeline/TimelineTableView.swift b/Mac/MainWindow/Timeline/TimelineTableView.swift
index fb3639134..e70bbed17 100644
--- a/Mac/MainWindow/Timeline/TimelineTableView.swift
+++ b/Mac/MainWindow/Timeline/TimelineTableView.swift
@@ -13,6 +13,10 @@ class TimelineTableView: NSTableView {
weak var keyboardDelegate: KeyboardDelegate?
+ override func accessibilityLabel() -> String? {
+ return NSLocalizedString("Timeline", comment: "Timeline")
+ }
+
// MARK: - NSResponder
override func keyDown(with event: NSEvent) {
From 7ad0b6b604cdda6f9349fbc859763f472b7833cd Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 10 Sep 2019 20:28:16 -0700
Subject: [PATCH 2/5] Always update the unread count in the timeline after
doing a sync fetch after representedObjects changes. Reload visible cells
whenever showFeedNames changes. Fix #923.
---
Mac/MainWindow/Timeline/TimelineViewController.swift | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Mac/MainWindow/Timeline/TimelineViewController.swift b/Mac/MainWindow/Timeline/TimelineViewController.swift
index 14b953e7a..4b770b8e6 100644
--- a/Mac/MainWindow/Timeline/TimelineViewController.swift
+++ b/Mac/MainWindow/Timeline/TimelineViewController.swift
@@ -48,6 +48,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
if articles.count > 0 {
tableView.scrollRowToVisible(0)
}
+ updateUnreadCount()
}
}
}
@@ -106,6 +107,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner, Unr
if showFeedNames != oldValue {
updateShowAvatars()
updateTableViewRowHeight()
+ reloadVisibleCells()
}
}
}
@@ -1009,10 +1011,7 @@ private extension TimelineViewController {
}
func replaceArticles(with unsortedArticles: Set) {
- let sortedArticles = Array(unsortedArticles).sortedByDate(sortDirection)
- if articles != sortedArticles {
- articles = sortedArticles
- }
+ articles = Array(unsortedArticles).sortedByDate(sortDirection)
}
func fetchUnsortedArticlesSync(for representedObjects: [Any]) -> Set {
From 1b7a46e505e9426a2f0bdfcae72d57a1aa785978 Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 10 Sep 2019 20:32:15 -0700
Subject: [PATCH 3/5] Bump version to 5.0.1b1.
---
xcconfig/NetNewsWire_target.xcconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xcconfig/NetNewsWire_target.xcconfig b/xcconfig/NetNewsWire_target.xcconfig
index 397010614..c3d4b1175 100644
--- a/xcconfig/NetNewsWire_target.xcconfig
+++ b/xcconfig/NetNewsWire_target.xcconfig
@@ -29,8 +29,8 @@ PROVISIONING_PROFILE_SPECIFIER =
#include? "../../SharedXcodeSettings/DeveloperSettings.xcconfig"
// High Level Settings common to both the Mac application and any extensions we bundle with it
-MARKETING_VERSION = 5.0.1d2
-CURRENT_PROJECT_VERSION = 2612
+MARKETING_VERSION = 5.0.1b1
+CURRENT_PROJECT_VERSION = 2613
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
COMBINE_HIDPI_IMAGES = YES
From b51000a1ffef8e72916d2cd458b71609837a466a Mon Sep 17 00:00:00 2001
From: Brent Simmons
Date: Tue, 10 Sep 2019 20:58:02 -0700
Subject: [PATCH 4/5] Update appcast for 5.0.1b1.
---
Appcasts/netnewswire-beta.xml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml
index 7834e2a83..5b7d0dabf 100755
--- a/Appcasts/netnewswire-beta.xml
+++ b/Appcasts/netnewswire-beta.xml
@@ -6,6 +6,16 @@
Most recent NetNewsWire changes with links to updates.
en
+ -
+ NetNewsWire 5.0.1b1
+ Timeline: reload the timeline when show-feed-names is toggled. This fixes a bug where switching between a folder and a feed with the exact same list of articles to appear in the timeline would result in display glitches.
+ ]]>
+ Tue, 10 Sep 2019 20:50:00 -0700
+
+ 10.14.4
+
+
-
NetNewsWire 5.0.1d2
Date: Tue, 10 Sep 2019 21:01:20 -0700
Subject: [PATCH 5/5] Fix URL in beta appcast.
---
Appcasts/netnewswire-beta.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml
index 5b7d0dabf..491fc8ecd 100755
--- a/Appcasts/netnewswire-beta.xml
+++ b/Appcasts/netnewswire-beta.xml
@@ -12,7 +12,7 @@
Timeline: reload the timeline when show-feed-names is toggled. This fixes a bug where switching between a folder and a feed with the exact same list of articles to appear in the timeline would result in display glitches.
]]>
Tue, 10 Sep 2019 20:50:00 -0700
-
+
10.14.4