Skip to content

Commit

Permalink
Merge branch 'main' into 466-feat-popup-on-edit-wheel-when-user-leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
fshabanov authored Sep 28, 2024
2 parents 9a8c3d5 + c9ff3c3 commit 671bf7b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions apps/frontend/src/assets/img/note.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions apps/frontend/src/libs/components/button/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
}

.light-label {
padding-right: 10px;
padding-left: 10px;
color: var(--medium-light-gray);
}

Expand Down
3 changes: 2 additions & 1 deletion apps/frontend/src/libs/components/task-card/task-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const TaskCard: React.FC<Properties> = ({
className={getValidClassNames(styles["card"], styles[`card-${variant}`])}
>
<div className={styles["card-header"]}>
<Category categoryName={task.categoryName} />
<Category categoryName={task.categoryName} variant={variant} />
{isActive && (
<Deadline
deadline={(task as TaskDto).dueDate}
Expand All @@ -99,6 +99,7 @@ const TaskCard: React.FC<Properties> = ({
<div className={styles["button-container"]}>
<Button
hasVisuallyHiddenLabel
iconColor={iconColor}
iconName="note"
iconPosition="left"
label="notes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Properties = {

const CircularProgress: React.FC<Properties> = ({ percentage }: Properties) => {
const [isVisible, setIsVisible] = useState<boolean>(false);
const RADIUS = 90;
const RADIUS = 80;
const circumference = Math.PI * RADIUS;
const offset =
circumference - (percentage / TOTAL_PERCENTAGE) * circumference;
Expand Down
5 changes: 4 additions & 1 deletion apps/frontend/src/pages/tasks/tasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ const Tasks: React.FC = () => {
for (const task of tasks) {
const timeToDeadline = getMillisecondsLeft(currentTime, task.dueDate);

if (timeToDeadline < MillisecondsPerUnit.MINUTE) {
if (
timeToDeadline < MillisecondsPerUnit.MINUTE &&
task.status === TaskStatus.CURRENT
) {
expired.push(task);
} else {
active.push(task);
Expand Down

0 comments on commit 671bf7b

Please sign in to comment.