mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[PR #4642] [MERGED] feat: Implement outline block component depth control #6364
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#6364
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/4642
Author: @Jayaprakash-dev
Created: 2/10/2024
Status: ✅ Merged
Merged: 2/20/2024
Merged by: @LucasXu0
Base:
main← Head:feat_outline_block_component_depth_control📝 Commits (10+)
903f4b7feat: add support to control the depth of outline block component3672df7feat: update localization keysb5ff060feat: add depth option toBlockOptionButton95ed63bfeat: retrive outline block heading components upto the depth levelf57fb52feat: add depth option config to editor configurationb180805test: outline block depth control5331bd4feat: add outline block placeholder651ab6brefactor: remove redundant codes5d21f3aci: trigger github actions1cf9a84chore: refactorOptionDepthTypeenum📊 Changes
10 files changed (+304 additions, -20 deletions)
View changed files
📝
frontend/appflowy_flutter/integration_test/document/document_with_outline_block_test.dart(+109 -9)📝
frontend/appflowy_flutter/integration_test/util/editor_test_operations.dart(+22 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_configuration.dart(+9 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/block_action_option_button.dart(+4 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action.dart(+113 -2)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/actions/option_action_button.dart(+6 -0)📝
frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/outline/outline_block_component.dart(+27 -3)📝
frontend/appflowy_flutter/lib/workspace/presentation/widgets/pop_up_action.dart(+6 -0)📝
frontend/appflowy_flutter/packages/flowy_infra/lib/language.dart(+2 -4)📝
frontend/resources/translations/en.json(+6 -2)📄 Description
Closes: #4355
Changes Made:
Added dynamic depth control to the
OutlineBlockWidgetcomponent.When a depth H1 is selected, the app now displays headings up to level 1.
For depth H2, it shows headings up to level 2, extending upto subsequent H3 headings.
Demo:
https://github.com/AppFlowy-IO/AppFlowy/assets/68953739/948a6e88-89d8-49c7-b58c-7ef3f5f899af
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.