Repository navigation
Conversation
Add a Preview/Source toggle for Markdown files in the session file viewer. Detects .md/.markdown files and defaults to rendered preview mode. Auto-switches to Source view when navigating to a comment. Excludes binary files from the toggle. Includes i18n translations for all 17 supported locales. Based on work by @kimi-chen in anomalyco#13704. Co-authored-by: kimi-chen <[email protected]> Co-Authored-By: Paperclip <[email protected]>
- bg-surface → bg-surface-base (fixes transparent toolbar background) - bg-surface-active → bg-surface-base-active (fixes toggle button state) - text-text → text-text-base (fixes button text color) - border-border → border-border-base (fixes toolbar border) - Add binary content guard on preview Match condition Fixes rendering issue reported by KnutZuidema where file contents showed behind the toolbar due to transparent background. Refs: BLD-1 Co-authored-by: Copilot <[email protected]>
…nt bleed-through The toolbar used bg-surface-base which resolves to rgba(0,0,0,0.031) — nearly transparent. When scrolling, file contents were visible behind the sticky toolbar. Switch to bg-background-base (#f8f8f8/#101010) which is fully opaque, matching the pattern used by other sticky headers in the app.
Adds client-side rendering of mermaid diagrams in the markdown file viewer. When viewing .md/.markdown files in preview mode, mermaid code blocks are automatically rendered as SVG diagrams. Closes anomalyco#14187
|
The following comment was made by an LLM, it may be inaccurate: I found a potential duplicate: Related PR:
Why it might be related: I recommend checking if #21497 is already merged, closed, or if it's a duplicate that should be consolidated with the current PR. |
Kiruno-lz
left a comment
There was a problem hiding this comment.
have reviewed all changes
Except for bun.lock, the other codes are solid.
@adamdotdevin
|
Can you please merge this? Big quality of life improvement. |
exactly, |
|
any update on this? would be really helpful to merge |
|
急需这个pr |
|
hi |
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2. — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊 |
I genuinely loved OpenCode, and I'm grateful for how much it helped me back then. But over the past few months, I've become deeply disappointed with the direction OpenCode has taken. Just look at Codex and Maka. To be frank, V2 didn't feel like much of a meaningful improvement to me. Even after V2 was released, I continued using V1 extensively simply because I found it better to use. This PR was about a meaningful improvement to the user experience. It's completely fair to reject a PR if you don't think the implementation is good enough. It's also fair to suggest improvements and help contributors understand what needs to change. But coming back six months later with nothing more than "Sorry, we've moved to V2" feels incredibly dismissive. I understand that maintaining a project of this scale and managing contributions must be overwhelming. But that doesn't make the experience any less discouraging for those of us who genuinely cared about the project and wanted to make it better. Anyway, I've moved on to Codex. 我非常喜欢opencode,也很感谢opencode对我那段时间的帮助 |
Issue for this PR
#13704
#16782
#22079
Closes #14187
Type of change
What does this PR do?
```mermaidcode blocks are automatically rendered as SVG diagramsHow did you verify your code works?
local test
Screenshots / recordings
Checklist
Thanks to
@kimi-chen
@southpolesteve
@alankyshum