Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(component): adjust active editor atom #5457

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

EYHN
Copy link
Member

@EYHN EYHN commented Dec 29, 2023

before:

set global blocksuiteEditorAtom state in <BlocksuiteEditorImpl />

after:

Rename blocksuiteEditorAtom to activeBlocksuiteEditorAtom

And move the logic of setting this atom to <PageDetailEditor />.

benefit:

  • make BlocksuiteEditor pure
  • keep @toeverything/component clear
  • Clarify the purpose of activeBlocksuiteEditorAtom

Copy link

graphite-app bot commented Dec 29, 2023

Your org has enabled the Graphite merge queue for merging into canary

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

You can enable merging using labels in your Graphite merge queue settings.

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1eefd71) 67.04% compared to head (6844b28) 67.04%.

Additional details and impacted files
@@           Coverage Diff           @@
##           canary    #5457   +/-   ##
=======================================
  Coverage   67.04%   67.04%           
=======================================
  Files         199      199           
  Lines       15692    15692           
  Branches     1115     1115           
=======================================
  Hits        10521    10521           
  Misses       5011     5011           
  Partials      160      160           
Flag Coverage Δ
server-test 69.73% <ø> (ø)
unittest 54.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@EYHN EYHN force-pushed the eyhn/refactor/move-editor branch from c91c225 to 5291a0c Compare January 2, 2024 06:52
@EYHN EYHN changed the title refactor(core): move blocksuite editor to core refactor(component): adjust active editor atom Jan 2, 2024
@EYHN EYHN force-pushed the eyhn/refactor/move-editor branch from 5291a0c to 50b26b2 Compare January 2, 2024 07:12
Copy link

graphite-app bot commented Jan 2, 2024

Merge activity

before:

set global `blocksuiteEditorAtom` state in `<BlocksuiteEditorImpl />`

after:

Rename `blocksuiteEditorAtom` to `activeBlocksuiteEditorAtom`

And move the logic of setting this atom to `<PageDetailEditor />`.

benefit:

* make BlocksuiteEditor pure
* keep @toeverything/component clear
* Clarify the purpose of `activeBlocksuiteEditorAtom`
@EYHN EYHN force-pushed the eyhn/refactor/move-editor branch from 50b26b2 to 6844b28 Compare January 2, 2024 07:30
@graphite-app graphite-app bot merged commit 6844b28 into canary Jan 2, 2024
36 checks passed
@graphite-app graphite-app bot deleted the eyhn/refactor/move-editor branch January 2, 2024 07:38
@EYHN EYHN mentioned this pull request Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants