Skip to content

Commit

Permalink
Merge pull request #272 from weni-ai/feature/wenigpt
Browse files Browse the repository at this point in the history
Feature/wenigpt
  • Loading branch information
luishsf authored Dec 1, 2023
2 parents 7e57a12 + 260538b commit e429ffa
Show file tree
Hide file tree
Showing 16 changed files with 781 additions and 461 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
echo "COMMIT_SHA=$GITHUB_SHA" | tee -a "${GITHUB_ENV}"
echo "IMAGE_TAG=bothubit/platform-frontend:${TAG}" | tee -a "${GITHUB_ENV}"
echo "IMAGE_SOURCE_URL=https://github.com/weni-ai/ia-platform-frontend" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_REPOSITORY=Ilhasoft/kubernetes-manifests-artificial-intelligence" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_REPOSITORY=weni-ai/kubernetes-manifests-artificial-intelligence" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_APPLICATION=platform-frontend" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_PATCH_TARGET=deployment-platform-frontend.json" | tee -a "${GITHUB_ENV}"
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Unit Tests

on: [push, pull_request]

jobs:
unit-tests:
runs-on: ubuntu-latest
name: Tests Coverage
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Run Unit Tests
run: yarn test:unit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@mdi/font": "^5.2.45",
"@sentry/browser": "^5.29.2",
"@sentry/integrations": "^5.29.2",
"@weni/unnnic-system": "1.16.12",
"@weni/unnnic-system": "1.16.66",
"ansi-regex": "5.0.1",
"axios": "0.21.2",
"buefy": "^0.9.4",
Expand Down
5 changes: 5 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<div id="app">
<!-- <news-modal /> -->
<weni-gpt-alert />
<WeniGPTAlert />
<router-view />
<!-- <tutorial-modal
:open="activeMenu"/> -->
Expand All @@ -17,14 +19,17 @@ import unnic from '@weni/unnnic-system';
import I18n from '@/utils/plugins/i18n';
import store from './store';
import ModalDependingOnFlowsLength from './components/ModalDependingOnFlowsLength';
import WeniGPTAlert from './components/repository/home/WeniGPTAlert';
export default {
components: {
NewsModal,
I18n,
ModalDependingOnFlowsLength,
WeniGPTAlert
},
name: 'App',
data() {
return {
connectBaseURL: '',
Expand Down
Binary file added src/assets/imgs/doris.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/ModalDependingOnFlowsLength.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default {
const projectUuid = this.$store.state.Auth.project;
if (!data.includes(projectUuid)) {
this.showHowToIntegrate = true;
// this.showHowToIntegrate = true;
data.push(projectUuid);
Expand Down
5 changes: 5 additions & 0 deletions src/components/form-generator/inputs/BooleanInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ export default {
return this.value ? this.$t('webapp.layout.yes') : this.$t('webapp.layout.no');
},
},
watch: {
value() {
this.update();
}
},
mounted() {
this.update();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
v-model="intelligence.description"
/>

<div
<!-- <div
:class="[
'create-repository__intelligence__type__label',
'unnnic-font secondary body-gt color-neutral-cloudy'
Expand Down Expand Up @@ -46,7 +46,7 @@
:enabled="intelligence.repository_type === 'content'"
@click.native="intelligence.repository_type = 'content'"
/>
</div>
</div> -->
<div class="create-repository__intelligence__buttons">
<unnnic-button
type="terciary"
Expand Down Expand Up @@ -77,7 +77,7 @@ export default {
intelligence: {
name: '',
description: '',
repository_type: ''
repository_type: 'content'
}
};
},
Expand Down
Loading

0 comments on commit e429ffa

Please sign in to comment.