[PR #7024] [MERGED] chore: add loose restrictions to date time text field #7690

Closed
opened 2026-03-23 23:20:46 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7024
Author: @Xazin
Created: 12/20/2024
Status: Merged
Merged: 1/5/2025
Merged by: @richardshiue

Base: mainHead: chore/loose-restrictions-date-picker


📝 Commits (2)

  • ebd3412 chore: add loose restrictions to date time text field
  • ed77b76 chore: remove date formatter

📊 Changes

1 file changed (+9 additions, -0 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/date_picker/widgets/date_time_text_field.dart (+9 -0)

📄 Description

Closes: #6788

This just adds some loose restrictions to the Date and Time text fields in the Date Picker.

This is done to help the user write the correct format. It's not completely enforced according to the date format, but does limit the user a bit more.

24-hours - Can only enter 5 characters (12:34) and only enter numbers and :
12-hours - Can enter AM and PM as well (12:34 AM) 8 characters

Date field - Can only enter 12 characters (Unsure if should limit it to 10) and allows ., -, and / characters other than numbers.

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/7024 **Author:** [@Xazin](https://github.com/Xazin) **Created:** 12/20/2024 **Status:** ✅ Merged **Merged:** 1/5/2025 **Merged by:** [@richardshiue](https://github.com/richardshiue) **Base:** `main` ← **Head:** `chore/loose-restrictions-date-picker` --- ### 📝 Commits (2) - [`ebd3412`](https://github.com/AppFlowy-IO/AppFlowy/commit/ebd3412c97a7ff6e2d2238e6ddde45a13530b15f) chore: add loose restrictions to date time text field - [`ed77b76`](https://github.com/AppFlowy-IO/AppFlowy/commit/ed77b766aedbce423eead955f5291d575bd7b894) chore: remove date formatter ### 📊 Changes **1 file changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/date_picker/widgets/date_time_text_field.dart` (+9 -0) </details> ### 📄 Description Closes: #6788 This just adds some loose restrictions to the Date and Time text fields in the Date Picker. This is done to help the user write the correct format. It's not completely enforced according to the date format, but does limit the user a bit more. 24-hours - Can only enter 5 characters (12:34) and only enter numbers and `:` 12-hours - Can enter `AM` and `PM` as well (12:34 AM) 8 characters Date field - Can only enter 12 characters (Unsure if should limit it to 10) and allows `.`, `-`, and `/` characters other than numbers. #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [x] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:20:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7690
No description provided.