Fix release naming, lockfile bloat, and source reorder UI

This commit is contained in:
pvrzz
2026-09-17 20:06:21 -04:00
parent fb71ce1c9d
commit 1f1674f441
8 changed files with 70 additions and 5142 deletions
+5
View File
@@ -18,3 +18,8 @@ apps/web/
# Staging copies of fetched icons, already mirrored into the app itself # Staging copies of fetched icons, already mirrored into the app itself
design/ design/
# Generated against the full local monorepo (including the closed-source website),
# which pulls in platform binaries this repo doesn't need. A fresh clone of just
# apps/desktop + packages/* regenerates its own minimal lockfile via `pnpm install`.
pnpm-lock.yaml
+2
View File
@@ -0,0 +1,2 @@
supportedArchitectures.os[]=win32
supportedArchitectures.cpu[]=x64
+1 -1
View File
@@ -12,5 +12,5 @@ extraResources:
win: win:
target: portable target: portable
icon: build/icon.ico icon: build/icon.ico
artifactName: ${productName}-${version}-portable.${ext} artifactName: directify_v${version}.${ext}
asar: true asar: true
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="none" stroke="#9CA3A8" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/></svg>

After

Width:  |  Height:  |  Size: 206 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="none" stroke="#9CA3A8" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m18 15l-6-6l-6 6"/></svg>

After

Width:  |  Height:  |  Size: 210 B

@@ -253,7 +253,7 @@ export function SettingsPage() {
style={{ style={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
justifyContent: "space-between", gap: 12,
padding: "10px 14px", padding: "10px 14px",
borderRadius: "var(--df-radius-sm)", borderRadius: "var(--df-radius-sm)",
background: "var(--df-surface-2)", background: "var(--df-surface-2)",
@@ -261,27 +261,56 @@ export function SettingsPage() {
opacity: source.enabled ? 1 : 0.55, opacity: source.enabled ? 1 : 0.55,
}} }}
> >
<div style={{ display: "flex", flexDirection: "column" }}> <div
<div style={{ display: "flex", gap: 4, marginBottom: 2 }}> style={{
<Button display: "flex",
variant="ghost" flexDirection: "column",
aria-label={t("settings.moveUp")} borderRadius: "var(--df-radius-sm)",
disabled={index === 0} overflow: "hidden",
onClick={() => moveSource(index, -1)} border: "1px solid var(--df-border)",
style={{ padding: "2px 6px" }} flexShrink: 0,
> }}
↑ >
</Button> <button
<Button aria-label={t("settings.moveUp")}
variant="ghost" disabled={index === 0}
aria-label={t("settings.moveDown")} onClick={() => moveSource(index, -1)}
disabled={index === settings.searchSources.length - 1} style={{
onClick={() => moveSource(index, 1)} display: "flex",
style={{ padding: "2px 6px" }} alignItems: "center",
> justifyContent: "center",
↓ width: 24,
</Button> height: 18,
</div> background: "var(--df-surface-1)",
border: "none",
borderBottom: "1px solid var(--df-border)",
cursor: index === 0 ? "not-allowed" : "pointer",
opacity: index === 0 ? 0.35 : 1,
}}
>
<Icon name="chevron-up" size={12} />
</button>
<button
aria-label={t("settings.moveDown")}
disabled={index === settings.searchSources.length - 1}
onClick={() => moveSource(index, 1)}
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
width: 24,
height: 18,
background: "var(--df-surface-1)",
border: "none",
cursor: index === settings.searchSources.length - 1 ? "not-allowed" : "pointer",
opacity: index === settings.searchSources.length - 1 ? 0.35 : 1,
}}
>
<Icon name="chevron-down" size={12} />
</button>
</div>
<div style={{ flex: 1, minWidth: 0 }}>
<div style={{ fontWeight: 600, fontSize: 14 }}> <div style={{ fontWeight: 600, fontSize: 14 }}>
{source.name}{" "} {source.name}{" "}
{source.builtIn && ( {source.builtIn && (
@@ -294,7 +323,8 @@ export function SettingsPage() {
{source.baseUrl} {source.baseUrl}
</div> </div>
</div> </div>
<div style={{ display: "flex", gap: 8, alignItems: "center" }}>
<div style={{ display: "flex", gap: 8, alignItems: "center", flexShrink: 0 }}>
<label <label
style={{ display: "flex", alignItems: "center", gap: 6, fontSize: 12 }} style={{ display: "flex", alignItems: "center", gap: 6, fontSize: 12 }}
title={t("settings.enabled")} title={t("settings.enabled")}
@@ -312,6 +342,7 @@ export function SettingsPage() {
variant="ghost" variant="ghost"
aria-label={`${t("common.remove")} ${source.name}`} aria-label={`${t("common.remove")} ${source.name}`}
onClick={() => removeSource(source.id)} onClick={() => removeSource(source.id)}
style={{ padding: "6px 8px" }}
> >
<Icon name="trash-2" size={14} /> <Icon name="trash-2" size={14} />
</Button> </Button>
+6 -4
View File
@@ -37,18 +37,20 @@ const hoverGlow: Partial<Record<NonNullable<ButtonProps["variant"]>, string>> =
accent: "var(--df-glow-blue)", accent: "var(--df-glow-blue)",
}; };
export function Button({ variant = "primary", style, children, ...rest }: ButtonProps) { export function Button({ variant = "primary", style, disabled, children, ...rest }: ButtonProps) {
return ( return (
<motion.button <motion.button
whileHover={{ y: -2, filter: "brightness(1.08)", boxShadow: hoverGlow[variant] }} disabled={disabled}
whileTap={{ y: 0, scale: 0.98 }} whileHover={disabled ? undefined : { y: -2, filter: "brightness(1.08)", boxShadow: hoverGlow[variant] }}
whileTap={disabled ? undefined : { y: 0, scale: 0.98 }}
transition={{ type: "spring", stiffness: 500, damping: 30 }} transition={{ type: "spring", stiffness: 500, damping: 30 }}
style={{ style={{
padding: "10px 20px", padding: "10px 20px",
borderRadius: "var(--df-radius-sm)", borderRadius: "var(--df-radius-sm)",
fontWeight: 600, fontWeight: 600,
fontSize: 14, fontSize: 14,
cursor: "pointer", cursor: disabled ? "not-allowed" : "pointer",
opacity: disabled ? 0.4 : 1,
...variantStyles[variant], ...variantStyles[variant],
...style, ...style,
}} }}
-5114
View File
File diff suppressed because it is too large Load Diff