Skip to content

Commit

Permalink
feat: setup feedback package (MN-295) (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakglobant authored Nov 3, 2023
1 parent 994e370 commit 9ee5b41
Show file tree
Hide file tree
Showing 46 changed files with 984 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .babelrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"@monkvision/sights": "./packages/sights",
"@monkvision/toolkit": "./packages/toolkit",
"@monkvision/visualization": "./packages/visualization",
"@monkvision/inspection-report": "./packages/inspection-report"
"@monkvision/inspection-report": "./packages/inspection-report",
"@monkvision/feedback": "./packages/feedback"
}
}],
["babel-plugin-inline-import", { "extensions": [".svg"] }]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/camera-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: 'yarn'
- run: cd packages/camera && yarn install
- run: cd packages/camera && yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/corejs-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: 'yarn'
- run: cd packages/corejs && yarn install
- run: cd packages/corejs && yarn lint
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/feedback-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Check Feedback package

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: cd packages/feedback && yarn install
- run: cd packages/feedback && yarn lint
- run: cd packages/feedback && yarn run build
2 changes: 1 addition & 1 deletion .github/workflows/sights-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: 'yarn'
- run: cd packages/sights && yarn install
- run: cd packages/sights && yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/toolkit-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: 'yarn'
- run: cd packages/toolkit && yarn install
- run: cd packages/toolkit && yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ui-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: 'yarn'
- run: cd packages/ui && yarn install
- run: cd packages/ui && yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/visualization-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
cache: 'yarn'
- run: cd packages/visualization && yarn install
- run: cd packages/visualization && yarn lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "16.x"
- name: Build Packages
run: |
yarn
Expand All @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "16.x"
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.FUTURA_SECRET }}
Expand Down
1 change: 1 addition & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ config.resolver = {
'@monkvision/toolkit',
'@monkvision/visualization',
'@monkvision/inspection-report',
'@monkvision/feedback',
],
};

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,25 @@
"start": "expo start --https",
"start:documentation": "cd website && yarn run docs:start",
"start:report": "cd services/inspection-report && yarn run start",
"start:feedback": "cd services/feedback && yarn run start",
"watch:ui": "cd ./packages/ui && yarn watch",
"watch:camera": "cd ./packages/camera && yarn watch",
"watch:visualization": "cd ./packages/visualization && yarn watch",
"watch:toolkit": "cd ./packages/toolkit && yarn watch",
"watch:corejs": "cd ./packages/corejs && yarn watch",
"watch:sights": "cd ./packages/sights && yarn watch",
"watch:inspection-report": "cd ./packages/inspection-report && yarn watch",
"watch:all": "concurrently \"yarn run watch:ui\" \"yarn run watch:toolkit\" \"yarn run watch:visualization\" \"yarn run watch:camera\" \"yarn run watch:corejs\" \"yarn run watch:sights\" \"yarn run watch:inspection-report\"",
"watch:feedback": "cd ./packages/feedback && yarn watch",
"watch:all": "concurrently \"yarn run watch:ui\" \"yarn run watch:toolkit\" \"yarn run watch:visualization\" \"yarn run watch:camera\" \"yarn run watch:corejs\" \"yarn run watch:sights\" \"yarn run watch:inspection-report\" \"yarn run watch:feedback\"",
"build:ui": "cd ./packages/ui && yarn run build",
"build:camera": "cd ./packages/camera && yarn run build",
"build:visualization": "cd ./packages/visualization && yarn run build",
"build:toolkit": "cd ./packages/toolkit && yarn run build",
"build:corejs": "cd ./packages/corejs && yarn run build",
"build:sights": "cd ./packages/sights && yarn run build",
"build:inspection-report": "cd ./packages/inspection-report && yarn run build",
"build:all": "concurrently \"yarn run build:ui\" \"yarn run build:toolkit\" \"yarn run build:visualization\" \"yarn run build:camera\" \"yarn run build:corejs\" \"yarn run build:sights\" \"yarn run build:inspection-report\"",
"build:all": "concurrently \"yarn run build:ui\" \"yarn run build:toolkit\" \"yarn run build:visualization\" \"yarn run build:camera\" \"yarn run build:corejs\" \"yarn run build:sights\" \"yarn run build:inspection-report\" \"yarn run build:feedback\"",
"build:feedback": "cd ./packages/feedback && yarn run build",
"build:android": "expo build:android",
"build:ios": "expo build:ios",
"eject": "expo eject",
Expand Down Expand Up @@ -153,6 +156,7 @@
"@monkvision/ui": "*",
"@monkvision/visualization": "*",
"@monkvision/inspection-report": "*",
"@monkvision/feedback": "*",
"react-native-svg": "*"
},
"resolutions": {
Expand Down
8 changes: 8 additions & 0 deletions packages/feedback/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions packages/feedback/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
commonjs/
module/
3 changes: 3 additions & 0 deletions packages/feedback/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"root": false
}
29 changes: 29 additions & 0 deletions packages/feedback/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# builds
build/
lib/
dist/
module/
commonjs/
typescript/
web-build/

