teableio / teable

✨ The Next Gen Airtable Alternative: No-Code Postgres
https://teable.io
Other
11.65k stars 536 forks source link

Pre-fill New Records' Values in Filtered Views #719

Open julien731 opened 3 months ago

julien731 commented 3 months ago

Why

When adding new record from a filtered view, the filtered field is not automatically pre-filled. This means that if the user forgets to select the correct value in the filtered field after adding the new record, the new record disappears from the view once it is saved.

https://github.com/user-attachments/assets/72ff8795-c6b4-4890-8d19-44d917eb617a

Solution

If the current view has filters applied, and if the applied filters only have one value selected, then pre-fill the filtered field(s) with the value used in the filter.

Teable - Filters Pre-Fill

Example

Based on the above screen recording and following the proposed flow:

  1. Add new record
  2. View is filtered -> yes
  3. Filtered field ("Monthly Budget") is filtered by only one value -> yes ("2024 - July")
  4. Pre-fill new record's "Monthly Budget" field with the value "2024 - July"
scutken commented 2 months ago

这个问题,在看板视图同样存在,当点击看板的某一类下发的+号新增记录时,并不会添加到相关类里。This problem is present in the Kanban view as well. When you click the "+" button to add a new record under a specific category in the Kanban view, the record doesn't get added to the correct category.

spiritanand commented 2 months ago

@tea-artist will work on this please assign 🤝

spiritanand commented 1 month ago

@tea-artist @boris-w the PR for this feature has been raised. Please review. Thanks