Compare commits

..

9 Commits

Author SHA1 Message Date
Moyasee
10ac6c9d9c style: update repacks modal styles for improved layout and positioning 2026-01-20 19:03:35 +02:00
Moyasee
9ca6a114b1 feat: enhance repack availability status display with new UI elements and translations 2026-01-20 18:52:52 +02:00
Zamitto
7293afb618 Merge branch 'release/v3.8.0' 2026-01-15 08:43:06 -03:00
Zamitto
194e7918ca feat: dont setup ww feedback widget if user has no token 2026-01-15 08:42:33 -03:00
Zamitto
979958aca6 feat: update ww webRequest interceptor 2026-01-14 19:37:17 -03:00
Zamitto
6e92e0f79f fix: getLibrary throwing error 2026-01-14 00:37:22 -03:00
Zamitto
aef069d4c7 Merge branch 'release/v3.8.1' 2026-01-14 00:07:53 -03:00
Zamitto
5d2dc3616c Merge pull request #1938 from hydralauncher/release/v3.8.1
sync main
2026-01-13 23:43:48 -03:00
Zamitto
96140e614c Merge pull request #1917 from hydralauncher/fix/friends-box-display
hotfix: add empty state for friends box and new translation key
2026-01-04 02:59:53 -03:00
5 changed files with 67 additions and 3 deletions

View File

@@ -372,6 +372,9 @@
"audio": "Audio",
"filter_by_source": "Filter by source",
"no_repacks_found": "No sources found for this game",
"source_online": "Source is online",
"source_partial": "Some links are offline",
"source_offline": "Source is offline",
"delete_review": "Delete review",
"remove_review": "Remove Review",
"delete_review_modal_title": "Are you sure you want to delete your review?",

View File

@@ -25,7 +25,7 @@ const getLibrary = async (): Promise<LibraryGame[]> => {
const achievements = await gameAchievementsSublevel.get(key);
unlockedAchievementCount =
achievements?.unlockedAchievements.length ?? 0;
achievements?.unlockedAchievements?.length ?? 0;
}
return {

View File

@@ -138,12 +138,21 @@ export class WindowManager {
(details, callback) => {
if (
details.webContentsId !== this.mainWindow?.webContents.id ||
details.url.includes("chatwoot") ||
details.url.includes("workwonders")
details.url.includes("chatwoot")
) {
return callback(details);
}
if (details.url.includes("workwonders")) {
return callback({
...details,
requestHeaders: {
Origin: "https://workwonders.app",
...details.requestHeaders,
},
});
}
const userAgent = new UserAgent();
callback({

View File

@@ -40,6 +40,34 @@
gap: calc(globals.$spacing-unit * 1);
color: globals.$body-color;
padding: calc(globals.$spacing-unit * 2);
padding-right: calc(globals.$spacing-unit * 4);
position: relative;
}
&__availability-orb {
position: absolute;
top: calc(globals.$spacing-unit * 1.5);
right: calc(globals.$spacing-unit * 1.5);
width: 8px;
height: 8px;
border-radius: 50%;
flex-shrink: 0;
&--online {
background-color: #22c55e;
box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}
&--partial {
background-color: #eab308;
box-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}
&--offline {
background-color: #ef4444;
opacity: 0.7;
box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}
}
&__repack-title {

View File

@@ -6,6 +6,7 @@ import {
ChevronDownIcon,
ChevronUpIcon,
} from "@primer/octicons-react";
import { Tooltip } from "react-tooltip";
import {
Badge,
@@ -185,6 +186,20 @@ export function RepacksModal({
);
}, [repacks, hashesInDebrid]);
const getRepackAvailabilityStatus = (
repack: GameRepack
): "online" | "partial" | "offline" => {
const unavailableSet = new Set(repack.unavailableUris ?? []);
const availableCount = repack.uris.filter(
(uri) => !unavailableSet.has(uri)
).length;
const unavailableCount = repack.uris.length - availableCount;
if (unavailableCount === 0) return "online";
if (availableCount === 0) return "offline";
return "partial";
};
useEffect(() => {
const term = filterTerm.trim().toLowerCase();
@@ -363,6 +378,8 @@ export function RepacksModal({
filteredRepacks.map((repack) => {
const isLastDownloadedOption =
checkIfLastDownloadedOption(repack);
const availabilityStatus = getRepackAvailabilityStatus(repack);
const tooltipId = `availability-orb-${repack.id}`;
return (
<Button
@@ -371,6 +388,13 @@ export function RepacksModal({
onClick={() => handleRepackClick(repack)}
className="repacks-modal__repack-button"
>
<span
className={`repacks-modal__availability-orb repacks-modal__availability-orb--${availabilityStatus}`}
data-tooltip-id={tooltipId}
data-tooltip-content={t(`source_${availabilityStatus}`)}
/>
<Tooltip id={tooltipId} />
<p className="repacks-modal__repack-title">
{repack.title}
{userPreferences?.enableNewDownloadOptionsBadges !==