Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Added changelog

Steven Tey229fe721ba34
diff --git a/components/layout/app/user-dropdown.tsx b/components/layout/app/user-dropdown.tsx
index 5acff2152e..56c405dffe 100644
--- a/components/layout/app/user-dropdown.tsx
+++ b/components/layout/app/user-dropdown.tsx
@@ -12,6 +12,8 @@ import { LoadingCircle } from "#/ui/icons";
import Badge from "#/ui/badge";
import Cookies from "js-cookie";
+const latestChangelogId = "read-changelog-0714";
+
export default function UserDropdown() {
const { data: session } = useSession();
const [openPopover, setOpenPopover] = useState(false);
@@ -29,7 +31,7 @@ export default function UserDropdown() {
const [unread, setUnread] = useState(false);
useEffect(() => {
- if (Cookies.get("read-changelog-0725")) {
+ if (Cookies.get(latestChangelogId)) {
setUnread(false);
} else {
setUnread(true);
@@ -83,7 +85,7 @@ export default function UserDropdown() {
href="https://dub.sh/changelog"
target="_blank"
rel="noopener noreferrer"
- onClick={() => Cookies.set("read-changelog-0725", true)}
+ onClick={() => Cookies.set(latestChangelogId, true)}
className="flex w-full justify-between rounded-md p-2 text-sm transition-all duration-75 hover:bg-gray-100 active:bg-gray-200"
>
<IconMenu text="Changelog" icon={<Edit3 className="h-4 w-4" />} />
diff --git a/posts/changelog/improved-link-cards.mdx b/posts/changelog/improved-link-cards.mdx
new file mode 100644
index 0000000000..98efe11001
--- /dev/null
+++ b/posts/changelog/improved-link-cards.mdx
@@ -0,0 +1,15 @@
+---
+title: Improved Link Cards
+publishedAt: 2023-07-14
+summary: "We've improved the design of link cards on Dub to make them more readable."
+image: "https://d2vwwcvoksz7ty.cloudfront.net/changelog/improved-link-cards.png"
+author: "steventey"
+---
+
+We've improved the design of link cards on Dub to make them more readable.
+
+The QR Code modal has been moved to the `⋮` dropdown on the right. It can also be accessed via the `q` keyboard shortcut.
+
+The link creation timestamp has been converted to absolute timestamps (e.g. `Mar 26`) for links created more than 24 hours ago. This is similar to the way Twitter displays timestamps, and has better readability (as opposed to `110d ago`).
+
+Shoutout to [Sean](https://github.com/steven-tey/dub/issues/263), [Alex](https://github.com/steven-tey/dub/issues/261), and [Jason](https://twitter.com/jasonlaster11) for the feedback!
diff --git a/posts/changelog/keyboard-shortcuts.mdx b/posts/changelog/keyboard-shortcuts.mdx
index cc19a9334f..2e8c6b46dc 100644
--- a/posts/changelog/keyboard-shortcuts.mdx
+++ b/posts/changelog/keyboard-shortcuts.mdx
@@ -10,14 +10,15 @@ Introducing keyboard shortcuts on Dub. With shortcuts, you'll be able to speed u
Here's a list of all the shortcuts to get you started:
-| Shortcut | Function | Link specific? |
-| -------- | --------------------------------- | -------------- |
-| `c` | Create a new short link | No |
-| `/` | Focus on the link search input | No |
-| `e` | Edit the selected short link | Yes |
-| `d` | Duplicate the selected short link | Yes |
-| `a` | Archive the selected short link | Yes |
-| `x` | Delete the selected short link | Yes |
+| Shortcut | Function | Link specific? |
+| -------- | -------------------------------------------- | -------------- |
+| `c` | Create a new short link | No |
+| `/` | Focus on the link search input | No |
+| `e` | Edit the selected short link | Yes |
+| `d` | Duplicate the selected short link | Yes |
+| `q` | Show the QR code for the selected short link | Yes |
+| `a` | Archive the selected short link | Yes |
+| `x` | Delete the selected short link | Yes |
Have any suggestions for new shortcuts? Let us know by creating a [new issue](https://github.com/steven-tey/dub/issues/new?title=Shortcut%20Request&labels=enhancement).