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

Update Linear and Slack icons #12022

Merged
merged 2 commits into from
Apr 29, 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
6 changes: 5 additions & 1 deletion extensions/linear/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Linear Changelog

## [New icons] - 2024-04-26

- Use new Linear icons

## [Fix Creating issue with milestone] - 2024-04-23

Fix defining milestoneId in payload.
- Fix defining `milestoneId` in payload.

## [Enhanced Notifications] - 2024-03-12

Expand Down
9 changes: 4 additions & 5 deletions extensions/linear/assets/dark/linear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions extensions/linear/assets/light/linear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/linear/assets/linear-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed extensions/linear/assets/linear.png
Binary file not shown.
33 changes: 24 additions & 9 deletions extensions/linear/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions extensions/linear/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "linear",
"title": "Linear",
"description": "Bring Linear to every corner of your Mac. Create, search, and modify your issues. Stay on top of your notifications in the menu bar.",
"icon": "linear.png",
"icon": "linear-app-icon.png",
"owner": "linear",
"access": "public",
"author": "thomaslombart",
Expand Down Expand Up @@ -116,7 +116,6 @@
"description": "Show unread notifications in the Menu Bar.",
"mode": "menu-bar",
"subtitle": "Linear",
"icon": "linear.png",
"interval": "15m",
"preferences": [
{
Expand Down Expand Up @@ -225,7 +224,7 @@
"dependencies": {
"@linear/sdk": "^13.0.0",
"@raycast/api": "^1.64.5",
"@raycast/utils": "^1.12.1",
"@raycast/utils": "^1.14.1",
"date-fns": "^3.1.0",
"file-type": "^18.7.0",
"lodash": "^4.17.21",
Expand Down
8 changes: 0 additions & 8 deletions extensions/linear/src/helpers/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ export function getNotificationTitle(notification: NotificationResult) {
return notificationTitles[notification.type] || "Unknown notification";
}

export function getNotificationMenuBarIcon(unreadNotifications: NotificationResult[]) {
return {
source: { dark: "dark/linear.svg", light: "light/linear.svg" },
tintColor:
unreadNotifications.length !== 0 ? { dark: "#5E6AD2", light: "#5E6AD2", adjustContrast: false } : undefined,
};
}

export function getNotificationMenuBarTitle(unreadNotifications: NotificationResult[]) {
return unreadNotifications.length !== 0 ? String(unreadNotifications.length) : undefined;
}
Expand Down
11 changes: 3 additions & 8 deletions extensions/linear/src/unread-notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ import {
import { NotificationResult } from "./api/getNotifications";
import { updateNotification } from "./api/updateNotification";
import View from "./components/View";
import {
getNotificationMenuBarIcon,
getNotificationMenuBarTitle,
getNotificationTitle,
getNotificationURL,
} from "./helpers/notifications";
import { getNotificationMenuBarTitle, getNotificationTitle, getNotificationURL } from "./helpers/notifications";
import { getUserIcon } from "./helpers/users";
import useNotifications from "./hooks/useNotifications";

Expand Down Expand Up @@ -67,13 +62,13 @@ function UnreadNotifications() {
return (
<MenuBarExtra
title={getNotificationMenuBarTitle(unreadNotifications)}
icon={getNotificationMenuBarIcon(unreadNotifications)}
icon={{ source: { dark: "dark/linear.svg", light: "light/linear.svg" } }}
isLoading={isLoadingNotifications}
>
<MenuBarExtra.Section>
<MenuBarExtra.Item
title="Open Inbox"
icon="linear.png"
icon="linear-app-icon.png"
shortcut={{ modifiers: ["cmd"], key: "o" }}
onAction={openInbox}
/>
Expand Down
4 changes: 4 additions & 0 deletions extensions/slack-status/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Slack Status Change

## [Fix Slack icon] - 2024-04-26

- Make the Slack icon larger on the OAuth screen

## [Set Slack status from Raycast's root search] - 2024-02-23

- You can now create quicklinks from the `Set Status` command making it possible to set your favorite Slack status from Raycast's root search.
Expand Down
33 changes: 24 additions & 9 deletions extensions/slack-status/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/slack-status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"dependencies": {
"@raycast/api": "^1.60.0",
"@raycast/utils": "^1.12.5",
"@raycast/utils": "^1.14.1",
"@slack/web-api": "^6.4.0",
"moment": "^2.29.1",
"nanoid": "^5.0.5",
Expand Down