Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/msa-ez/platform into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanghoon committed Dec 4, 2023
2 parents e100801 + a9b9720 commit 2c7dfb6
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 16 deletions.
16 changes: 9 additions & 7 deletions src/components/designer/modeling/CodeGenerator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4136,13 +4136,15 @@ jobs:
// }
if (!set.has(item.code)) {
codeBag.push("# "+ item.name + ": \n" + item.code);
if(option.keyword == "si" && item.name.includes("Test.java") && item.template === "https://github.com/msa-ez/topping-unit-test"){
me.testFileList.push(item)
}
if(option.keyword == "si"){
me.selectedCodeList[item.name] = item.code
} else {
set.add(item.code);
if(option){
if(option.keyword == "si" && item.name.includes("Test.java") && item.template === "https://github.com/msa-ez/topping-unit-test"){
me.testFileList.push(item)
}
if(option.keyword == "si"){
me.selectedCodeList[item.name] = item.code
} else {
set.add(item.code);
}
}
}
//me.$refs.codeViewer.$refs.collectedCodes = me.gptCodes /// Very BAD
Expand Down
4 changes: 2 additions & 2 deletions src/components/designer/modeling/generators/BMDialoger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<div v-if="value.modelList && value.modelList.length > 0"
class="auto-modeling-message-card"
style="margin-top:25px; height: 100%; width: 20%;">
<v-col v-if="value && value.modelList && value.modelList.length > 0"
<!-- <v-col v-if="value && value.modelList && value.modelList.length > 0"
style="height: 100%; align-items: center; margin: 2px; width: 100%;"
>
<div v-for="id in value.modelList" :key="id">
<jump-to-model-lists-card :id="id" path="business-model-canvas" @deleteModel="deleteModel" ></jump-to-model-lists-card>
</div>
</v-col>
</v-col> -->
</div>
</div>
</template>
Expand Down
11 changes: 7 additions & 4 deletions src/components/designer/modeling/generators/CJMDialoger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<div>
<div style="padding-bottom:20px;">
<div>
<v-icon small v-if="selectedEditPersona != persona.scenario" style="margin: 5px; float:right;" @click="editPersona(persona)">mdi-pencil</v-icon>
<v-icon small v-if="selectedEditPersona === persona.scenario" style="margin: 5px; float:right;" @click="savePersona()">mdi-content-save</v-icon>
<v-icon small v-if="!personaEditMode && selectedEditPersona != persona.scenario || selectedEditPersona != persona.scenario " style="margin: 5px; float:right;" @click="editPersona(persona)">mdi-pencil</v-icon>
<v-icon small v-if="personaEditMode && selectedEditPersona === persona.scenario" style="margin: 5px; float:right;" @click="savePersona()">mdi-content-save</v-icon>
</div>
<v-card-title v-if="selectedEditPersona === persona.scenario">
<v-textarea no-resize rows="1" row-height="15" v-model="persona.persona" ></v-textarea>
Expand Down Expand Up @@ -86,7 +86,7 @@
<v-btn color="primary" style="float:right; margin-top:5px;" @click="jump()">Create Model<v-icon>mdi-arrow-right</v-icon></v-btn>
</v-card-text>
</v-card>
<div
<!-- <div
class="auto-modeling-message-card"
style="margin-top:25px; height: 200px; max-width: 300%; width: 100%; overflow-y: overlay;">
<v-col v-if="state && state.modelList && state.modelList.length > 0"
Expand All @@ -96,7 +96,7 @@
<jump-to-model-lists-card :id="id" path="cjm" @deleteModel="deleteModel" ></jump-to-model-lists-card>
</div>
</v-col>
</div>
</div> -->
</v-col>
</div>
</div>
Expand Down Expand Up @@ -166,6 +166,7 @@
scenario: null,
},
generator: null,
personaEditMode: false,
}
},
methods: {
Expand Down Expand Up @@ -276,9 +277,11 @@
},
editPersona(persona){
this.selectedEditPersona = persona.scenario
this.personaEditMode = true;
},
savePersona(){
this.selectedEditPersona = null;
this.personaEditMode = false;
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/designer/modeling/generators/ESDialoger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
</div>
<v-card v-if="!state.secondMessageIsTyping" class="auto-modeling-user-story-card">
<v-card-subtitle>{{$t('autoModeling.explanation')}}</v-card-subtitle>
<v-card-actions v-if="!done" class="auto-modeling-btn-box">
<v-btn class="auto-modeling-btn" @click="stop()"><v-progress-circular class="auto-modeling-stop-loading-icon" indeterminate></v-progress-circular>Stop generating</v-btn>
</v-card-actions>
<v-card-text class="auto-modling-textarea">
<v-textarea
v-model="value.userStory"
Expand All @@ -52,9 +55,6 @@
<v-btn class="auto-modeling-btn" @click="generate()"><v-icon class="auto-modeling-btn-icon">mdi-refresh</v-icon>Try again</v-btn>
<v-btn class="auto-modeling-btn" color="primary" @click="jump()">Create Model<v-icon class="auto-modeling-btn-icon">mdi-arrow-right</v-icon></v-btn>
</v-card-actions>
<v-card-actions v-else class="auto-modeling-btn-box">
<v-btn class="auto-modeling-btn" @click="stop()"><v-progress-circular class="auto-modeling-stop-loading-icon" indeterminate></v-progress-circular>Stop generating</v-btn>
</v-card-actions>
</v-card>
<div
class="auto-modeling-message-card"
Expand Down

0 comments on commit 2c7dfb6

Please sign in to comment.