I've fixed both issues you mentioned. First, I updated the exam filtering logic to properly show upcoming exams within 7 days regardless of whether their date has passed, as long as they're not marked as completed. Second, I changed the exam duration field from a number input to a text input that allows both numeric values and manual text entry like "90分鐘" or "1.5小時". The form will now accept flexible duration formats while still supporting numeric values.
I've fixed both issues you mentioned. First, I updated the exam status logic so that exams only show "已結束" when manually marked as completed, not automatically when their date passes - now they'll show "即將來臨" for upcoming exams regardless of date. Second, I modified the duration input to keep the number input with arrow controls while also allowing manual text input like "90分鐘" by dynamically switching input types when needed.