Skip to content

Make documents fall back to "Untitled Document" (+ number suffix) if given a blank name#4074

Merged
Keavon merged 2 commits into
masterfrom
prevent-blank-document-names
Apr 29, 2026
Merged

Make documents fall back to "Untitled Document" (+ number suffix) if given a blank name#4074
Keavon merged 2 commits into
masterfrom
prevent-blank-document-names

Conversation

@Keavon
Copy link
Copy Markdown
Member

@Keavon Keavon commented Apr 29, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors document renaming by moving the logic to the portfolio level and introducing a name resolution system that handles whitespace trimming and automatic 'Untitled' name generation. It also prevents name collisions by allowing the current document to be excluded during name generation. A review comment suggests making the rename operation a no-op if the name remains unchanged to avoid unnecessary resets of the document's save state and file path.

Comment thread editor/src/messages/portfolio/document/document_message_handler.rs Outdated
@Keavon Keavon merged commit 906ff89 into master Apr 29, 2026
10 checks passed
@Keavon Keavon deleted the prevent-blank-document-names branch April 29, 2026 01:37
Keavon added a commit that referenced this pull request Apr 29, 2026
…given a blank name (#4074)

* Make documents fall back to "Untitled Document" (+ number suffix) if given a blank name

* Bug fix
oluseyi pushed a commit to oluseyi/Graphite that referenced this pull request Apr 29, 2026
…given a blank name (GraphiteEditor#4074)

* Make documents fall back to "Untitled Document" (+ number suffix) if given a blank name

* Bug fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant