@plusscommunities/pluss-maintenance-web-feedback 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
@@ -582,6 +582,7 @@ const stringActions = Apis$2.stringActions;
582
582
  var jobStatusOptions = [
583
583
  {
584
584
  text: "Open",
585
+ alias: "Unassigned",
585
586
  order: 0,
586
587
  color: "#d5dde4",
587
588
  category: "Not Actioned"
@@ -778,15 +779,16 @@ class JobList extends React.Component {
778
779
  } = this.props;
779
780
  const params = {};
780
781
 
781
- // Status filter: translate "All Incomplete" into the actual incomplete statuses
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.
782
785
  if (selectedStatusFilter) {
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 {
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)
790
792
  params.status = selectedStatusFilter;
791
793
  }
792
794
  }
package/dist/index.esm.js CHANGED
@@ -551,6 +551,7 @@ const stringActions = Apis$2.stringActions;
551
551
  var jobStatusOptions = [
552
552
  {
553
553
  text: "Open",
554
+ alias: "Unassigned",
554
555
  order: 0,
555
556
  color: "#d5dde4",
556
557
  category: "Not Actioned"
@@ -747,15 +748,16 @@ class JobList extends Component {
747
748
  } = this.props;
748
749
  const params = {};
749
750
 
750
- // Status filter: translate "All Incomplete" into the actual incomplete statuses
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.
751
754
  if (selectedStatusFilter) {
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 {
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)
759
761
  params.status = selectedStatusFilter;
760
762
  }
761
763
  }
package/dist/index.umd.js CHANGED
@@ -571,6 +571,7 @@
571
571
  var jobStatusOptions = [
572
572
  {
573
573
  text: "Open",
574
+ alias: "Unassigned",
574
575
  order: 0,
575
576
  color: "#d5dde4",
576
577
  category: "Not Actioned"
@@ -767,15 +768,16 @@
767
768
  } = this.props;
768
769
  const params = {};
769
770
 
770
- // Status filter: translate "All Incomplete" into the actual incomplete statuses
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.
771
774
  if (selectedStatusFilter) {
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 {
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)
779
781
  params.status = selectedStatusFilter;
780
782
  }
781
783
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web-feedback",
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",