Skip to content

Commit

Permalink
CollaborateViewController: Deprecation Notice
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Apr 24, 2024
1 parent 1ff5566 commit e38213c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
12 changes: 11 additions & 1 deletion Simplenote/CollaborateViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ class CollaborateViewController: NSViewController {
///
@IBOutlet private var shareTextField: NSTextField! {
didSet {
shareTextField.stringValue = NSLocalizedString("Add an email address as a tag to share this note with someone. Then you can both make changes to it.", comment: "Text presented when sharing a Note")
let text = NSLocalizedString("Collaboration is retiring on July 1st, 2024. For more details, click here.", comment: "Collaboration retirement notice")
shareTextField.stringValue = text
}
}

Expand All @@ -31,6 +32,15 @@ class CollaborateViewController: NSViewController {
startListeningToNotifications()
refreshStyle()
}

@IBAction
func backgroundWasClicked(_ sender: Any) {
guard let url = URL(string: SimplenoteConstants.collaborationDeprecationURL) else {
return
}

NSWorkspace.shared.open(url)
}
}

// MARK: - Private
Expand Down
11 changes: 9 additions & 2 deletions Simplenote/CollaborateViewController.xib
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="16097" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16097"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22689"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
Expand Down Expand Up @@ -33,6 +33,13 @@
<constraint firstAttribute="trailing" secondItem="07M-AN-65d" secondAttribute="trailing" constant="15" id="vZe-fa-ULT"/>
<constraint firstItem="07M-AN-65d" firstAttribute="leading" secondItem="3UL-37-8ha" secondAttribute="leading" constant="15" id="zeD-kk-eH4"/>
</constraints>
<gestureRecognizers>
<clickGestureRecognizer delaysPrimaryMouseButtonEvents="YES" numberOfClicksRequired="1" id="8ZO-aU-CJb">
<connections>
<action selector="backgroundWasClicked:" target="-2" id="Yv9-y8-4IO"/>
</connections>
</clickGestureRecognizer>
</gestureRecognizers>
<point key="canvasLocation" x="430" y="580"/>
</customView>
</objects>
Expand Down
4 changes: 4 additions & 0 deletions Simplenote/SimplenoteConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ class SimplenoteConstants: NSObject {
static let simplenoteVerificationURL = currentEngineBaseURL.appendingPathComponent("/account/verify-email/")
static let simplenoteRequestSignupURL = currentEngineBaseURL.appendingPathComponent("/account/request-signup")
static let accountDeletionURL = currentEngineBaseURL.appendingPathComponent("/account/request-delete/")

/// Deprecation
///
static let collaborationDeprecationURL = "https://simplenote.com/2024/05/01/collaboration-feature-retirement"
}

0 comments on commit e38213c

Please sign in to comment.