Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for displaying and truncating IPFS/IPNS hosts in the terminal prompt, updates related tests, and adjusts configuration and documentation for IPFS deployment.
- Introduces
getDisplayHostinTerminalPromptto truncate long IPFS/IPNS hosts. - Expands
TerminalPrompttests to cover various host scenarios (regular, IPFS/IPNS, ports, and edge cases). - Updates
next.config.ts,README.md, and development docs for IPFS deployment and testing requirements.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/terminal/TerminalPrompt.tsx | Add getDisplayHost logic and constants for host formatting |
| src/components/terminal/tests/TerminalPrompt.test.tsx | Replace rigid matcher and add tests for IPFS/IPNS host display |
| next.config.ts | Enable trailingSlash and disable image optimization for IPFS |
| README.md | Change site title and mark IPFS deployment status |
| .ai/DEVELOPMENT.md | Add a "Testing Requirements" section |
Comments suppressed due to low confidence (1)
src/components/terminal/tests/TerminalPrompt.test.tsx:935
- Add a test for a host string without any
.characters to ensure the fallback branch (return fullHost) is exercised (edge case whenparts.length <= 1).
});
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.