@plusscommunities/pluss-maintenance-web 1.1.38 → 1.1.39

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 CHANGED
@@ -594,7 +594,6 @@ const stringActions = Apis$2.stringActions;
594
594
  var jobStatusOptions = [
595
595
  {
596
596
  text: "Open",
597
- alias: "Unassigned",
598
597
  order: 0,
599
598
  color: "#d5dde4",
600
599
  category: "Not Actioned"
@@ -791,16 +790,15 @@ class JobList extends React.Component {
791
790
  } = this.props;
792
791
  const params = {};
793
792
 
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.
793
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
797
794
  if (selectedStatusFilter) {
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)
795
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
796
+ // Exclude completed statuses - pass all non-completed status texts
797
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
798
+ if (incompleteStatuses.length > 0) {
799
+ params.status = incompleteStatuses.join(',');
800
+ }
801
+ } else {
804
802
  params.status = selectedStatusFilter;
805
803
  }
806
804
  }
package/dist/index.esm.js CHANGED
@@ -563,7 +563,6 @@ const stringActions = Apis$2.stringActions;
563
563
  var jobStatusOptions = [
564
564
  {
565
565
  text: "Open",
566
- alias: "Unassigned",
567
566
  order: 0,
568
567
  color: "#d5dde4",
569
568
  category: "Not Actioned"
@@ -760,16 +759,15 @@ class JobList extends Component {
760
759
  } = this.props;
761
760
  const params = {};
762
761
 
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.
762
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
766
763
  if (selectedStatusFilter) {
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)
764
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
765
+ // Exclude completed statuses - pass all non-completed status texts
766
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
767
+ if (incompleteStatuses.length > 0) {
768
+ params.status = incompleteStatuses.join(',');
769
+ }
770
+ } else {
773
771
  params.status = selectedStatusFilter;
774
772
  }
775
773
  }
package/dist/index.umd.js CHANGED
@@ -583,7 +583,6 @@
583
583
  var jobStatusOptions = [
584
584
  {
585
585
  text: "Open",
586
- alias: "Unassigned",
587
586
  order: 0,
588
587
  color: "#d5dde4",
589
588
  category: "Not Actioned"
@@ -780,16 +779,15 @@
780
779
  } = this.props;
781
780
  const params = {};
782
781
 
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.
782
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
786
783
  if (selectedStatusFilter) {
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)
784
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
785
+ // Exclude completed statuses - pass all non-completed status texts
786
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
787
+ if (incompleteStatuses.length > 0) {
788
+ params.status = incompleteStatuses.join(',');
789
+ }
790
+ } else {
793
791
  params.status = selectedStatusFilter;
794
792
  }
795
793
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web",
3
- "version": "1.1.38",
3
+ "version": "1.1.39",
4
4
  "description": "Extension package to enable maintenance on Pluss Communities Platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",