Skip to content

Commit

Permalink
fixed xls import in maximized bulk publish modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjivchy committed Sep 10, 2024
1 parent 944257a commit 76b5c2e
Show file tree
Hide file tree
Showing 11 changed files with 4,023 additions and 1,808 deletions.
358 changes: 244 additions & 114 deletions public/css/app.css

Large diffs are not rendered by default.

345 changes: 231 additions & 114 deletions public/css/webportal-app.css

Large diffs are not rendered by default.

5,020 changes: 3,508 additions & 1,512 deletions public/js/app.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"/js/app.js": "/js/app.js?id=4f6e0ffe6c0d8dc814a6ca7ab2c2cd2c",
"/js/app.js": "/js/app.js?id=f4ad863e5f6e8f2fd0309ff4afe6d68e",
"/js/script.js": "/js/script.js?id=486f329f14e1f080305e7c109ca928ac",
"/js/webportal-script.js": "/js/webportal-script.js?id=fd5980061c5c73a9d216570039251afa",
"/js/formbuilder.js": "/js/formbuilder.js?id=85537cfbc99853ea9793f54c417c10f9",
"/manifest.js": "/manifest.js?id=3ed1124c8f4dcb98acc36de67cb80349",
"/css/webportal-app.css": "/css/webportal-app.css?id=adf7341f839de37a534011a906ba0d3f",
"/css/app.css": "/css/app.css?id=47ba95be7ce52d1c1abeb3771d376b5f",
"/js/vendor.js": "/js/vendor.js?id=f5b6df2a08df1db55bad9b73494fb5e8"
"/css/webportal-app.css": "/css/webportal-app.css?id=0ac002f4707a4f5402e58386ba1f29e8",
"/css/app.css": "/css/app.css?id=6b49962c127a5441852e844920450a13",
"/js/vendor.js": "/js/vendor.js?id=fd88a53589d5bef5911c2bfa2da9fc92"
}
3 changes: 2 additions & 1 deletion resources/assets/js/components/XlsUploadIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<div
v-show="
(downloading && !downloadCompleted && !cancelDownload) ||
store.state.isPublishedModalMinimized
store.state.isPublishedModalMinimized ||
(xlsData && showXlsStatus)
"
>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ watchEffect(() => {
store.state.isPublishedModalMinimized = sharedMinimize.value;
}
});
</script>
<style scoped></style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
@active-tab="handleActiveTab"
>
<template #tabOne>
<ul class="space-y-2 max-h-[50vh] overflow-auto divide-y divide-n-20 pb-4 duration-200">
<ul
class="max-h-[50vh] space-y-2 divide-y divide-n-20 overflow-auto pb-4 duration-200"
>
<template v-if="Object.keys(validActivities).length > 0">
<li
v-for="(value, key) in validActivities"
Expand Down Expand Up @@ -99,7 +101,9 @@
</template>

<template #tabTwo>
<ul class="space-y-2 max-h-[50vh] overflow-auto divide-y divide-n-20 pb-4 duration-200">
<ul
class="max-h-[50vh] space-y-2 divide-y divide-n-20 overflow-auto pb-4 duration-200"
>
<template v-if="Object.keys(inValidedActivities).length > 0">
<li
v-for="(value, key) in inValidedActivities"
Expand Down Expand Up @@ -146,7 +150,9 @@
activities. You can still continue to publish
</span>
</div>
<ul class="space-y-2 overflow-auto max-h-[50vh] divide-y divide-n-20 px-4 pb-4 duration-200">
<ul
class="max-h-[50vh] space-y-2 divide-y divide-n-20 overflow-auto px-4 pb-4 duration-200"
>
<template v-if="Object.keys(validActivities).length > 0">
<li
v-for="(value, key) in validActivities"
Expand Down Expand Up @@ -211,15 +217,7 @@
</div>
</template>
<script setup lang="ts">
import {
watch,
defineProps,
ref,
onMounted,
inject,
Ref,
computed,
} from 'vue';
import { watch, defineProps, ref, onMounted, inject, Ref, computed } from 'vue';

