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