@rpg-engine/long-bow 0.8.75 → 0.8.76

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.
@@ -30040,13 +30040,19 @@ var DailyTasks = function DailyTasks(_ref) {
30040
30040
  var matchesStatus = selectedStatus === 'all' || selectedStatus === 'pinned' && pinnedTasks.includes(task.key) || selectedStatus === 'completed' && task.status === shared.TaskStatus.Completed || selectedStatus === 'inprogress' && task.status === shared.TaskStatus.InProgress || selectedStatus === 'notstarted' && task.status === shared.TaskStatus.NotStarted;
30041
30041
  return matchesSearch && matchesStatus;
30042
30042
  });
30043
- // Sort with pinned tasks first
30043
+ // Sort by relevance: pinned first, then by status (in progress, completed, not started)
30044
30044
  return filtered.sort(function (a, b) {
30045
+ var _statusPriority;
30045
30046
  var aIsPinned = pinnedTasks.includes(a.key);
30046
30047
  var bIsPinned = pinnedTasks.includes(b.key);
30048
+ // Pinned tasks always come first
30047
30049
  if (aIsPinned && !bIsPinned) return -1;
30048
30050
  if (!aIsPinned && bIsPinned) return 1;
30049
- return 0;
30051
+ // If both are pinned or both are not pinned, sort by status priority
30052
+ var statusPriority = (_statusPriority = {}, _statusPriority[shared.TaskStatus.InProgress] = 1, _statusPriority[shared.TaskStatus.Completed] = 2, _statusPriority[shared.TaskStatus.NotStarted] = 3, _statusPriority);
30053
+ var aPriority = statusPriority[a.status] || 4;
30054
+ var bPriority = statusPriority[b.status] || 4;
30055
+ return aPriority - bPriority;
30050
30056
  });
30051
30057
  }, [localTasks, searchQuery, selectedStatus, pinnedTasks]);
30052
30058
  return React__default.createElement(TasksContainer, {
@@ -30121,7 +30127,7 @@ var TasksList = /*#__PURE__*/styled__default.div.withConfig({
30121
30127
  })(["display:flex;flex-direction:column;gap:", ";padding:", ";overflow-y:auto;flex:1;background-color:transparent;", ""], function (props) {
30122
30128
  return props.isMobile ? '8px' : '12px';
30123
30129
  }, function (props) {
30124
- return props.isMobile ? '8px' : '12px';
30130
+ return props.isMobile ? '8px 8px 40px 8px' : '12px 12px 40px 12px';
30125
30131
  }, function (props) {
30126
30132
  return props.isMobile ? "\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n " : '';
30127
30133
  });