Skip to content
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

Redesign UI #109

Merged
merged 67 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
12e60c6
Add js files to ignore list
RoyAppeldoorn Aug 22, 2023
758eb4b
Add craco to customize semantic-ui theme
RoyAppeldoorn Aug 22, 2023
1168b18
Remove typo
RoyAppeldoorn Aug 22, 2023
fc3875f
Add Montserrat and Poppins typography
RoyAppeldoorn Aug 22, 2023
f621b42
Add storybook
RoyAppeldoorn Aug 22, 2023
bd1abc0
Update typesript config
RoyAppeldoorn Aug 29, 2023
14d553b
Update ui-components and fix button story
sandercamp Aug 29, 2023
be1d6d3
Allow access to ui-components src code
sandercamp Aug 29, 2023
32d5007
Remove semantic ui elements from FeedPage
sandercamp Aug 29, 2023
9a02dae
Overrule semantic-ui font
sandercamp Aug 29, 2023
cf2a10b
Remove semantic-ui from notifications, settings, statistics and user …
sandercamp Sep 1, 2023
9bef3d1
Add react-select as a multiselect dropdown replacement
RoyAppeldoorn Sep 1, 2023
3cbe0b0
Temporarely disable semantic ui css
RoyAppeldoorn Sep 1, 2023
0e474ad
Remove semantic-ui from choose-team and feed modules
RoyAppeldoorn Sep 1, 2023
8a862ab
Temporarely not showing the menu from @sandercamp/ui-components
RoyAppeldoorn Sep 1, 2023
6b2b370
Merge branch 'chore/update-styles' of github.com:kabisa/kudos-fronten…
RoyAppeldoorn Sep 1, 2023
2280c1c
Remove semantic-ui for login module
RoyAppeldoorn Sep 4, 2023
3fedfff
Update BackButton, add Segment and Page components
sandercamp Sep 4, 2023
322e500
Fix merge issues
sandercamp Sep 4, 2023
4be226c
Add spacing to reset password form
sandercamp Sep 4, 2023
4756af6
Update ui-components to 0.0.27
sandercamp Sep 4, 2023
6bc5e83
Remove semantic-ui from manage-team module
RoyAppeldoorn Sep 4, 2023
eb11662
Raw update of FeedPage styling
sandercamp Sep 5, 2023
c9afea0
Add header styles
RoyAppeldoorn Sep 5, 2023
9577437
Merge branch 'chore/update-styles' of github.com:kabisa/kudos-fronten…
RoyAppeldoorn Sep 5, 2023
44594ca
Fix grid layout and (temporarily) add segment box shadow
sandercamp Sep 5, 2023
5f08037
Basic styling for manage team page
RoyAppeldoorn Sep 6, 2023
e8ff771
Add table elements and table styling
RoyAppeldoorn Sep 7, 2023
703766d
Update RepoList styling
sandercamp Sep 8, 2023
5a7bb85
Fix Goals styling
sandercamp Sep 8, 2023
25e796a
Add new logo
sandercamp Sep 8, 2023
92a483d
Improve statistics styling (somewhat)
sandercamp Sep 8, 2023
afe96eb
Add final styling and mobile support for manage team page
RoyAppeldoorn Sep 8, 2023
ff9bb16
Merge branch 'chore/update-styles' of github.com:kabisa/kudos-fronten…
RoyAppeldoorn Sep 8, 2023
305f99e
Improve mobile styling FeedPage
sandercamp Sep 8, 2023
40037b7
Style switch team and create team pages
RoyAppeldoorn Sep 8, 2023
85e940e
Merge branch 'chore/update-styles' of github.com:kabisa/kudos-fronten…
RoyAppeldoorn Sep 8, 2023
499b0dc
Fix profile page styling
RoyAppeldoorn Sep 8, 2023
9a2534b
Use Page component and update styling
RoyAppeldoorn Sep 14, 2023
b195b17
Use react-select and add custom styling
RoyAppeldoorn Sep 14, 2023
a8c6b3f
Set max-width for the main content
RoyAppeldoorn Sep 14, 2023
8918f0c
Add styling for textarea
RoyAppeldoorn Sep 14, 2023
abed60e
Fix bug where the image modal pops up twice
RoyAppeldoorn Sep 14, 2023
67f6ab0
Reset kudo form after submit
RoyAppeldoorn Sep 14, 2023
f0cbbc6
Convert style folder to css instead of scss
RoyAppeldoorn Sep 14, 2023
acd3459
Redesign for a big part of the login module
RoyAppeldoorn Sep 14, 2023
1414cf2
Reset select state on clear event
RoyAppeldoorn Sep 15, 2023
e6a738f
Add styling for finish forget password page
RoyAppeldoorn Sep 15, 2023
fe65914
Fix bug where two toasts show instead of one
RoyAppeldoorn Sep 15, 2023
1bd28f7
Refetch data when performing an action
RoyAppeldoorn Sep 15, 2023
157f351
Minor changes
RoyAppeldoorn Sep 15, 2023
8e0f547
Fix styling where the BackButton component is used
RoyAppeldoorn Sep 15, 2023
ded07db
Remove unused React imports
RoyAppeldoorn Sep 15, 2023
77d6938
Fix scss path error and TS error.
marcianosr Sep 19, 2023
7fe448e
Fix dependency issues for tests
marcianosr Sep 19, 2023
223e6db
Configure jest
RoyAppeldoorn Oct 5, 2023
e5fcf9f
Upgrade yarn and allow tests to run again.
marcianosr Oct 5, 2023
35e815d
Downgrade RTL
marcianosr Oct 5, 2023
76f1a12
Skip all tests
marcianosr Oct 5, 2023
b98547a
Comment out all tests
marcianosr Oct 12, 2023
9fd1b71
Include yarn berry file
marcianosr Oct 12, 2023
9300c56
Comment out twitter-moment.
marcianosr Oct 12, 2023
b06c183
Use node_modules
RoyAppeldoorn Oct 12, 2023
2bbcb51
Replace backticks with single quote to fix git commando
RoyAppeldoorn Oct 12, 2023
1043aca
Fix linting errors
RoyAppeldoorn Oct 12, 2023
eb24f7e
Fix linting errors
RoyAppeldoorn Oct 12, 2023
f0f8f97
Try to fix netlify part 1
RoyAppeldoorn Oct 12, 2023
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
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ src/assets
src/config
src/serviceWorker.js

