@rpg-engine/long-bow 0.8.75 → 0.8.77

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, {
@@ -30054,8 +30060,8 @@ var DailyTasks = function DailyTasks(_ref) {
30054
30060
  onCloseButton: onClose,
30055
30061
  cancelDrag: ".tasks-container",
30056
30062
  scale: scale,
30057
- width: isMobile ? '100vw' : 'max(50vw, 900px)',
30058
- height: isMobile ? '100vh' : 'min(85vh, 800px)',
30063
+ width: 'max(50vw, 900px)',
30064
+ height: 'min(85vh, 800px)',
30059
30065
  isMobile: isMobile
30060
30066
  }, React__default.createElement(TaskTitle$1, {
30061
30067
  isMobile: isMobile
@@ -30104,12 +30110,8 @@ var DailyTasks = function DailyTasks(_ref) {
30104
30110
  var TasksContainer = /*#__PURE__*/styled__default(DraggableContainer).withConfig({
30105
30111
  displayName: "DailyTasks__TasksContainer",
30106
30112
  componentId: "sc-ittn77-0"
30107
- })(["", " .rpgui-container-title{width:100%;display:flex;justify-content:center;align-items:center;text-align:center;", "}.rpgui-container{padding:0 !important;overflow:hidden !important;background-color:rgba(30,30,30,0.98) !important;", "}"], function (props) {
30108
- return props.isMobile ? "\n position: fixed !important;\n top: 0 !important;\n left: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n width: 100vw !important;\n height: 100vh !important;\n margin: 0 !important;\n z-index: 1000 !important;\n " : "\n margin: 0 auto;\n min-width: 50vw;\n ";
30109
- }, function (props) {
30113
+ })(["margin:0 auto;min-width:50vw;.rpgui-container-title{width:100%;display:flex;justify-content:center;align-items:center;text-align:center;", "}.rpgui-container{padding:0 !important;overflow:hidden !important;background-color:rgba(30,30,30,0.98) !important;}"], function (props) {
30110
30114
  return props.isMobile ? 'padding: 8px 0;' : '';
30111
- }, function (props) {
30112
- return props.isMobile ? "\n border-radius: 0 !important;\n height: 100vh !important;\n width: 100vw !important;\n " : '';
30113
30115
  });
30114
30116
  var Container$i = /*#__PURE__*/styled__default.div.withConfig({
30115
30117
  displayName: "DailyTasks__Container",
@@ -30121,7 +30123,7 @@ var TasksList = /*#__PURE__*/styled__default.div.withConfig({
30121
30123
  })(["display:flex;flex-direction:column;gap:", ";padding:", ";overflow-y:auto;flex:1;background-color:transparent;", ""], function (props) {
30122
30124
  return props.isMobile ? '8px' : '12px';
30123
30125
  }, function (props) {
30124
- return props.isMobile ? '8px' : '12px';
30126
+ return props.isMobile ? '8px 8px 40px 8px' : '12px 12px 40px 12px';
30125
30127
  }, function (props) {
30126
30128
  return props.isMobile ? "\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n " : '';
30127
30129
  });