# deploy
.env*

# modules
node_modules/
coverage/
.expo/
.docusaurus/

# logs
npm-debug.*
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# cache
.eslintcache

# misc
.DS_Store
5 changes: 5 additions & 0 deletions packages/feedback/.release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": { "after:bump": ["npm run build"] },
"git": { "commit": false },
"github": { "release": false }
}
32 changes: 32 additions & 0 deletions packages/feedback/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
The Clear BSD License

Copyright (c) [2022] [Monk](http://monk.ai)
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY
THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
13 changes: 13 additions & 0 deletions packages/feedback/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 👁️‍🗨️ @monkvision/feedback

[![npm latest package](https://img.shields.io/npm/v/@monkvision/feedback/latest.svg)](https://www.npmjs.com/package/@monkvision/feedback)

```yarn
yarn add @monkvision/feedback
```

This project is licensed under the BSD-3-Clause-Clear license. See the [LICENSE](LICENSE) file for more info.

---

![Monk banner](https://raw.githubusercontent.com/monkvision/monkjs/main/assets/banner.png)
6 changes: 6 additions & 0 deletions packages/feedback/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = (api) => {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
8 changes: 8 additions & 0 deletions packages/feedback/bob.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
source: 'src',
output: '.',
targets: [
['commonjs', { copyFlow: true }],
['module', { copyFlow: true }],
],
};
6 changes: 6 additions & 0 deletions packages/feedback/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"baseUrl": "src/",
"target": "es2020"
}
}
62 changes: 62 additions & 0 deletions packages/feedback/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "@monkvision/feedback",
"author": "monkvision",
"license": "BSD-3-Clause-Clear",
"version": "3.8.4",
"private": false,
"description": "AI-powered vehicle damage detection for React Native",
"homepage": "https://github.com/monkvision/monkjs/packages/feedback/#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/monkvision/monkjs.git",
"directory": "packages/feedback"
},
"bugs": {
"url": "https://github.com/monkvision/monkjs/issues"
},
"keywords": [
"react native",
"inspection report",
"native components",
"vehicle damage detection"
],
"main": "commonjs/index.js",
"module": "module/index.js",
"react-native": "src/index.js",
"files": [
"commonjs",
"module",
"src",
".editorconfig",
"LICENSE",
"package.json",
"README.md"
],
"scripts": {
"watch": "watch 'yarn run build' src",
"lint": "eslint src --cache",
"lint-fix": "eslint src --fix",
"build": "bob build",
"release": "release-it"
},
"dependencies": {
"@expo/vector-icons": "^12.0.5",
"@react-native-community/slider": "^4.4.2",
"i18next": "^21.8.13",
"react-i18next": "^11.18.0",
"react-native-element-dropdown": "^2.10.0"
},
"devDependencies": {
"prop-types": "^15.8.1",
"react-native-builder-bob": "^0.18.2",
"release-it": "*"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-svg": "*"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit 9ee5b41

Please sign in to comment.