-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create a sample env file, common config, change _app.jsx to _app.tsx & providers.js to providers.tsx * remove old code * update packages and fix prettier * allow the user to signin via rds * integrate api to show all pending skill requests * remove unused tailwind config * add inter font * build the requests page * show loading state and error state in user guard * add api to get all users from rds * create a select component * integrate api to search users and create aa rds user combobox component * build a form to create endorsement * add mutation to create an endorsment * add button to create endorsement on request board * make a avatar group component * remove unused imports * build a page to create skill and integrate the mutation api * integrate api to approve/reject endorsement * add superuser check for actions in requests page * create empty state * add warning for small screen devices * hide create skill link for non super users * chore: reinstall yarn * fix linting * chore: use npm * chore: remove test-all command * ci: Move to npm from yarn * ci: add ev.local in actions * remove production and staging build scripts (#101) Co-authored-by: Amit Prakash <[email protected]> --------- Co-authored-by: Prakash <[email protected]> Co-authored-by: Amit Prakash <[email protected]>
- Loading branch information
1 parent
bba1d0b
commit 95e04ce
Showing
146 changed files
with
8,746 additions
and
11,280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# dev | staging | prod | ||
NEXT_PUBLIC_APP_ENV=dev | ||
|
||
NEXT_PUBLIC_SKILL_TREE_BACKEND_BASE_URL = 'https://staging-skilltree-api.realdevsquad.com/v1' | ||
NEXT_PUBLIC_RDS_BACKEND_BASE_URL='https://staging-api.realdevsquad.com' | ||
|
||
NEXT_PUBLIC_SKILL_TREE_URL='https://staging-skilltree.realdevsquad.com' | ||
NEXT_PUBLIC_STATUS_SITE_URL='https://staging-status.realdevsquad.com' | ||
NEXT_PUBLIC_MEMBERS_SITE_URL='https://staging-members.realdevsquad.com' | ||
NEXT_PUBLIC_WELCOME_SITE_URL='https://welcome.realdevsquad.com' | ||
NEXT_PUBLIC_WWW_SITE_URL='https://staging-www.realdevsquad.com' | ||
NEXT_PUBLIC_MY_SITE_URL='https://staging-my.realdevsquad.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,46 @@ | ||
{ | ||
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"], | ||
"extends": ["eslint:recommended", "next", "next/core-web-vitals", "prettier"], | ||
"env": { | ||
"jest": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"next/core-web-vitals" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["react", "@typescript-eslint", "import"], | ||
"rules": { | ||
"indent": ["error", 4], | ||
"quotes": ["error", "double"], | ||
"semi": ["error", "always"], | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": "error" | ||
} | ||
"eol-last": ["error", "always"], | ||
"linebreak-style": ["error", "unix"], | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-non-null-assertion": "warn", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
}, | ||
"newlines-between": "always", | ||
"groups": ["builtin", "external", "internal", "parent", "sibling", "index"], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "react", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "@/*", | ||
"group": "internal" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": ["builtin", "@/*"] | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"ignorePatterns": ["node_modules/", ".next/", "out/"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build and test checks | ||
on: | ||
pull_request: | ||
branches: ["*"] | ||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | ||
name: List the state of node modules | ||
continue-on-error: true | ||
run: npm list | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Create sample env | ||
run: cp .env.sample .env.local | ||
|
||
- name: Check format | ||
run: npm run check-format | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
# TODO : Uncomment the following lines after adding tests | ||
# - name: Test | ||
# run: npm test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"bradlc.vscode-tailwindcss", | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
/** | ||
Editor rules | ||
------------ | ||
*/ | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 4, | ||
"editor.insertSpaces": false, | ||
"prettier.tabWidth": 4, | ||
"prettier.printWidth": 120, | ||
"editor.rulers": [ | ||
{ | ||
"column": 120 | ||
} | ||
], | ||
/** | ||
Formatters | ||
------------ | ||
*/ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"prettier.requireConfig": true, | ||
/** | ||
New Lines | ||
------------ | ||
*/ | ||
"files.eol": "\n", | ||
"files.insertFinalNewline": true, | ||
/** | ||
Linting | ||
------------ | ||
*/ | ||
"eslint.run": "onSave", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "always" | ||
}, | ||
/** | ||
Miscelaneous | ||
------------ | ||
*/ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
/** | ||
TailwindCSS | ||
------------ | ||
*/ | ||
"tailwindCSS.experimental.classRegex": [ | ||
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | ||
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] | ||
], | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"editor.fontFamily": "Office Code Pro, Menlo, Monaco, 'Courier New', monospace", | ||
"editor.fontSize": 13 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.