Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: setup
run: |
echo "build_start=$(date '+%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
echo "beta_version=beta-$(date -u '+%Y%m%d%H%M%S')-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "beta_version=$(grep -m1 '^version' service/pyproject.toml | sed 's/version = "\(.*\)"/\1/')" >> $GITHUB_OUTPUT
echo "commit_author=$(git log -1 --pretty=format:'%an')" >> $GITHUB_OUTPUT
echo "commit_email=$(git log -1 --pretty=format:'%ae')" >> $GITHUB_OUTPUT
echo "commit_message=$(git log -1 --pretty=format:'%s')" >> $GITHUB_OUTPUT
Expand Down
19 changes: 2 additions & 17 deletions web/src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import { AnimatePresence, motion } from "motion/react";
import { useCallback, useEffect, useState } from "react";

import { SecretCodePage } from "@/components/admin/SecretCodePage";
import { CenteredInput, UpdateOverlay } from "@/components/features";
import { CenteredInput } from "@/components/features";
import { DEFAULT_BACKEND_URL } from "@/configs";
import { MOBILE_BREAKPOINT } from "@/configs/common";
import { useAutoUpdate } from "@/hooks/useAutoUpdate";
import useTheme from "@/hooks/useTheme";
import { LAYOUT_STYLE, type InputPosition } from "@/store/slices/uiSlice/types";
import { AppFullscreen } from "./AppFullscreen";
Expand Down Expand Up @@ -260,7 +259,7 @@ export function Xyzen({
<AuthErrorScreen onRetry={handleRetry} variant="fullscreen" />
)
) : (
<AutoUpdateWrapper>{mainLayout}</AutoUpdateWrapper>
<>{mainLayout}</>
);

// Check if we're on the secret code page
Expand All @@ -279,20 +278,6 @@ export function Xyzen({
);
}

/**
* Wrapper component that handles auto-update logic.
* Must be rendered inside QueryClientProvider since it uses useBackendVersion.
*/
function AutoUpdateWrapper({ children }: { children: React.ReactNode }) {
const { isUpdating, targetVersion } = useAutoUpdate();

if (isUpdating && targetVersion) {
return <UpdateOverlay targetVersion={targetVersion} />;
}

return <>{children}</>;
}

const LOADING_MESSAGES = [
"我要加广告,老板说不行",
"「懒」是第一生产力",
Expand Down
22 changes: 10 additions & 12 deletions web/src/components/agents/AgentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,11 @@ export const AgentList: React.FC<AgentListProps> = (props) => {
>
{content}
</SortableContext>
// NOTE: Render DragOverlay into document.body to avoid positioning
bugs when // this list is inside a transformed/animated container
(e.g. framer-motion). // CSS transforms create a new containing block,
which can cause @dnd-kit’s // fixed-position overlay to calculate
coordinates relative to that container // (often showing the dragged
item jumping to the bottom).
{/* NOTE: Render DragOverlay into document.body to avoid positioning bugs when
this list is inside a transformed/animated container (e.g. framer-motion).
CSS transforms create a new containing block, which can cause @dnd-kit's
fixed-position overlay to calculate coordinates relative to that container
(often showing the dragged item jumping to the bottom). */}
{createPortal(
<DragOverlay>{renderOverlayItem()}</DragOverlay>,
document.body,
Expand Down Expand Up @@ -404,12 +403,11 @@ export const AgentList: React.FC<AgentListProps> = (props) => {
>
{content}
</SortableContext>
// NOTE: Render DragOverlay into document.body to avoid positioning bugs
when // this list is inside a transformed/animated container (e.g.
framer-motion). // CSS transforms create a new containing block, which
can cause @dnd-kit’s // fixed-position overlay to calculate coordinates
relative to that container // (often showing the dragged item jumping to
the bottom).
{/* NOTE: Render DragOverlay into document.body to avoid positioning bugs when
this list is inside a transformed/animated container (e.g. framer-motion).
CSS transforms create a new containing block, which can cause @dnd-kit's
fixed-position overlay to calculate coordinates relative to that container
(often showing the dragged item jumping to the bottom). */}
{createPortal(
<DragOverlay>{renderOverlayItem()}</DragOverlay>,
document.body,
Expand Down
24 changes: 0 additions & 24 deletions web/src/components/features/UpdateOverlay.tsx

This file was deleted.

1 change: 0 additions & 1 deletion web/src/components/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ export { CenteredInput } from "./CenteredInput";
export { FileUploadButton } from "./FileUploadButton";
export { FileUploadThumbnail } from "./FileUploadThumbnail";
export { FileUploadPreview } from "./FileUploadPreview";
export { UpdateOverlay } from "./UpdateOverlay";
164 changes: 0 additions & 164 deletions web/src/hooks/useAutoUpdate.ts

This file was deleted.