@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.
@@ -30033,13 +30033,19 @@ var DailyTasks = function DailyTasks(_ref) {
30033
30033
  var matchesStatus = selectedStatus === 'all' || selectedStatus === 'pinned' && pinnedTasks.includes(task.key) || selectedStatus === 'completed' && task.status === TaskStatus.Completed || selectedStatus === 'inprogress' && task.status === TaskStatus.InProgress || selectedStatus === 'notstarted' && task.status === TaskStatus.NotStarted;
30034
30034
  return matchesSearch && matchesStatus;
30035
30035
  });
30036
- // Sort with pinned tasks first
30036
+ // Sort by relevance: pinned first, then by status (in progress, completed, not started)
30037
30037
  return filtered.sort(function (a, b) {
30038
+ var _statusPriority;
30038
30039
  var aIsPinned = pinnedTasks.includes(a.key);
30039
30040
  var bIsPinned = pinnedTasks.includes(b.key);
30041
+ // Pinned tasks always come first
30040
30042
  if (aIsPinned && !bIsPinned) return -1;
30041
30043
  if (!aIsPinned && bIsPinned) return 1;
30042
- return 0;
30044
+ // If both are pinned or both are not pinned, sort by status priority
30045
+ var statusPriority = (_statusPriority = {}, _statusPriority[TaskStatus.InProgress] = 1, _statusPriority[TaskStatus.Completed] = 2, _statusPriority[TaskStatus.NotStarted] = 3, _statusPriority);
30046
+ var aPriority = statusPriority[a.status] || 4;
30047
+ var bPriority = statusPriority[b.status] || 4;
30048
+ return aPriority - bPriority;
30043
30049
  });
30044
30050
  }, [localTasks, searchQuery, selectedStatus, pinnedTasks]);
30045
30051
  return React.createElement(TasksContainer, {
@@ -30047,8 +30053,8 @@ var DailyTasks = function DailyTasks(_ref) {
30047
30053
  onCloseButton: onClose,
30048
30054
  cancelDrag: ".tasks-container",
30049
30055
  scale: scale,
30050
- width: isMobile ? '100vw' : 'max(50vw, 900px)',
30051
- height: isMobile ? '100vh' : 'min(85vh, 800px)',
30056
+ width: 'max(50vw, 900px)',
30057
+ height: 'min(85vh, 800px)',
30052
30058
  isMobile: isMobile
30053
30059
  }, React.createElement(TaskTitle$1, {
30054
30060
  isMobile: isMobile
@@ -30097,12 +30103,8 @@ var DailyTasks = function DailyTasks(_ref) {
30097
30103
  var TasksContainer = /*#__PURE__*/styled(DraggableContainer).withConfig({
30098
30104
  displayName: "DailyTasks__TasksContainer",
30099
30105
  componentId: "sc-ittn77-0"
30100
- })(["", " .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) {
30101
- 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 ";
30102
- }, function (props) {
30106
+ })(["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) {
30103
30107
  return props.isMobile ? 'padding: 8px 0;' : '';
30104
- }, function (props) {
30105
- return props.isMobile ? "\n border-radius: 0 !important;\n height: 100vh !important;\n width: 100vw !important;\n " : '';
30106
30108
  });
30107
30109
  var Container$i = /*#__PURE__*/styled.div.withConfig({
30108
30110
  displayName: "DailyTasks__Container",
@@ -30114,7 +30116,7 @@ var TasksList = /*#__PURE__*/styled.div.withConfig({
30114
30116
  })(["display:flex;flex-direction:column;gap:", ";padding:", ";overflow-y:auto;flex:1;background-color:transparent;", ""], function (props) {
30115
30117
  return props.isMobile ? '8px' : '12px';
30116
30118
  }, function (props) {
30117
- return props.isMobile ? '8px' : '12px';
30119
+ return props.isMobile ? '8px 8px 40px 8px' : '12px 12px 40px 12px';
30118
30120
  }, function (props) {
30119
30121
  return props.isMobile ? "\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n " : '';
30120
30122
  });