@plusscommunities/pluss-maintenance-web-a 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
@@ -583,7 +583,6 @@ const stringActions = Apis$2.stringActions;
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 @@ class JobList extends React.Component {
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/dist/index.esm.js CHANGED
@@ -552,7 +552,6 @@ const stringActions = Apis$2.stringActions;
552
552
  var jobStatusOptions = [
553
553
  {
554
554
  text: "Open",
555
- alias: "Unassigned",
556
555
  order: 0,
557
556
  color: "#d5dde4",
558
557
  category: "Not Actioned"
@@ -749,16 +748,15 @@ class JobList extends Component {
749
748
  } = this.props;
750
749
  const params = {};
751
750
 
752
- // Status filter: translate "All Incomplete" into the actual incomplete statuses.
753
- // Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
754
- // for "Open") still match the filter.
751
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
755
752
  if (selectedStatusFilter) {
756
- const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
757
- const expanded = _.uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
758
- if (expanded.length > 0) {
759
- params.status = expanded.join(',');
760
- } else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
761
- // Fallback if the status isn't in statusTypes (shouldn't happen normally)
753
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
754
+ // Exclude completed statuses - pass all non-completed status texts
755
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
756
+ if (incompleteStatuses.length > 0) {
757
+ params.status = incompleteStatuses.join(',');
758
+ }
759
+ } else {
762
760
  params.status = selectedStatusFilter;
763
761
  }
764
762
  }
package/dist/index.umd.js CHANGED
@@ -572,7 +572,6 @@
572
572
  var jobStatusOptions = [
573
573
  {
574
574
  text: "Open",
575
- alias: "Unassigned",
576
575
  order: 0,
577
576
  color: "#d5dde4",
578
577
  category: "Not Actioned"
@@ -769,16 +768,15 @@
769
768
  } = this.props;
770
769
  const params = {};
771
770
 
772
- // Status filter: translate "All Incomplete" into the actual incomplete statuses.
773
- // Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
774
- // for "Open") still match the filter.
771
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
775
772
  if (selectedStatusFilter) {
776
- const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
777
- const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
778
- if (expanded.length > 0) {
779
- params.status = expanded.join(',');
780
- } else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
781
- // Fallback if the status isn't in statusTypes (shouldn't happen normally)
773
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
774
+ // Exclude completed statuses - pass all non-completed status texts
775
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
776
+ if (incompleteStatuses.length > 0) {
777
+ params.status = incompleteStatuses.join(',');
778
+ }
779
+ } else {
782
780
  params.status = selectedStatusFilter;
783
781
  }
784
782
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web-a",
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",