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: move doc-title and ai-chat-block components #10316

Conversation

Saul-Mirone
Copy link
Contributor

@Saul-Mirone Saul-Mirone commented Feb 20, 2025

TL;DR

Moved doc title and AI chat block components to more appropriate locations while removing unused backlink functionality.

What changed?

  • Relocated doc title component from presets to affine-components
  • Moved AI chat block from presets/blocks to blocks directory
  • Removed unused backlink-related code and components
  • Updated imports across files to reference new component locations
  • Consolidated AI-related exports through a single entry point

How to test?

  1. Verify doc title still renders correctly in documents
  2. Confirm AI chat functionality works as expected
  3. Check that no backlink-related features are accessible
  4. Ensure all AI features continue to work through the new import paths

Why make this change?

This reorganization improves code organization by:

  • Placing components closer to their related functionality
  • Removing dead/unused code around backlinks
  • Simplifying the import structure for AI-related features
  • Making the codebase more maintainable by consolidating related components

Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Saul-Mirone Saul-Mirone marked this pull request as ready for review February 20, 2025 09:09
@graphite-app graphite-app bot requested review from a team February 20, 2025 09:09
@Saul-Mirone Saul-Mirone force-pushed the 02-20-refactor_editor_improve_code_structure_of_ai_chat_block branch from 4e4bfca to 713ca1c Compare February 20, 2025 09:12
Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.28%. Comparing base (4f83173) to head (1516903).
Report is 1 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #10316      +/-   ##
==========================================
+ Coverage   54.25%   54.28%   +0.02%     
==========================================
  Files        2338     2335       -3     
  Lines      108101   108072      -29     
  Branches    17862    17859       -3     
==========================================
+ Hits        58650    58662      +12     
+ Misses      48128    48080      -48     
- Partials     1323     1330       +7     
Flag Coverage Δ
server-test 78.59% <ø> (+<0.01%) ⬆️
unittest 31.26% <100.00%> (+<0.01%) ⬆️

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.

@Saul-Mirone Saul-Mirone force-pushed the 02-20-refactor_editor_improve_code_structure_of_ai_chat_block branch 2 times, most recently from 440d22a to e07ee73 Compare February 20, 2025 09:51
@Saul-Mirone Saul-Mirone requested a review from a team as a code owner February 20, 2025 09:51
@Saul-Mirone Saul-Mirone force-pushed the 02-20-refactor_editor_improve_code_structure_of_ai_chat_block branch from e07ee73 to 868540b Compare February 20, 2025 09:55
@Saul-Mirone Saul-Mirone changed the title refactor(editor): improve code structure of ai chat block refactor: move doc-title and ai-chat-block components Feb 20, 2025
@Saul-Mirone Saul-Mirone force-pushed the 02-20-refactor_editor_improve_code_structure_of_ai_chat_block branch from 868540b to 8604c4f Compare February 20, 2025 10:05
Copy link

graphite-app bot commented Feb 20, 2025

Merge activity

### TL;DR
Moved doc title and AI chat block components to more appropriate locations while removing unused backlink functionality.

### What changed?
- Relocated doc title component from presets to affine-components
- Moved AI chat block from presets/blocks to blocks directory
- Removed unused backlink-related code and components
- Updated imports across files to reference new component locations
- Consolidated AI-related exports through a single entry point

### How to test?
1. Verify doc title still renders correctly in documents
2. Confirm AI chat functionality works as expected
3. Check that no backlink-related features are accessible
4. Ensure all AI features continue to work through the new import paths

### Why make this change?
This reorganization improves code organization by:
- Placing components closer to their related functionality
- Removing dead/unused code around backlinks
- Simplifying the import structure for AI-related features
- Making the codebase more maintainable by consolidating related components
@graphite-app graphite-app bot force-pushed the 02-20-refactor_editor_improve_code_structure_of_ai_chat_block branch from 8604c4f to 1516903 Compare February 20, 2025 10:45
@graphite-app graphite-app bot merged commit 1516903 into canary Feb 20, 2025
66 checks passed
@graphite-app graphite-app bot deleted the 02-20-refactor_editor_improve_code_structure_of_ai_chat_block branch February 20, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants