Skip to content

Commit

Permalink
UI Regression did not show document summary in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jun 26, 2024
1 parent 91de744 commit bbebf32
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"openai-php/laravel": "^0.8.1",
"owenvoke/blade-fontawesome": "^2.3",
"phpoffice/phppresentation": "dev-fix-pptx",
"pusher/pusher-php-server": "^7.2",
"roach-php/core": "^3.2",
"roach-php/laravel": "^3.1",
"smalot/pdfparser": "^2.9",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions resources/js/Pages/Collection/Components/ShowDocument.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@
</div>
</div>
<div
v-else
v-if="!updating"
class="prose mb-10 mt-5" v-html="documentToShow.summary_markdown"></div>
</div>
</div>
</DialogPanel>
</TransitionChild>

</div>
</div>
</div>
Expand All @@ -64,7 +65,7 @@ import { XMarkIcon } from '@heroicons/vue/24/outline'
import Tags from '@/Components/Tags.vue';
import UpdateSummary from "./UpdateSummary.vue";
import {router} from "@inertiajs/vue3";
import {ref} from "vue";
import {onMounted, ref} from "vue";
const props = defineProps({
document: Object,
Expand All @@ -73,6 +74,10 @@ const props = defineProps({
const documentToShow = ref(props.document);
onMounted(() => {
documentToShow.value = props.document;
});
const emit = defineEmits(['closing']);
const updating = ref(false);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Collection/Components/UpdateSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const updateSummary = () => {
<button
:disabled="running"
type="button"
class="btn btn-primary rounded-none"
class="btn btn-primary rounded-none mt-2"
@click="updateSummary">
Generate Summary
</button>
Expand Down

0 comments on commit bbebf32

Please sign in to comment.