Skip to content

Commit d401ebd

Browse files
DaltheCowmarkurtzCopilot
authored
add initial app state for development with redux/theming set up (#165)
This sets up the app with mui and redux dependencies, implements the theme and configures svgs along with other related pieces. This is the base of what is needed for development. The remainder will just be app specific pieces such as charts and implementing the rest of the application. I think the main thing that can be slotted in here is branding with the GuideLLM Logo since this PR originally introduced the old NM branding. Not my highest priority right now but happy to fix in this PR. --------- Co-authored-by: Mark Kurtz <mark.j.kurtz@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 53420e4 commit d401ebd

Some content is hidden

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

52 files changed

+4483
-923
lines changed

.eslintrc.json

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,40 @@
3030
"import/order": [
3131
"error",
3232
{
33-
"groups": [["builtin", "external", "internal"]],
34-
"newlines-between": "always"
33+
"groups": [
34+
["builtin", "external"],
35+
["internal", "parent", "sibling", "index"]
36+
],
37+
"newlines-between": "always-and-inside-groups",
38+
"pathGroups": [
39+
{
40+
"pattern": "@{app,assets,classes,components,hooks,lib,pages,store,tests,types,utils}/**",
41+
"group": "internal",
42+
"position": "before"
43+
},
44+
{
45+
"pattern": "{.,..}/**",
46+
"group": "internal",
47+
"position": "after"
48+
}
49+
],
50+
"pathGroupsExcludedImportTypes": ["builtin"],
51+
"alphabetize": { "order": "asc", "caseInsensitive": true }
3552
}
3653
],
3754
"import/no-extraneous-dependencies": ["error"],
3855
"no-secrets/no-secrets": ["error", { "additionalRegexes": {}, "ignoreContent": [] }]
3956
},
40-
"settings": { "next": { "rootDir": ["src/ui/", "tests/ui/"] } }
57+
"settings": {
58+
"next": { "rootDir": ["src/ui/", "tests/ui/"] },
59+
"import/resolver": {
60+
"typescript": {
61+
"project": [
62+
"src/ui/tsconfig.json",
63+
"tsconfig.test.json",
64+
"tsconfig.cypress.json"
65+
]
66+
}
67+
}
68+
}
4169
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,5 @@ src/ui/next-env.d.ts
223223
!.eslintrc.json
224224
!tsconfig.json
225225
!tsconfig.*.json
226+
!src/ui/lib
226227
!src/ui/public/manifest.json

jest.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
const path = require('path');
12
const nextJest = require('next/jest');
23

34
const createJestConfig = nextJest({
4-
dir: './src/ui',
5+
dir: path.resolve(__dirname, 'src/ui'),
56
});
67

78
const customJestConfig = {
@@ -12,7 +13,11 @@ const customJestConfig = {
1213
coverageReporters: ['json', 'text-summary', 'lcov'],
1314
moduleFileExtensions: ['ts', 'tsx', 'js'],
1415
moduleNameMapper: {
15-
'^@/(.*)$': '<rootDir>/$1',
16+
'^.+\\.(svg)$': '<rootDir>/tests/ui/__mocks__/svg.js',
17+
'^@/(.*)$': '<rootDir>/src/$1',
18+
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
19+
'<rootDir>/tests/ui/__mocks__/fileMock.js',
20+
'\\.(css|less|scss|sass)$': '<rootDir>/tests/ui/__mocks__/styleMock.js',
1621
},
1722
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
1823
testEnvironment: 'jest-environment-jsdom',

0 commit comments

Comments
 (0)