Skip to content

Commit 66a44b3

Browse files
committed
fix: fix front end CD
1 parent 9b20d32 commit 66a44b3

3 files changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,9 @@ jobs:
4141
./clever-tools-latest_linux/clever link $CLEVER_APP_ID
4242
./clever-tools-latest_linux/clever deploy -f
4343
44-
# The frontend used to be a Next.js Node.js app on Clever; it's now a
45-
# Vite-built SPA served by Clever's static (Caddy) engine. The deploy
46-
# command is identical (git push), only the target app changes —
47-
# `FE_CLEVER_APP_ID_PROD` must be pointed at the new static app and
48-
# `FE_CLEVER_APP_ALIAS_PROD` set to that app's alias (no underscores;
49-
# see https://github.com/CleverCloud/clever-tools for the alias-escape
50-
# workaround required by `clever deploy -a <alias>`).
5144
- name: Deploy frontend (static SPA) to Clever Cloud (PROD)
5245
env:
5346
CLEVER_APP_ID: ${{ secrets.FE_CLEVER_APP_ID_PROD }}
54-
CLEVER_APP_ALIAS: ${{ secrets.FE_CLEVER_APP_ALIAS_PROD }}
5547
run: |
5648
./clever-tools-latest_linux/clever link $CLEVER_APP_ID
57-
./clever-tools-latest_linux/clever deploy -f -a $CLEVER_APP_ALIAS --quiet
49+
./clever-tools-latest_linux/clever deploy -f

webapp/src/components/runs-scatter-chart.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ export default function RunsScatterChart({
115115
);
116116
const tickFmt = useMemo(() => {
117117
if (points.length < 2) return "MMM d, HH:mm";
118-
return pickTimeFormat(
119-
points[points.length - 1].ts - points[0].ts,
120-
);
118+
return pickTimeFormat(points[points.length - 1].ts - points[0].ts);
121119
}, [points]);
122120

123121
if (isLoading) {

webapp/src/pages/PublicProjectPage.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,12 @@ export default function PublicProjectPage() {
151151
};
152152
}, [projectId, project, date]);
153153

154-
const handleExperimentClick = useCallback(
155-
(experimentId: string) => {
156-
setSelectedExperimentId((current) =>
157-
experimentId === current ? "" : experimentId,
158-
);
159-
setSelectedRunId("");
160-
},
161-
[],
162-
);
154+
const handleExperimentClick = useCallback((experimentId: string) => {
155+
setSelectedExperimentId((current) =>
156+
experimentId === current ? "" : experimentId,
157+
);
158+
setSelectedRunId("");
159+
}, []);
163160

164161
const handleRunClick = useCallback((runId: string) => {
165162
setSelectedRunId((current) => (runId === current ? "" : runId));

0 commit comments

Comments
 (0)