Skip to content

Commit d43bbf5

Browse files
authored
Merge pull request #648 from Thenlie/develop
v1.10.0
2 parents 25ca77d + 8fe8e86 commit d43bbf5

File tree

83 files changed

+4670
-2081
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+4670
-2081
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"react/react-in-jsx-scope": "off",
4949
"@typescript-eslint/no-unused-vars": "error",
5050
"prettier/prettier": "error",
51-
"no-console": "error"
51+
"no-console": "error",
52+
"react/prop-types": "off"
5253
}
5354
}

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Description
2+
3+
<!-- Provide a description of the changes made -->
4+
5+
## Checklist
6+
7+
<!-- Check off [x] once complete or if not applicable -->
8+
9+
- [ ] Screenshots added for any UX changes
10+
- [ ] Demos attached for animations/interactions
11+
- [ ] Pointed at proper branch (`develop` not `main`)
12+
- [ ] Assigned PR to yourself
13+
- [ ] Requested review from code owners
14+
- [ ] Relevant labels added (`feature`, `documentation`, etc.)
15+
- [ ] `Closes #<issue-number>` added if this resolves a GitHub issue
16+
- [ ] Branch is up to date with develop, ran `git rebase develop` if necessary
17+
- [ ] All GitHub Actions are passing
18+
- [ ] `npm run todo-ci` ran if any todo comments were created

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const config: StorybookConfig = {
55
addons: [
66
'@storybook/addon-links',
77
'@storybook/addon-essentials',
8-
'@storybook/addon-onboarding',
98
'@storybook/addon-interactions',
109
'storybook-addon-react-router-v6',
10+
'@storybook/addon-themes',
1111
],
1212
framework: {
1313
name: '@storybook/react-vite',

.storybook/preview.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import type { Preview } from '@storybook/react';
2+
import { withThemeFromJSXProvider } from '@storybook/addon-themes';
3+
import { ThemeProvider } from '@mui/system';
4+
import { lightTheme, darkTheme } from '../src/theme';
5+
import { CssBaseline } from '@mui/material';
26
import '../src/index.css'
37

48
const preview: Preview = {
@@ -11,6 +15,17 @@ const preview: Preview = {
1115
},
1216
},
1317
},
18+
decorators: [
19+
withThemeFromJSXProvider({
20+
themes: {
21+
light: lightTheme,
22+
dark: darkTheme,
23+
},
24+
defaultTheme: 'light',
25+
Provider: ThemeProvider,
26+
GlobalStyles: CssBaseline,
27+
}),
28+
]
1429
};
1530

1631
export default preview;

