Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ebb8659
FOUR-20583: S2: Improve vendors
hjonathan Dec 5, 2024
489f064
FOUR-20583: S2: Improve vendors
hjonathan Dec 6, 2024
189442c
FOUR-20583: S2: Improve vendors
hjonathan Dec 6, 2024
a8ba708
FOUR-20583: S2: Improve vendors
hjonathan Dec 6, 2024
4dd49ee
FOUR-20583: A tests
hjonathan Dec 9, 2024
4bdfeb8
FOUR-20583-A: Cases Main change to new layout
hjonathan Dec 9, 2024
7cf6f2b
FOUR-20583-A: Tasks Main change to new layout
hjonathan Dec 10, 2024
03fcedd
FOUR-20583-A: Tasks Main change to new layout
hjonathan Dec 12, 2024
17e9353
FOUR-20583-A: Tasks Main change to new layout
hjonathan Dec 16, 2024
863d4cf
FOUR-20583-A: Tasks Main change to new layout , update with async fsc…
hjonathan Dec 17, 2024
087bbe2
FOUR-20583-A: Tasks Main change to new layout , update webpack mix fo…
hjonathan Dec 17, 2024
f9f998b
FOUR-20583-A: Tasks Main change to new layout , tests adjusments with…
hjonathan Dec 17, 2024
78d6fa2
FOUR-20583-A: Tasks Main change to new layout , adjustments in preview
hjonathan Dec 17, 2024
60d8230
Merge pull request #7812 from ProcessMaker/feature/FOUR-20583-A
pmPaulis Dec 18, 2024
8428fe3
FOUR-20583: Tasks Main change to new layout , adjustments in typeForm…
hjonathan Dec 18, 2024
d94354a
FOUR-20583: Tasks Main change to new layout , adjustments in all file…
hjonathan Dec 18, 2024
e1b87e6
FOUR-20583: Tasks Main change to new layout , adjustments with inflig…
hjonathan Dec 19, 2024
010da35
FOUR-20583: Tasks Main change to new layout , merge with inflilght mo…
hjonathan Dec 19, 2024
de60f82
FOUR-20583: Tasks Main change to new layout , add modeler next file
hjonathan Dec 19, 2024
cf753bb
Add webpack analyzer
nolanpro Dec 19, 2024
a9fc7a7
Update memory setting
nolanpro Dec 19, 2024
45f014e
FOUR-20583: Tasks Main change to new layout , add initialload to fix …
hjonathan Dec 20, 2024
b45b67a
Merge branch 'epic/FOUR-20336-FOUR-20337' of github.com:ProcessMaker/…
hjonathan Dec 20, 2024
97704ec
Merge pull request #7847 from ProcessMaker/webpack-bundle-analyzer
pmPaulis Dec 20, 2024
6202dcc
FOUR-20583: Tasks Main change to new layout , add initialload to fix …
hjonathan Dec 20, 2024
f4b9875
FOUR-20583: Tasks Main change to new layout , add initialload to fix …
hjonathan Dec 20, 2024
9463867
Merge branch 'feature/FOUR-20583' of github.com:ProcessMaker/processm…
hjonathan Dec 20, 2024
01d43d8
FOUR-20583: Tasks Main change to new layout , fix preview tasks
hjonathan Dec 20, 2024
31a405b
FOUR-20583: Tasks Main change to new layout , fix preview tasks
hjonathan Dec 20, 2024
ae76421
FOUR-20583: Tasks Main change to new layout , fix pmblock & webentry
hjonathan Dec 20, 2024
22c1738
FOUR-21371: Task: The conversational form is not showing correctly
hjonathan Dec 23, 2024
b5fdace
FOUR-21371: Task: The conversational form is not showing correctly
hjonathan Jan 3, 2025
8136040
Merge pull request #7853 from ProcessMaker/feature/FOUR-21371
pmPaulis Jan 7, 2025
67c9334
FOUR-20583: Tasks Main change to new layout
hjonathan Jan 7, 2025
c571780
FOUR-20583: Updating observations
hjonathan Jan 9, 2025
1d3a97c
Merge pull request #7869 from ProcessMaker/feature/FOUR-20583-D
pmPaulis Jan 10, 2025
82a3a65
FOUR-20583: Updating observations
hjonathan Jan 14, 2025
8bcdca4
Merge remote-tracking branch 'origin/epic/FOUR-20336' into feature/FO…
pmPaulis Jan 16, 2025
946eab9
FOUR-20583: Updating observations & fix conflicts
hjonathan Jan 23, 2025
6edba9c
Merge branch 'feature/FOUR-20583' of github.com:ProcessMaker/processm…
hjonathan Jan 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FOUR-20583-A: Tasks Main change to new layout , adjustments in preview
  • Loading branch information
