Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 15, 2024
1 parent 586af70 commit 6077505
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 39 deletions.
45 changes: 41 additions & 4 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@astrolib/seo": "1.0.0-beta.5",
"@astropub/md": "^0.4.0",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@typescript-eslint/parser": "^7.13.1",
Expand Down
4 changes: 4 additions & 0 deletions source/content/apps/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ links:
olderMacOSVersions:
- '12'
- '13'
feedbackNote: |
### If you get a “com.apple.extensionKit.errorDomain error 2” error when running your shortcut or if the actions don't show up in the Shortcuts app, restart your device. This is caused by an iOS bug.
**Some actions that are not possible: orientation lock status, flashlight status, ambient sensor info, flight mode status. Generally, anything related to changing system features/settings or interacting with other apps is not possible.**
---

The app provides lots of powerful extra actions for the Shortcuts app on macOS, iOS, and visionOS. These actions make it significantly easier to create shortcuts.
Expand Down
6 changes: 6 additions & 0 deletions source/content/apps/dato.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ olderMacOSVersions:
- '11'
- '12'
- '13'
feedbackNote: |
**The latest Dato update (5.3.1) triggered a bug in macOS which caused Dato to crash for some users. I have already submitted an update to Apple with a fix. In the meantime, you can use [this build](https://www.dropbox.com/scl/fi/kwj1770j2kv6v43jktlpy/Dato-1721033675.zip?rlkey=4imyq4ydqsr1quuegpt8d3wzq&raw=1). Sorry about the inconvenience.**
---

### Dato not launching

**The latest Dato update (5.3.1) triggered a bug in macOS which caused Dato to crash for some users. I have already submitted an update to Apple with a fix. In the meantime, you can use [this build](https://www.dropbox.com/scl/fi/kwj1770j2kv6v43jktlpy/Dato-1721033675.zip?rlkey=4imyq4ydqsr1quuegpt8d3wzq&raw=1). Sorry about the inconvenience.**

Dato gives you a local clock, date, and multiple world clocks in the menu bar. When you click Dato in the menu bar, you get a menu with a calendar, calendar events, and world clocks. All of this is highly customizable.

[MacStories review of Dato.](https://www.macstories.net/reviews/dato-review-calendar-events-and-time-zones-from-your-macs-menu-bar/)
Expand Down
4 changes: 4 additions & 0 deletions source/content/apps/menu-bar-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ No. You only need to run the app once to apply the changes.

It depends on your needs. If you primarily use those apps to fit more items in the menu bar, this app is a good alternative.

#### iStat Menus disappeared when I moved the slider

Menu Bar Spacing needs to relaunch all menu bar items for changes to take effect. iStat Menus may take a while to relaunch. If it doesn't reappear, try moving the slider again. Restarting your computer will definitely fix it.

#### Can you add more features?

No. This app is intentionally simple and focused.
Expand Down
4 changes: 2 additions & 2 deletions source/content/apps/online-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ A Wi-Fi connection only means you are connected to a network. The app verifies i

#### The app shows that I'm offline even though I'm not

- Ensure network requests from the app to apple.com and cloudflare.com are not blocked. These domains are used to verify your online status.
- Ensure network requests from the app to apple.com and cloudflare.com are not blocked. These domains are used to verify your online status.

#### How can I run this only when not connected to certain networks?

Use the [Shortery](https://apps.apple.com/app/id1594183810) app. Create a shortcut in the Shortcuts app to launch and quit this app. Then, set up a "Wi-Fi" trigger in Shortery to run the shortcut based on your Wi-Fi connection status. This allows the app to launch or quit when connecting to or disconnecting from specific Wi-Fi networks.

#### How does it work?

Every 20 seconds, it sends a HEAD request to “apple.com”. If that fails, it sends a HEAD request to “cloudflare.com”. If both requests fail, it considers the internet to be offline.
Every 20 seconds and anytime the network changes, it sends a HEAD request to “apple.com”. If that fails, it sends a HEAD request to “cloudflare.com”. If both requests fail, it considers the internet to be offline.

#### Can you make the history persistent?

Expand Down
2 changes: 1 addition & 1 deletion source/content/apps/plain-text-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The app is made using Apple's latest technologies (SwiftUI) and they have not ad

#### Why is it suddenly showing a scrollbar?

You most likely have an external mouse connected. This is simply how macOS works. You can see the behavior in other text editing apps too. The behavior is completely out of my control.
You either have a system setting set to always show scrollbars or you have an external mouse connected. This is simply how macOS works. You can see the behavior in other text editing apps too. See the “Appearance › Show scroll bars” system setting.

#### The “Check Spelling While Typing” setting in the context menu does not work

Expand Down
4 changes: 4 additions & 0 deletions source/content/apps/speediness.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ It's a measurement of the round-trip time for messages sent from the originating

The app makes use of the built-in [`networkQuality` command-line tool](https://support.apple.com/en-gb/HT212313) under the hood, which is provided by Apple.

#### Can it show a progress bar instead of a spinner?

No, a progress bar would not accurately reflect progress due to the variability in testing time, which depends on factors like network speed and other unknown conditions.

#### Can it show the current speed live as it calculates it?

This is not possible as it's not provided by the macOS tool Speediness uses to get the speed.
Expand Down
6 changes: 6 additions & 0 deletions source/content/apps/velja.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ appStoreId: 1607635845
olderMacOSVersions:
- '12'
- '13'
feedbackNote: |
[Can you support Safari profiles?](/velja#safari-profiles)
[Can you support Arc spaces/profiles?](/velja#arc)
**If you're requesting an addition to the “Apps” list, [please read this](https://sindresorhus.com/velja#builtin-apps-requests).**
---

Open links in a specific browser or a matching native app. Easily switch between browsers.
Expand Down
1 change: 1 addition & 0 deletions source/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const appsCollection = defineCollection({
'19',
'20',
])).optional(),
feedbackNote: z.string().optional(),
}).strict(),
});

Expand Down
50 changes: 18 additions & 32 deletions source/pages/feedback.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,25 @@ const meta = {
};
// eslint-disable-next-line unicorn/no-await-expression-member
const apps = (await fetchApps()).map(({title, url, iconUrl, repoUrl, hasFaqSection}) => ({
const apps = (await fetchApps()).map(({
title,
url,
iconUrl,
repoUrl,
hasFaqSection,
feedbackNote,
}) => ({
title,
url,
iconUrl,
repoUrl,
hasFaqSection,
feedbackNote,
}));
const inputCSS = 'block p-2.5 w-full text-lg text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500';
const labelCSS = 'block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300';
---

<Layout {meta}>
Expand All @@ -31,16 +41,16 @@ const inputCSS = 'block p-2.5 w-full text-lg text-gray-900 bg-gray-50 rounded-lg
<form id="feedback-form" class="mt-8" action="https://formcarry.com/s/UBfgr97yfY" method="POST" enctype="multipart/form-data" onsubmit="document.querySelector('#submit-button').disabled=true">
<input type="hidden" name="_gotcha">
<div class="mb-6">
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" for="message">Message*</label>
<label class={labelCSS} for="message">Message*</label>
<textarea class={inputCSS} placeholder="I'm a human. Please be nice." name="message" minlength="20" rows="7" required autofocus></textarea>
</div>
<div class="mb-6">
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" for="email">Email*</label>
<label class={labelCSS} for="email">Email*</label>
<input class={inputCSS} type="email" name="email" autocomplete="email" required>
<small>Only used for replying to you.</small>
</div>
<div class="mb-6">
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300" class="label" for="email">Attachments</label>
<label class={labelCSS} class="label" for="attachments">Attachments</label>
<input class={inputCSS} type="file" name="attachments" multiple>
</div>
<br>
Expand Down Expand Up @@ -83,43 +93,19 @@ const inputCSS = 'block p-2.5 w-full text-lg text-gray-900 bg-gray-50 rounded-lg

const url = `${app.repoUrl}/issues/new?${searchParams}`;

$('#additional-info').show().html(`
$('#additional-info').show().append(`
If you have a GitHub account, <a href="${url}">open an issue on the repo</a> instead.
`);
}

if (app?.hasFaqSection) {
$('#additional-info').show().html(`
See the <a href="${app.url}#faq">app's frequently asked questions (FAQs)</a> and the <a href="/apps/faq">general FAQs</a> in case your question has already been answered.\nMake sure you are on the latest version and try to restart your device.
`);
}

// Temporary.
if (product === 'Velja') {
$('#additional-info').show().append(`
<br><br><a href="${app.url}#safari-profiles">Can you support Safari profiles?</a><br><br><a href="${app.url}#arc">Can you support Arc spaces/profiles?</a><br><br><b>If you're requesting an addition to the “Apps” list, <a href="https://sindresorhus.com/velja#builtin-apps-requests">please read this</a>.</b><br><br>
`);
}

if (product === 'Dato') {
$('#additional-info').show().append(`
<br><br><b>The latest Dato update (5.3.1) triggered a bug in macOS which caused Dato to crash for some users. I have already submitted an update to Apple with a fix. In the meantime, you can use <a href="https://www.dropbox.com/scl/fi/6x5r54zs0kztzaf5441gb/Dato-1720772869.zip?rlkey=w2c27es5c6m7140hsvvgi7huf&raw=1">this build</a>. Sorry about the inconvenience.</b><br><br>
`);
}

if (product === 'Actions') {
$('#additional-info').show().append(`
<br><br><h3>If you get a “com.apple.extensionKit.errorDomain error 2” error when running your shortcut or if the actions don't show up in the Shortcuts app, restart your device. This is caused by a iOS bug.</h3>
<br><br><b>Some actions that are not possible: orientation lock status, flashlight status, ambient sensor info, flight mode status. Generally, anything related to changing system features/settings or interacting with other apps is not possible.</b>
<br>
<br>
See the <a href="${app.url}#faq">app's frequently asked questions (FAQs)</a> and the <a href="/apps/faq">general FAQs</a> in case your question has already been answered.\nMake sure you are on the latest version and try to restart your device.
`);
}

if (product === 'AI Actions') {
$('#additional-info').show().append(`
<br><br><h3>Apple is currently blocking updates to this app because they don't like the use of OpenAI keys without in-app purchase (they want their 30% of OpenAI revenue), so until EU forces them to allow side-loading and alternative App Store's, I won't be able to make any improvements to this app...</h3>
`);
if (app?.feedbackNote) {
$('#additional-info').show().append(`<div>${app?.feedbackNote}</div>`);
}
}

Expand Down
4 changes: 4 additions & 0 deletions source/utils/apps.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {markdown} from '@astropub/md';
import {getCollection} from 'astro:content';

const normalizeApps = async app => {
Expand Down Expand Up @@ -58,6 +59,8 @@ const normalizeApps = async app => {
return object;
});

const feedbackNote = await markdown(data.feedbackNote);

return {
...data,
pubDate,
Expand All @@ -77,6 +80,7 @@ const normalizeApps = async app => {
olderVersionsUrl: data.repoUrl ? `${data.repoUrl}#download` : `/${slug}#older-versions`,
...(data.appStoreId && {appStoreUrl: `https://apps.apple.com/app/id${data.appStoreId}`}),
...(data.setappId && {setappUrl: `https://go.setapp.com/stp181?refAppID=${data.setappId}&utm_medium=vendor_program&utm_content=button`}),
feedbackNote,
};
};

Expand Down

0 comments on commit 6077505

Please sign in to comment.