Skip to content

build: use remix #3599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
3a1a5df
build: updgrade react-router to v7.3.0
leafty Mar 18, 2025
5258f7f
fix help nav
leafty Mar 18, 2025
d14a075
fix useEffect()
leafty Mar 18, 2025
e7532e8
huh
leafty Mar 18, 2025
9d94ac7
:3
leafty Mar 18, 2025
4a01e5e
package-lock
leafty Mar 19, 2025
64b04fa
cleanup
leafty Mar 19, 2025
9ba23bd
build: use remix
leafty Mar 19, 2025
e3c4539
can render landing page
leafty Mar 18, 2025
82c2213
style fixes
leafty Mar 18, 2025
efb15cd
wip
leafty Mar 19, 2025
855dfe3
wip
leafty Mar 19, 2025
d62f3fa
wip
leafty Mar 18, 2025
47be5fe
fix port
leafty Mar 18, 2025
0cb3003
fix config.json
leafty Mar 18, 2025
dcc03fd
try server-side data loading
leafty Mar 18, 2025
baf76ef
fix config.json
leafty Mar 18, 2025
9129968
Try to send metadata
leafty Mar 18, 2025
a3786ff
correct meta
leafty Mar 18, 2025
dad924b
wip
leafty Mar 19, 2025
27183eb
cleanup
leafty Mar 19, 2025
a82eaf1
wip
leafty Mar 19, 2025
01b6876
debug
leafty Mar 19, 2025
489411d
rename route file
leafty Mar 19, 2025
0afaac2
more routes
leafty Mar 19, 2025
d4fdff3
update
leafty Mar 19, 2025
02f892e
update client/.eslintignore
leafty Jun 4, 2025
2f9d5ba
update client/package.json
leafty Jun 4, 2025
054c030
Merge remote-tracking branch 'origin/main' into leafty/exp-remix
leafty Jun 4, 2025
8d7fa34
update package.json
leafty Jun 4, 2025
4941dde
move src files
leafty Jun 4, 2025
c8825db
fix client/app/routes/$.tsx
leafty Jun 4, 2025
ee635e2
fix client/app/old-src/oldIndex.jsx
leafty Jun 4, 2025
797136c
fixes
leafty Jun 4, 2025
bbd57e2
Merge remote-tracking branch 'origin/main' into leafty/exp-remix
leafty Jun 5, 2025
519b290
fixes
leafty Jun 5, 2025
c2addc2
fix
leafty Jun 5, 2025
b5d7fae
lint
leafty Jun 5, 2025
974ac9b
fix
leafty Jun 5, 2025
21be862
fix sb
leafty Jun 5, 2025
e89fe2a
fixes
leafty Jun 5, 2025
d5dd66e
fix storybook
leafty Jun 5, 2025
3745d60
fix server-side routes
leafty Jun 5, 2025
8433b06
update scripts, make telepresence work
leafty Jun 6, 2025
96c47a3
fix Dockerfile
leafty Jun 6, 2025
8e826c4
fix
leafty Jun 6, 2025
835b0b4
fix
leafty Jun 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 9 additions & 8 deletions client/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
*.css
*.svg
# Generated files should not be linted
src/features/dataConnectorsV2/api/data-connectors.api.ts
src/features/dataConnectorsV2/api/doiResolver.generated-api.ts
src/features/project/components/cloudStorage/api/projectCloudStorage.generated-api.ts
src/features/projectsV2/api/projectV2.api.ts
src/features/sessionsV2/api/sessionLaunchersV2.generated-api.ts
src/features/sessionsV2/api/sessionsV2.generated-api.ts
src/features/usersV2/api/users.generated-api.ts
src/features/searchV2/api/searchV2Api.generated-api.ts
app/old-src/features/dataConnectorsV2/api/data-connectors.api.ts
app/old-src/features/dataConnectorsV2/api/doiResolver.generated-api.ts
app/old-src/features/project/components/cloudStorage/api/projectCloudStorage.generated-api.ts
app/old-src/features/projectsV2/api/projectV2.api.ts
app/old-src/features/projectsV2/api/storagesV2.api.ts
app/old-src/features/searchV2/api/searchV2Api.generated-api.ts
app/old-src/features/sessionsV2/api/sessionLaunchersV2.generated-api.ts
app/old-src/features/sessionsV2/api/sessionsV2.generated-api.ts
app/old-src/features/usersV2/api/users.generated-api.ts
8 changes: 6 additions & 2 deletions client/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../app/old-src/**/*.stories.@(js|jsx|ts|tsx)"],
staticDirs: ["../public"],
addons: [
"@storybook/addon-essentials",
Expand All @@ -12,7 +12,11 @@ const config: StorybookConfig = {

framework: {
name: "@storybook/react-vite",
options: {},
options: {
builder: {
viteConfigPath: "vite.storybook.config.ts",
},
},
},
typescript: {
reactDocgen: "react-docgen-typescript",
Expand Down
12 changes: 6 additions & 6 deletions client/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import React from "react";
import { Provider } from "react-redux";
import { MemoryRouter } from "react-router";

import type { AppContextType } from "../src/utils/context/appContext";
import AppContext from "../src/utils/context/appContext";
import { DEFAULT_APP_PARAMS } from "../src/utils/context/appParams.constants";
import { createStore } from "../src/utils/helpers/EnhancedState";
import { createCoreApiVersionedUrlConfig } from "../src/utils/helpers/url";
import type { AppContextType } from "../app/old-src/utils/context/appContext";
import AppContext from "../app/old-src/utils/context/appContext";
import { DEFAULT_APP_PARAMS } from "../app/old-src/utils/context/appParams.constants";
import { createStore } from "../app/old-src/utils/helpers/EnhancedState";
import { createCoreApiVersionedUrlConfig } from "../app/old-src/utils/helpers/url";

import "../src/styles/renku_bootstrap.scss";
import "../app/old-src/styles/renku_bootstrap.scss";

// This how the documentation recommends introducing the store into storybook
// https://storybook.js.org/addons/@dreamworld/addon-redux/
Expand Down
54 changes: 29 additions & 25 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,57 @@ RUN npm ci

COPY index.html tsconfig.json tsconfig.node.json vite.config.ts /app/
COPY public /app/public
COPY src /app/src/
COPY app /app/app/

ENV NODE_OPTIONS="--max-old-space-size=4096"

RUN npm run-script build

COPY vite.storybook.config.ts /app/
COPY .storybook /app/.storybook

RUN npm run storybook-build -- -o storybook-static

FROM nginxinc/nginx-unprivileged:1.27-alpine
FROM node:22-alpine

WORKDIR /app

COPY --from=builder /app/build /app/build
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/package.json /app/package.json

COPY --from=builder /app/build /usr/share/nginx/html
COPY --from=builder /app/storybook-static /usr/share/nginx/html/storybook
COPY nginx.vh.default.conf /etc/nginx/conf.d/default.conf
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
COPY scripts/generate_sitemap.sh /app/scripts/generate_sitemap.sh

# Set up the config files written by docker-entrypoint
USER root
RUN touch /usr/share/nginx/html/config.json
RUN chmod a+r /usr/share/nginx/html/config.json
RUN chown nginx /usr/share/nginx/html/config.json
RUN touch /app/build/client/config.json
RUN chmod a+r /app/build/client/config.json
RUN chown node /app/build/client/config.json

RUN touch /usr/share/nginx/html/robots.txt
RUN chmod a+r /usr/share/nginx/html/robots.txt
RUN chown nginx /usr/share/nginx/html/robots.txt
RUN touch /app/build/client/robots.txt
RUN chmod a+r /app/build/client/robots.txt
RUN chown node /app/build/client/robots.txt

RUN touch /usr/share/nginx/html/sitemap.xml
RUN chmod a+r /usr/share/nginx/html/sitemap.xml
RUN chown nginx /usr/share/nginx/html/sitemap.xml
RUN touch /app/build/client/sitemap.xml
RUN chmod a+r /app/build/client/sitemap.xml
RUN chown node /app/build/client/sitemap.xml

RUN touch /usr/share/nginx/html/privacy-statement.md
RUN chmod a+r /usr/share/nginx/html/privacy-statement.md
RUN chown nginx /usr/share/nginx/html/privacy-statement.md
RUN touch /app/build/client/privacy-statement.md
RUN chmod a+r /app/build/client/privacy-statement.md
RUN chown node /app/build/client/privacy-statement.md

RUN touch /usr/share/nginx/html/terms-of-use.md
RUN chmod a+r /usr/share/nginx/html/terms-of-use.md
RUN chown nginx /usr/share/nginx/html/terms-of-use.md
RUN touch /app/build/client/terms-of-use.md
RUN chmod a+r /app/build/client/terms-of-use.md
RUN chown node /app/build/client/terms-of-use.md

USER nginx


HEALTHCHECK --interval=20s --timeout=10s --retries=5 CMD test -e /var/run/nginx.pid
USER node

ARG SHORT_SHA
ENV RENKU_UI_SHORT_SHA=$SHORT_SHA

ARG PORT="3000"
ENV PORT=$PORT

ENTRYPOINT ["/bin/sh", "/app/docker-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
CMD ["npm", "run-script", "serve", "/app/build/server/index.js"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "/src/styles/bootstrap/_custom_bootstrap_variables2.0.scss";
@import "/app/old-src/styles/bootstrap/_custom_bootstrap_variables2.0.scss";
.LinkUnderline {
border-bottom: solid 1px var(--bs-rk-text-light);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "/src/styles/bootstrap/_custom_bootstrap_variables.scss";
@import "/app/old-src/styles/bootstrap/_custom_bootstrap_variables.scss";

.main {
background: $rk-background-1;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "/src/styles/bootstrap/_custom_bootstrap_variables.scss";
@import "/app/old-src/styles/bootstrap/_custom_bootstrap_variables.scss";

.templateLabel {
.templateCardImage {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
import * as Sentry from "@sentry/react";
import cx from "classnames";
import { ReactNode, useCallback } from "react";
import { useLocation } from "react-router";
import { ArrowLeft } from "react-bootstrap-icons";
import { StyleHandler } from "../index";
import { useLocation } from "react-router";

import { StyleHandler } from "../oldIndex";
import rkOopsImg from "../styles/assets/oops.svg";
import rkOopsV2Img from "../styles/assets/oopsV2.svg";
import useLegacySelector from "../utils/customHooks/useLegacySelector.hook";
Expand Down
Loading
Loading