mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #3633] [CLOSED] refactor: field info refactor #5802
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#5802
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3633
Author: @richardshiue
Created: 10/6/2023
Status: ❌ Closed
Base:
main← Head:field-info-refactor📝 Commits (10+)
d5f9f62refactor: initial field info pass27decb1chore: WIP on Flutter database services82cdca9refactor: remove type option controllerbbcd276refactor: wip refactor from type option controller removal6b09bc0chore: more type option refactor164824crefactor: more wip6f9b095refactor: more wip7b3964arefactor: last push before sleep8264d10refactor: a push a day keeps the doctor away05aab6bchore: revert some changes📊 Changes
136 files changed (+3034 additions, -4217 deletions)
View changed files
📝
frontend/appflowy_flutter/integration_test/util/database_test_op.dart(+9 -10)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_controller.dart(+12 -27)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/cell/cell_service.dart(+9 -14)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/cell/select_option_cell_service.dart(+6 -4)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/database_controller.dart(+41 -20)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/defines.dart(+4 -4)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_action_sheet_bloc.dart(+29 -26)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_cell_bloc.dart(+14 -16)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_controller.dart(+62 -621)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_editor_bloc.dart(+53 -63)➕
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_extension.dart(+51 -0)➖
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_info.dart(+0 -79)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_listener.dart(+9 -9)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_service.dart(+57 -38)➖
frontend/appflowy_flutter/lib/plugins/database_view/application/field/field_type_option_edit_bloc.dart(+0 -66)➖
frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/date_bloc.dart(+0 -68)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/multi_select_type_option.dart(+24 -25)➖
frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/number_bloc.dart(+0 -48)📝
frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/single_select_type_option.dart(+22 -21)➖
frontend/appflowy_flutter/lib/plugins/database_view/application/field/type_option/timestamp_bloc.dart(+0 -76)...and 80 more files
📄 Description
Summary of changes:
collab::Field'svisibleboolean struct field. This has been replaced by theFieldVisibilityenum which has 3 values:AlwaysHidden,HideWhenEmptyandAlwaysShownVec<u8>inFieldPBwhen callingget_fieldor in database notifications. Consequently, the related structs, events and notifications have been deprecated as well (TypeOptionPB,GetTypeOption,UpdateTypeOption,DidUpdateTypeOption, etc.)FieldPBstruct as well, including whether the field is participating in sorts and filters, its visibility in the view, whether it's acting as the grouping field in a kanban, etc.GetFieldSettingsandGetAllFieldSettingsevents, and theDidUpdateFieldSettingsnotifications, have been deprecated.CreateFieldTypeOptionevent toCreateFied.Feature Preview
PR Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.