adjusted task size and sorting so that larger tasks change the hidden effective due date and small tasks sort higher in smaller but linear way.

This commit is contained in:
2026-02-25 18:46:43 -06:00
parent 81b572422b
commit 476823394b
2 changed files with 39 additions and 16 deletions
+25 -11
View File
@@ -42,19 +42,33 @@ export const SHARE_RULES_COLLECTION = 'TasGrid_ShareRules';
export const BUCKETS_COLLECTION = 'buckets';
export const SIZE_OPTIONS = [
{ value: "10", label: "10 - Multiple Days" },
{ value: "9", label: "9 - More than a day" },
{ value: "8", label: "8 - One day" },
{ value: "7", label: "7 - Half a day" },
{ value: "6", label: "6 - Two hours" },
{ value: "5", label: "5 - One hour" },
{ value: "4", label: "4 - Forty-Five minutes" },
{ value: "3", label: "3 - Thirty minutes" },
{ value: "2", label: "2 - Fifteen minutes" },
{ value: "1", label: "1 - Five minutes" },
{ value: "0", label: "0 - Less than a minute" }
{ value: "10", label: "10 - Two weeks" },
{ value: "9", label: "9 - One week" },
{ value: "8", label: "8 - Three days" },
{ value: "7", label: "7 - Two days" },
{ value: "6", label: "6 - One day" },
{ value: "5", label: "5 - Half a day" },
{ value: "4", label: "4 - Two hours" },
{ value: "3", label: "3 - One hour" },
{ value: "2", label: "2 - Thirty minutes" },
{ value: "1", label: "1 - Fifteen minutes" },
{ value: "0", label: "0 - Five minutes" }
];
export const SIZE_HOURS: Record<number, number> = {
10: 336, // Two weeks
9: 168, // One week
8: 72, // Three days
7: 48, // Two days
6: 24, // One day
5: 12, // Half a day
4: 2, // Two hours
3: 1, // One hour
2: 0.5, // Thirty minutes
1: 0.25, // Fifteen minutes
0: 0.083 // Five minutes
};
export const STATUS_OPTIONS = [
{ value: "10", label: "10 - Complete" },
{ value: "9", label: "9" },