TODO.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
### TODOs
22
| Filename | line # | TODO |
33
|:------|:------:|:------|
4+
| [src/__tests__/routes.tsx](src/__tests__/routes.tsx#L22) | 22 | #427 Import routes from main.tsx instead of using this |
45
| [src/components/Navigation.tsx](src/components/Navigation.tsx#L88) | 88 | Error handling if any |
56
| [src/components/Navigation.tsx](src/components/Navigation.tsx#L93) | 93 | #162 Use MUI ThemeProvider |
67
| [src/components/Navigation.tsx](src/components/Navigation.tsx#L242) | 242 | Add a transition when search is expanded or collapsed |
7-
| [src/screens/DiscoverScreen.tsx](src/screens/DiscoverScreen.tsx#L11) | 11 | #194 Make skeleton loading screen |
8+
| [src/screens/DiscoverScreen.tsx](src/screens/DiscoverScreen.tsx#L62) | 62 | #613 |
89
| [src/screens/PageNotFoundScreen.tsx](src/screens/PageNotFoundScreen.tsx#L25) | 25 | Implement better error handling |
910
| [src/screens/PageNotFoundScreen.tsx](src/screens/PageNotFoundScreen.tsx#L26) | 26 | Handle thrown responses with 'isRouteErrorResponse' |
1011
| [src/screens/ShowDetailsScreen.tsx](src/screens/ShowDetailsScreen.tsx#L155) | 155 | #438 Handle case when no details are ever returned |
11-
| [src/supabase/profiles.ts](src/supabase/profiles.ts#L239) | 239 | #587 Ensure country code is valid |
12+
| [src/supabase/profiles.ts](src/supabase/profiles.ts#L253) | 253 | #587 Ensure country code is valid |
1213
| [src/__tests__/components/component.test.tsx](src/__tests__/components/component.test.tsx#L8) | 8 | #427 Re-enable tests when UI stable |
1314
| [src/__tests__/screens/authScreen.test.tsx](src/__tests__/screens/authScreen.test.tsx#L9) | 9 | #427 Re-enable tests when UI stable |
1415
| [src/__tests__/screens/movieScreen.test.tsx](src/__tests__/screens/movieScreen.test.tsx#L31) | 31 | #427 Re-enable tests when UI stable |
1516
| [src/__tests__/screens/navigation.test.tsx](src/__tests__/screens/navigation.test.tsx#L10) | 10 | #427 Re-enable tests when UI stable |
16-
| [src/components/auth/LoginForm.tsx](src/components/auth/LoginForm.tsx#L82) | 82 | We could try to get the AuthApiError type and use 'cause' instead |
17-
| [src/__tests__/screens/assets/showData.ts](src/__tests__/screens/assets/showData.ts#L247) | 247 | Fill out rest of data, this does not have all details |
17+
| [src/screens/auth/LoginScreen.tsx](src/screens/auth/LoginScreen.tsx#L86) | 86 | We could try to get the AuthApiError type and use 'cause' instead |
18+
| [src/screens/dashboard/DashboardGalleryScreen.tsx](src/screens/dashboard/DashboardGalleryScreen.tsx#L26) | 26 | If profile does not return after a few seconds, |
19+
| [src/screens/dashboard/DashboardGalleryScreen.tsx](src/screens/dashboard/DashboardGalleryScreen.tsx#L57) | 57 | #610 Create empty state |
20+
| [src/__tests__/screens/assets/showData.ts](src/__tests__/screens/assets/showData.ts#L260) | 260 | Fill out rest of data, this does not have all details |

docs/usage.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@ git clone <repository_url>
1818
```s
1919
npm install
2020
```
21-
6. Finally, you need to run the set up command:
21+
22+
6. Next, you need to run the set up command:
2223
```s
2324
npm run setup
2425
```
26+
This will ensure the projects git hooks run during the pre-commit step.
27+
28+
7. Finally, you will need to install [docker](https://www.docker.com/) one your machine. This is used to run the local Supabase server.
29+
2530
This should be everything you need to move on to the usage instructions!
2631

2732
---
@@ -36,6 +41,12 @@ npm run dev
3641
```
3742
This will build and run the application in watch mode automatically. This means as you work on the application, your browser will automatically update when you save the code.
3843

44+
You will also need to run a local Supabase instance. To do this, use the command:
45+
```s
46+
npm run db-start
47+
```
48+
This will start the local Supabase development server. From there, you will need to copy the anon-key and api url to the .env file. If you would like to have this step done automatically, you can run `npm run db-start-env` instead.
49+
3950
If you would like to see a deployed version of your work, push your branch to remote. Vercel will automatically deploy that branch in a test site.
4051

4152
## Storybook
@@ -56,7 +67,9 @@ If you run into issues with an npm install, use the command:
5667
```s
5768
npm run clean
5869
```
59-
This will delete and reinstall all `node_modules`. If this does not work, you may also need to reset your npm cache using the command:
70+
This will delete and reinstall all `node_modules` as well as the npm cache.
71+
72+
If you see the error `permission denied` when running one of the script files, use the command:
6073
```s
61-
npm cache clean --force
74+
chmod +x ./scripts/file-name
6275
```

0 commit comments

Comments
 (0)