@plusscommunities/pluss-maintenance-web-a 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 CHANGED
@@ -583,6 +583,7 @@ const stringActions = Apis$2.stringActions;
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 @@ class JobList extends React.Component {
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
- 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 {
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/dist/index.esm.js CHANGED
@@ -552,6 +552,7 @@ const stringActions = Apis$2.stringActions;
552
552
  var jobStatusOptions = [
553
553
  {
554
554
  text: "Open",
555
+ alias: "Unassigned",
555
556
  order: 0,
556
557
  color: "#d5dde4",
557
558
  category: "Not Actioned"
@@ -748,15 +749,16 @@ class JobList extends Component {
748
749
  } = this.props;
749
750
  const params = {};
750
751
 
751
- // Status filter: translate "All Incomplete" into the actual incomplete statuses
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.
752
755
  if (selectedStatusFilter) {
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 {
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)
760
762
  params.status = selectedStatusFilter;
761
763
  }
762
764
  }
package/dist/index.umd.js CHANGED
@@ -572,6 +572,7 @@
572
572
  var jobStatusOptions = [
573
573
  {
574
574
  text: "Open",
575
+ alias: "Unassigned",
575
576
  order: 0,
576
577
  color: "#d5dde4",
577
578
  category: "Not Actioned"
@@ -768,15 +769,16 @@
768
769
  } = this.props;
769
770
  const params = {};
770
771
 
771
- // Status filter: translate "All Incomplete" into the actual incomplete statuses
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.
772
775
  if (selectedStatusFilter) {
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 {
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)
780
782
  params.status = selectedStatusFilter;
781
783
  }
782
784
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web-a",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
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",