import { useStore } from 'Store/activities/index';
import RollingLoader from '../RollingLoaderComponent.vue';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Activity
</div>
<ul
class="space-y-4 max-h-[50vh] overflow-auto divide-y divide-n-20 px-6 pb-4 text-sm leading-[22px] tracking-normal text-n-50"
class="max-h-[50vh] space-y-4 divide-y divide-n-20 overflow-auto px-6 pb-4 text-sm leading-[22px] tracking-normal text-n-50"
>
<li
v-for="(value, name, index) in store.state.bulkActivityPublishStatus
Expand Down
2 changes: 2 additions & 0 deletions resources/assets/js/views/import/ActivityXlsUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
:completed="uploadComplete"
:publishing-activities="publishingActivities"
/>
<PublishSelected />
</div>
<Loader
v-if="loader"
Expand Down Expand Up @@ -500,6 +501,7 @@ import dateFormat from 'Composable/dateFormat';
import Pagination from 'Components/TablePagination.vue';
import { useStore } from 'Store/activities/index';
import { useStorage } from '@vueuse/core';
import PublishSelected from 'Activity/bulk-publish/PublishSelected.vue';
interface ActivitiesInterface {
last_page: number;
Expand Down
32 changes: 16 additions & 16 deletions resources/assets/sass/component/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -256,41 +256,41 @@ label {
}

select.select2.default-value-indicator
+ .select2
.selection
.select2-selection:not(:focus) {
+ .select2
.selection
.select2-selection:not(:focus) {
border: 2px solid #3f9a7c;
background-color: #3f9a7c15;
}

select.select2.default-value-indicator
+ .select2
.selection
.select2-selection:not(:focus) {
+ .select2
.selection
.select2-selection:not(:focus) {
border: 2px solid #3f9a7c;
background-color: #3f9a7c15;
}

select.select2.default-value-indicator
+ .select2
.selection
.select2-selection
.select2-selection__placeholder {
+ .select2
.selection
.select2-selection
.select2-selection__placeholder {
color: var(--bluecoral-50);
}

select.select2.default-value-indicator
+ .select2.select2-container--open
.selection
.select2-selection {
+ .select2.select2-container--open
.selection
.select2-selection {
border: 1px solid #a6b5ba;
background-color: transparent;
}

select.select2.default-value-indicator
+ .select2
.selection
.select2-selection.select2-selection--clearable {
+ .select2
.selection
.select2-selection.select2-selection--clearable {
border: 1px solid #a6b5ba;
background-color: transparent;
}
Expand Down
38 changes: 5 additions & 33 deletions storage/test.xml
Original file line number Diff line number Diff line change
@@ -1,40 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<iati-activities version="2.03" generated-datetime="2024-09-04T08:54:03+00:00">
<iati-activity last-updated-datetime="2024-09-04T08:54:03+00:00" xml:lang="aa">
<iati-identifier>AF-CBR-8888-test1</iati-identifier>
<reporting-org type="11" ref="AF-CBR-8888" secondary-reporter="0">
<iati-activities version="2.03" generated-datetime="2024-09-10T06:38:45+00:00">
<iati-activity last-updated-datetime="2024-09-10T06:38:45+00:00" xml:lang="aa">
<iati-identifier>AF-CBR-8888-12313</iati-identifier>
<reporting-org type="11" ref="AF-CBR-8888" secondary-reporter="1">
<narrative xml:lang="aa">My org's name - editted</narrative>
</reporting-org>
<title>
<narrative xml:lang="aa">yipl-test-1</narrative>
<narrative xml:lang="aa">yipl testing-edit</narrative>
</title>
<description type="1">
<narrative xml:lang="ab">test</narrative>
</description>
<participating-org ref="123" type="11" role="1" activity-id="123">
<narrative xml:lang="ae">123</narrative>
</participating-org>
<activity-status code="2"/>
<activity-date type="2" iso-date="2024-06-22">
<narrative xml:lang="aa">123</narrative>
</activity-date>
<recipient-country code="AX" percentage="100">
<narrative xml:lang="ab">123</narrative>
</recipient-country>
<sector code="1"/>
<default-flow-type code="22"/>
<default-finance-type code="1100"/>
<default-aid-type code="1" vocabulary="2"/>
<default-tied-status code="5"/>
<budget type="1" status="1">
<period-start iso-date="2024-06-28"/>
<period-end iso-date="2024-07-06"/>
<value value-date="2024-06-22">1</value>
</budget>
<transaction>
<transaction-type code="3"/>
<transaction-date iso-date="2024-06-22"/>
<value currency="ANG" value-date="2024-06-06">1</value>
</transaction>
</iati-activity>
</iati-activities>

0 comments on commit 76b5c2e

Please sign in to comment.