@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.
- package/dist/long-bow.cjs.development.js +9 -3
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +9 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DailyTasks/DailyTasks.tsx +16 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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, {
|
|
@@ -30114,7 +30120,7 @@ var TasksList = /*#__PURE__*/styled.div.withConfig({
|
|
|
30114
30120
|
})(["display:flex;flex-direction:column;gap:", ";padding:", ";overflow-y:auto;flex:1;background-color:transparent;", ""], function (props) {
|
|
30115
30121
|
return props.isMobile ? '8px' : '12px';
|
|
30116
30122
|
}, function (props) {
|
|
30117
|
-
return props.isMobile ? '8px' : '12px';
|
|
30123
|
+
return props.isMobile ? '8px 8px 40px 8px' : '12px 12px 40px 12px';
|
|
30118
30124
|
}, function (props) {
|
|
30119
30125
|
return props.isMobile ? "\n -webkit-overflow-scrolling: touch;\n scrollbar-width: thin;\n " : '';
|
|
30120
30126
|
});
|