@plusscommunities/pluss-maintenance-web 1.1.37 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +10 -8
- package/dist/index.esm.js +10 -8
- package/dist/index.umd.js +10 -8
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -594,6 +594,7 @@ const stringActions = Apis$2.stringActions;
|
|
|
594
594
|
var jobStatusOptions = [
|
|
595
595
|
{
|
|
596
596
|
text: "Open",
|
|
597
|
+
alias: "Unassigned",
|
|
597
598
|
order: 0,
|
|
598
599
|
color: "#d5dde4",
|
|
599
600
|
category: "Not Actioned"
|
|
@@ -790,15 +791,16 @@ class JobList extends React.Component {
|
|
|
790
791
|
} = this.props;
|
|
791
792
|
const params = {};
|
|
792
793
|
|
|
793
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
794
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses.
|
|
795
|
+
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
796
|
+
// for "Open") still match the filter.
|
|
794
797
|
if (selectedStatusFilter) {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
} else {
|
|
798
|
+
const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
|
|
799
|
+
const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
|
|
800
|
+
if (expanded.length > 0) {
|
|
801
|
+
params.status = expanded.join(',');
|
|
802
|
+
} else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
|
|
803
|
+
// Fallback if the status isn't in statusTypes (shouldn't happen normally)
|
|
802
804
|
params.status = selectedStatusFilter;
|
|
803
805
|
}
|
|
804
806
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -563,6 +563,7 @@ const stringActions = Apis$2.stringActions;
|
|
|
563
563
|
var jobStatusOptions = [
|
|
564
564
|
{
|
|
565
565
|
text: "Open",
|
|
566
|
+
alias: "Unassigned",
|
|
566
567
|
order: 0,
|
|
567
568
|
color: "#d5dde4",
|
|
568
569
|
category: "Not Actioned"
|
|
@@ -759,15 +760,16 @@ class JobList extends Component {
|
|
|
759
760
|
} = this.props;
|
|
760
761
|
const params = {};
|
|
761
762
|
|
|
762
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
763
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses.
|
|
764
|
+
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
765
|
+
// for "Open") still match the filter.
|
|
763
766
|
if (selectedStatusFilter) {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
} else {
|
|
767
|
+
const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
|
|
768
|
+
const expanded = _.uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
|
|
769
|
+
if (expanded.length > 0) {
|
|
770
|
+
params.status = expanded.join(',');
|
|
771
|
+
} else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
|
|
772
|
+
// Fallback if the status isn't in statusTypes (shouldn't happen normally)
|
|
771
773
|
params.status = selectedStatusFilter;
|
|
772
774
|
}
|
|
773
775
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -583,6 +583,7 @@
|
|
|
583
583
|
var jobStatusOptions = [
|
|
584
584
|
{
|
|
585
585
|
text: "Open",
|
|
586
|
+
alias: "Unassigned",
|
|
586
587
|
order: 0,
|
|
587
588
|
color: "#d5dde4",
|
|
588
589
|
category: "Not Actioned"
|
|
@@ -779,15 +780,16 @@
|
|
|
779
780
|
} = this.props;
|
|
780
781
|
const params = {};
|
|
781
782
|
|
|
782
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
783
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses.
|
|
784
|
+
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
785
|
+
// for "Open") still match the filter.
|
|
783
786
|
if (selectedStatusFilter) {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
} else {
|
|
787
|
+
const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
|
|
788
|
+
const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
|
|
789
|
+
if (expanded.length > 0) {
|
|
790
|
+
params.status = expanded.join(',');
|
|
791
|
+
} else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
|
|
792
|
+
// Fallback if the status isn't in statusTypes (shouldn't happen normally)
|
|
791
793
|
params.status = selectedStatusFilter;
|
|
792
794
|
}
|
|
793
795
|
}
|
package/package.json
CHANGED