/.eslintrc.js
/jest.config.js
!.storybook
26 changes: 14 additions & 12 deletions .eslintrc.js → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
parserOptions: {
project: "./tsconfig.json",
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": "./tsconfig.json"
},
extends: [
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"prettier",
"plugin:storybook/recommended",
"prettier"
],
rules: {
"rules": {
"react/jsx-props-no-spreading": 0,
"import/no-cycle": 0,
"react/destructuring-assignment": 0,
"import/prefer-default-export": 0,
"max-len": ["error", { code: 120 }],
"max-len": ["error", { "code": 120 }],
"react/button-has-type": 0,
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-unused-vars": 1
},
};
"ignorePatterns": ["jest.config.js", ".storybook/*"]
}
23 changes: 23 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { StorybookConfig } from "@storybook/react-webpack5";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
"@storybook/addon-a11y",
],
framework: {
name: "@storybook/react-webpack5",
options: {},
},
docs: {
autodocs: "tag",
},
staticDirs: ["../public"],
};

export default config;
15 changes: 15 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
21 changes: 19 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"@apollo/client": "^3.8.0",
"@sandercamp/ui-components": "^1.0.0",
"apollo-upload-client": "^14.1.3",
"chroma-js": "^2.1.0",
"copy-to-clipboard": "^3.3.1",
Expand Down Expand Up @@ -34,7 +35,9 @@
"eject": "react-scripts eject",
"lint:check": "eslint ./src --ext .js,.jsx,.ts,.tsx ./",
"lint:run": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix",
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc"
"format": "prettier --write './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"eslintConfig": {
"extends": "react-app"
Expand All @@ -52,6 +55,16 @@
]
},
"devDependencies": {
"@storybook/addon-a11y": "^7.3.2",
"@storybook/addon-essentials": "^7.3.2",
"@storybook/addon-interactions": "^7.3.2",
"@storybook/addon-links": "^7.3.2",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.3.2",
"@storybook/preset-create-react-app": "^7.3.2",
"@storybook/react": "^7.3.2",
"@storybook/react-webpack5": "^7.3.2",
"@storybook/testing-library": "^0.2.0",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.4.3",
Expand All @@ -67,18 +80,22 @@
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"babel-plugin-named-exports-order": "^0.0.2",
"enzyme": "^3.11.0",
"eslint": "^7.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.15.1",
"eslint-plugin-react-hooks": "^1.7.0",
"eslint-plugin-storybook": "^0.6.13",
"jest-environment-jsdom": "^29.6.2",
"prettier": "^3.0.1",
"react-responsive": "^9.0.2",
"storybook": "^7.3.2",
"ts-jest": "^29.1.1",
"typescript": "^5.1.6"
"typescript": "^5.1.6",
"webpack": "^5.88.2"
},
"resolutions": {
"@types/react": "17.0.2"
Expand Down
4 changes: 3 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
2 changes: 0 additions & 2 deletions src/components/Circle/Circle.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

.current {
color: #ffffff;
font-family: Rajdhani, sans-serif;
font-size: 40px;
font-weight: bold;
margin: 0;
Expand All @@ -29,7 +28,6 @@

.needed {
color: #ffffff;
font-family: Rajdhani, sans-serif;
font-size: 18px;
font-weight: 500;
margin: 0;
Expand Down
17 changes: 17 additions & 0 deletions src/components/button/Button.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { Meta, StoryObj } from "@storybook/react";

import { Button } from "./Button";

const meta = {
title: "Kabisa/Button",
component: Button,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
} satisfies Meta<typeof Button>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Primary: Story = {};
6 changes: 6 additions & 0 deletions src/components/button/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import React from "react";
import { Button as KabisaButton } from "@sandercamp/ui-components";

export const Button = () => {
return <KabisaButton>Hello there!</KabisaButton>;
};
2 changes: 0 additions & 2 deletions src/modules/feed/components/Transaction/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
height: 28px;
width: 23px;
color: #081721;
font-family: Rajdhani, sans-serif;
font-size: 22px;
font-weight: 600;
text-align: right
Expand All @@ -33,7 +32,6 @@
height: 13px;
width: 48px;
color: #081721;
font-family: Calibri, sans-serif;
font-size: 11px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.transaction_text {
margin-top: 16px;
color: #081721;
font-family: Calibri, sans-serif;
font-size: 14px;
text-align: left;
}
Expand Down
1 change: 0 additions & 1 deletion src/modules/statistics/Statistics.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.container {
font-family: Rajdhani, sans-serif;
color: #ffffff;
margin-bottom: 16px;
}
Expand Down
Loading
Loading