hjonathan committed Dec 17, 2024
commit 78d6fa219e7d7b2bc251ffd3752445976bac53ab
15 changes: 0 additions & 15 deletions resources/js/next/config/momentConfig.js

This file was deleted.

6 changes: 3 additions & 3 deletions resources/js/next/config/openAI.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { setGlobalPMVariable } from "../globalVariables";

const openAiEnabled = document.head.querySelector("meta[name=\"open-ai-nlq-to-pmql\"]");
const openAi = document.head.querySelector("meta[name=\"open-ai-nlq-to-pmql\"]");

setGlobalPMVariable("openAiEnabled", openAiEnabled ? {
enabled: openAiEnabled.content,
setGlobalPMVariable("openAi", openAi ? {
enabled: openAi.content,
} : {
enabled: false,
});
8 changes: 0 additions & 8 deletions resources/js/next/layout/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ const Vue = getGlobalVariable("Vue");
// Vue.use(VueHtml2Canvas);
Vue.prototype.$sanitize = sanitizeUrl;

Vue.component("LanguageSelectorButton", (resolve) => {
if (window.ProcessMaker.languageSelectorButtonComponent) {
resolve(window.ProcessMaker.languageSelectorButtonComponent);
} else {
window.ProcessMaker.languageSelectorButtonComponentResolve = resolve;
}
});

new Vue({
el: "#sidebar",
components: {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/next/screenBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
} from "./globalVariables";

const Vue = getGlobalVariable("Vue");
const apiClient = getGlobalPMVariable("apiClient");

const addScriptsToDOM = async function (scripts) {
for (const script of scripts) {
Expand All @@ -26,6 +25,7 @@ componentsScreenBuilder.forEach((component) => {
if (screenBuilderScripts) {
addScriptsToDOM(screenBuilderScripts).then(() => {
import("@processmaker/screen-builder").then((ScreenBuilder) => {
const apiClient = getGlobalPMVariable("apiClient");
Vue.use(ScreenBuilder.default);

const { initializeScreenCache } = ScreenBuilder;
Expand Down
40 changes: 15 additions & 25 deletions resources/js/tasks/loaderPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,43 @@ import Vue from "vue";
import * as vue from "vue";
import { BootstrapVue, BootstrapVueIcons } from "bootstrap-vue";
import moment from "moment-timezone";

import debounce from "lodash/debounce";
import Mustache from "mustache";

import { loadModulesSequentially } from "../next/globalVariables";

window.Vue = Vue;
window.vue = vue;
window.moment = moment;

window.Vue.prototype.moment = moment;
window.Vue.use(BootstrapVue);
window.Vue.use(BootstrapVueIcons);

window.debounce = debounce;
window.Mustache = Mustache;

import("../next/libraries/vuex");
import("../next/libraries/bootstrap");
import("../next/libraries/jquery");
import("../next/libraries/vueRouter");
import("../next/libraries/vueCookies");
// Load components
import("../next/components/index");
import("../next/libraries/sharedComponents");
import("../next/libraries/vueFormElements");

window.ProcessMaker = {
EventBus: new Vue(),
events: new Vue(),
packages: window.packages,
};

loadModulesSequentially([
// Screen builder
import("../next/config/processmaker"),
import("../next/config/i18n"),
import("../next/libraries/broadcast"),
import("../next/config/session"),
import("../next/screenBuilder"),
]).then(() => {
import("./preview");
});
import("../next/components/index");
import("../next/screenBuilder");
import("../next/libraries/vueFormElements");
import("../next/libraries/sharedComponents");

import("../next/libraries/vuex");
import("../next/libraries/bootstrap");
import("../next/libraries/lodash");
import("../next/libraries/jquery");
import("../next/libraries/vueCookies");
import("../next/config/i18n");
import("../next/libraries/vueRouter");
import("../next/libraries/broadcast");

import("../next/config/processmaker");
import("../next/config/notifications");
import("../next/config/user");
import("../next/config/momentConfig");
import("../next/config/session");
import("../next/config/openAI");

// Load libraries dependencies first
Expand Down
10 changes: 5 additions & 5 deletions resources/js/tasks/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ const main = new Vue({
usersList: [],
filter: "",
showReassignment: false,
task: window.task,
userHasAccessToTask: window.userHasAccessToTask,
task,
userHasAccessToTask,
statusCard: "card-header text-capitalize text-white bg-success",
selectedUser: [],
hasErrors: false,
redirectInProcess: false,
formData: {},
submitting: false,
userIsAdmin: window.userIsAdmin,
userIsProcessManager: window.userIsProcessManager,
userIsAdmin,
userIsProcessManager,
is_loading: false,
autoSaveDelay: 5000,
userHasInteracted: false,
Expand Down Expand Up @@ -162,7 +162,7 @@ const main = new Vue({
},
filterScreenFields(taskData) {
const filteredData = {};
window.screenFields.forEach((field) => {
screenFields.forEach((field) => {
_.set(filteredData, field, _.get(taskData, field, null));
});
return filteredData;
Expand Down
20 changes: 11 additions & 9 deletions resources/views/tasks/preview.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,17 @@ class="card border-0"
<script src="{{ mix('js/vue-vendor.js') }}"></script>
<script src="{{ mix('js/fortawesome-vendor.js') }}"></script>
<script src="{{ mix('js/bootstrap-vendor.js') }}"></script>
<script type="module">
<script>
window.packages = @json(\App::make(ProcessMaker\Managers\PackageManager::class)->listPackages());
window.screenBuilderScripts = @json($manager->getScripts());
window.task = @json($task);
window.userHasAccessToTask = {{ Auth::user()->can('update', $task) ? "true": "false" }};
window.userIsAdmin = {{ Auth::user()->is_administrator ? "true": "false" }};
window.userIsProcessManager = {{ Auth::user()->id === $task->process?->manager_id ? "true": "false" }};
window.screenFields = @json($screenFields);
const screenBuilderScripts = @json($manager->getScripts());
const task = @json($task);
const userHasAccessToTask = {{ Auth::user()->can('update', $task) ? "true": "false" }};
const userIsAdmin = {{ Auth::user()->is_administrator ? "true": "false" }};
const userIsProcessManager = {{ Auth::user()->id === $task->process?->manager_id ? "true": "false" }};
const screenFields = @json($screenFields);
</script>
<script type="module" src="{{ mix('js/tasks/loaderPreview.js')}}"></script>
<script type="module">
<script src="{{ mix('js/tasks/loaderPreview.js')}}"></script>
<script>
window.ProcessMaker.EventBus.$on("screen-renderer-init", (screen) => {
if (screen.watchers_config) {
screen.watchers_config.api.execute = @json(route('api.scripts.execute', ['script_id' => 'script_id', 'script_key' => 'script_key']));
Expand All @@ -155,6 +155,8 @@ class="card border-0"
};
</script>

<script src="{{mix('js/tasks/preview.js')}}"></script>

<style>
.inline-input {
margin-right: 6px;
Expand Down
1 change: 1 addition & 0 deletions webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ mix
.js("resources/js/tasks/loaderPreview.js", "public/js/tasks")
.js("resources/js/tasks/loaderEdit.js", "public/js/tasks")
.js("resources/js/tasks/edit.js", "public/js/tasks/edit.js")
.js("resources/js/tasks/preview.js", "public/js/tasks/preview.js")

.js("resources/js/app.js", "public/js");
// .polyfill({
Expand Down