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
7 changes: 3 additions & 4 deletions contributing/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ just website-dev # Vite dev server on http://127.0.0.1:5173
Docs/blog links on the landing resolve same-origin (`/docs`, `/blog`), which 404 in standalone
dev. Point them at a live site while iterating: `just website-dev https://dstack.ai`.

The `/old` route is kept as a template for building future product pages (reachable in dev; not
part of the production deploy). Google Analytics and the social/OG image reuse the same property
and MkDocs-generated card as the rest of the site.
The Sky product page is served at `/products/sky/`. Google Analytics and the social/OG image
reuse the same property and MkDocs-generated card as the rest of the site.

## Building the whole site

Expand Down Expand Up @@ -197,7 +196,7 @@ mkdocs/ # docs_dir for the mkdocs site

website/ # React (Vite) landing page — served at "/"
├── index.html # Entry; title, OG/meta, Google Analytics
├── src/ # App, pages (Home, Old), components, routes
├── src/ # App, pages (Home, Sky), components, routes
└── public/static/ # Landing assets (namespaced to avoid clashing with /assets)

scripts/docs/
Expand Down
10 changes: 10 additions & 0 deletions frontend/jest.auth.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
rootDir: '.',
clearMocks: true,
testEnvironment: 'node',
moduleDirectories: ['node_modules', 'src'],
testMatch: ['<rootDir>/src/App/auth.test.tsx', '<rootDir>/src/services/preset.test.tsx'],
transform: {
'\\.[jt]sx?$': 'babel-jest',
},
};
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx",
"eslint-fix": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix",
"test": "jest",
"test:auth": "cross-env NODE_ENV=test jest --config jest.auth.config.cjs",
"test:update-snapshots": "jest -u",
"generate-api": "npx @rtk-query/codegen-openapi openapi-config.ts",
"pre-commit": "lint-staged"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/App/Login/EntraID/LoginByEntraID/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const LoginByEntraID: React.FC<{ className?: string }> = ({ className })

return (
<div className={cn(styles.entraSignIn, className)}>
<Button onClick={signInClick} disabled={isLoading} loading={isLoading} variant="primary">
<Button fullWidth onClick={signInClick} disabled={isLoading} loading={isLoading} variant="primary">
<span className={styles.loginButtonInner}>
<EntraIdIcon />
<span className={styles.loginButtonLabel}>{t('common.login_entra')}</span>
Expand Down
Loading
Loading