@plusscommunities/pluss-maintenance-web-forms 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
@@ -588,7 +588,6 @@ const stringActions = Apis$2.stringActions;
588
588
  var jobStatusOptions = [
589
589
  {
590
590
  text: "Open",
591
- alias: "Unassigned",
592
591
  order: 0,
593
592
  color: "#d5dde4",
594
593
  category: "Not Actioned"
@@ -785,16 +784,15 @@ class JobList extends React.Component {
785
784
  } = this.props;
786
785
  const params = {};
787
786
 
788
- // Status filter: translate "All Incomplete" into the actual incomplete statuses.
789
- // Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
790
- // for "Open") still match the filter.
787
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
791
788
  if (selectedStatusFilter) {
792
- const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
793
- const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
794
- if (expanded.length > 0) {
795
- params.status = expanded.join(',');
796
- } else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
797
- // Fallback if the status isn't in statusTypes (shouldn't happen normally)
789
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
790
+ // Exclude completed statuses - pass all non-completed status texts
791
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
792
+ if (incompleteStatuses.length > 0) {
793
+ params.status = incompleteStatuses.join(',');
794
+ }
795
+ } else {
798
796
  params.status = selectedStatusFilter;
799
797
  }
800
798
  }
package/dist/index.esm.js CHANGED
@@ -557,7 +557,6 @@ const stringActions = Apis$2.stringActions;
557
557
  var jobStatusOptions = [
558
558
  {
559
559
  text: "Open",
560
- alias: "Unassigned",
561
560
  order: 0,
562
561
  color: "#d5dde4",
563
562
  category: "Not Actioned"
@@ -754,16 +753,15 @@ class JobList extends Component {
754
753
  } = this.props;
755
754
  const params = {};
756
755
 
757
- // Status filter: translate "All Incomplete" into the actual incomplete statuses.
758
- // Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
759
- // for "Open") still match the filter.
756
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
760
757
  if (selectedStatusFilter) {
761
- const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
762
- const expanded = _.uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
763
- if (expanded.length > 0) {
764
- params.status = expanded.join(',');
765
- } else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
766
- // Fallback if the status isn't in statusTypes (shouldn't happen normally)
758
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
759
+ // Exclude completed statuses - pass all non-completed status texts
760
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
761
+ if (incompleteStatuses.length > 0) {
762
+ params.status = incompleteStatuses.join(',');
763
+ }
764
+ } else {
767
765
  params.status = selectedStatusFilter;
768
766
  }
769
767
  }
package/dist/index.umd.js CHANGED
@@ -577,7 +577,6 @@
577
577
  var jobStatusOptions = [
578
578
  {
579
579
  text: "Open",
580
- alias: "Unassigned",
581
580
  order: 0,
582
581
  color: "#d5dde4",
583
582
  category: "Not Actioned"
@@ -774,16 +773,15 @@
774
773
  } = this.props;
775
774
  const params = {};
776
775
 
777
- // Status filter: translate "All Incomplete" into the actual incomplete statuses.
778
- // Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
779
- // for "Open") still match the filter.
776
+ // Status filter: translate "All Incomplete" into the actual incomplete statuses
780
777
  if (selectedStatusFilter) {
781
- const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
782
- const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
783
- if (expanded.length > 0) {
784
- params.status = expanded.join(',');
785
- } else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
786
- // Fallback if the status isn't in statusTypes (shouldn't happen normally)
778
+ if (selectedStatusFilter === STATUS_IMCOMPLETE) {
779
+ // Exclude completed statuses - pass all non-completed status texts
780
+ const incompleteStatuses = statusTypes.filter(s => s.category !== STATUS_COMPLETED).map(s => s.text);
781
+ if (incompleteStatuses.length > 0) {
782
+ params.status = incompleteStatuses.join(',');
783
+ }
784
+ } else {
787
785
  params.status = selectedStatusFilter;
788
786
  }
789
787
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web-forms",
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",