Skip to content

Commit c9d276b

Browse files
LxdovicJ-BabinseterB
authored
Docs and new Features (#107)
* fix(history-page): delete column move, use date_fns, and change result * Improve/analysis (#96) * feat(analysis): started rewriting analysis with a dynamic layout * fix(analysis): fix panels order * feat(analysis): put layout in storage and add preview when moving panels * feat(analysis): finished implementing panel manager * improve(analysis): improve panel dragging * feat(analysis): added move list * improve(move-list): add scroll * improve(move-list): add current move highlight * improve(analysis): move opening name in move-list * improve(analysis): change default theme * improve(analysis): add eval history as a panel * refactor(analysis) * improve(analysis): improve panel management * fix(classification): fix classification * improve(analysis): add controls and set chessboard to be fixed at center * style(start-analysis): cut form into two columns for more space * Improve/navbar (#97) * style(navbar): homogenize with the rest of the ui * style(navbar): homogenize with the rest of the ui * Style/overhaul (#98) * style(navbar): homogenize with the rest of the ui * style(navbar): homogenize with the rest of the ui * style(navbar): improve styling * style: improve styling * style: overhaul * chore: delete old unused pages * Improve/move list (#99) * feat(move-list): added line suggestion * chore(move-list): added translations * feat(controls): change behaviour of the display line button * Improve/move list (#100) * feat(move-list): added line suggestion * chore(move-list): added translations * feat(controls): change behaviour of the display line button * fix(auth): fix refresh * Fix/history open (#101) * feat(move-list): added line suggestion * chore(move-list): added translations * feat(controls): change behaviour of the display line button * fix(auth): fix refresh * fix(history): fix opening game analysis * chore: minor fixes * Hotfix/build (#103) * Prod (#102) * fix(history-page): delete column move, use date_fns, and change result * Improve/analysis (#96) * feat(analysis): started rewriting analysis with a dynamic layout * fix(analysis): fix panels order * feat(analysis): put layout in storage and add preview when moving panels * feat(analysis): finished implementing panel manager * improve(analysis): improve panel dragging * feat(analysis): added move list * improve(move-list): add scroll * improve(move-list): add current move highlight * improve(analysis): move opening name in move-list * improve(analysis): change default theme * improve(analysis): add eval history as a panel * refactor(analysis) * improve(analysis): improve panel management * fix(classification): fix classification * improve(analysis): add controls and set chessboard to be fixed at center * style(start-analysis): cut form into two columns for more space * Improve/navbar (#97) * style(navbar): homogenize with the rest of the ui * style(navbar): homogenize with the rest of the ui * Style/overhaul (#98) * style(navbar): homogenize with the rest of the ui * style(navbar): homogenize with the rest of the ui * style(navbar): improve styling * style: improve styling * style: overhaul * chore: delete old unused pages * Improve/move list (#99) * feat(move-list): added line suggestion * chore(move-list): added translations * feat(controls): change behaviour of the display line button * Improve/move list (#100) * feat(move-list): added line suggestion * chore(move-list): added translations * feat(controls): change behaviour of the display line button * fix(auth): fix refresh * Fix/history open (#101) * feat(move-list): added line suggestion * chore(move-list): added translations * feat(controls): change behaviour of the display line button * fix(auth): fix refresh * fix(history): fix opening game analysis * chore: minor fixes --------- Co-authored-by: J-Babin <babin.jeremy29@gmail.com> Co-authored-by: Inês <113347210+seterB@users.noreply.github.com> * hotfix: fix build errors --------- Co-authored-by: J-Babin <babin.jeremy29@gmail.com> Co-authored-by: Inês <113347210+seterB@users.noreply.github.com> * feat(move-list): added auto-scroll & style improvements * docs(navbar): rework docs links (#105) * Feat/database (#106) * docs(storybook): added storybook and a few stories * docs(storybook): added story for calendar * docs(storybook): added story for card * docs(storybook): added story for checkbox * docs(storybook): added story for command * docs(storybook): added story for dialog * docs(storybook): added story for label * docs(storybook): refactor stories for input * feat(database): added database POC * feat(move-list): fix vertical stretching * chore: replace api route --------- Co-authored-by: J-Babin <babin.jeremy29@gmail.com> Co-authored-by: Inês <113347210+seterB@users.noreply.github.com>
1 parent f34e689 commit c9d276b

31 files changed

+3473
-184
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ dist-ssr
2424
*.sw?
2525

2626
# OTHER
27-
.env
27+
.env
28+
*storybook.log

.storybook/main.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { StorybookConfig } from '@storybook/react-vite';
2+
3+
const config: StorybookConfig = {
4+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
addons: [
6+
'@storybook/addon-onboarding',
7+
'@storybook/addon-essentials',
8+
'@chromatic-com/storybook',
9+
'@storybook/addon-interactions',
10+
'@storybook/addon-themes'
11+
],
12+
framework: {
13+
name: '@storybook/react-vite',
14+
options: {},
15+
},
16+
};
17+
export default config;

.storybook/manager.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { addons } from '@storybook/manager-api';
2+
import theme from './theme';
3+
4+
addons.setConfig({
5+
theme,
6+
});

.storybook/preview.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import type { Preview } from '@storybook/react';
2+
import { withThemeByClassName } from '@storybook/addon-themes';
3+
import theme from './theme';
4+
import '@/styles/index.css';
5+
6+
const preview: Preview = {
7+
parameters: {
8+
backgrounds: {
9+
values: [{ name: 'Dark', value: '#1B1919' }],
10+
default: 'Dark',
11+
docs: { theme },
12+
controls: {
13+
matchers: {
14+
color: /(background|color)$/i,
15+
date: /Date$/i,
16+
},
17+
},
18+
},
19+
},
20+
};
21+
22+
export const decorators = [
23+
withThemeByClassName({
24+
themes: { dark: 'dark' },
25+
defaultTheme: 'dark',
26+
}),
27+
];
28+
29+
export default preview;

.storybook/theme.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { create } from '@storybook/theming/create';
2+
3+
export default create({
4+
base: 'dark',
5+
brandTitle: 'Castled Components Srtorybook',
6+
brandUrl: 'https://castled.app',
7+
brandImage: 'https://castled.app/logo.svg',
8+
brandTarget: '_self',
9+
10+
appBg: '#1B1919',
11+
});

0 commit comments

Comments
 (0)