feat: add Position Size Calculator under /tool#30
Merged
Conversation
Add /tool listing page (sibling of /tutorial) and ship its first tool with two modes: - Regular: manual dollarRisk / entryPrice / stopLoss inputs - Community: paste a Chinese signal, auto-parse symbol / direction / entry range / multi-level take profits / stop loss Pure logic (calculations / validation / strategy parsing) ported verbatim from Kaiyn-landing-page; UI rebuilt with this project's Tailwind v4 + shadcn + base-ui conventions instead of CSS Modules. The /tool index card uses a screenshot-style demo of the Community result block as background to preview what the tool produces. All UI strings localized in en / zh-TW / zh-CN; the parser keeps its Chinese keywords (标的 / 方向 / 进场 / 止盈 / 止损) verbatim regardless of UI locale.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Why
The site has
/tutorialas a content section but no parallel "tools" section. This PR introduces/toolas a sibling listing page and delivers its first tool — a position size calculator — giving traders a fast utility for sizing trades from either custom inputs or pasted community signals.What's in here
/toollisting page (BentoCard pattern, parallel to/tutorial) and aToolentry in the header nav/tool/position-size-calculatorwith two modes:dollarRisk/entryPrice/stopLoss→ position size, direction, risk %, max loss/toolindex card uses a screenshot-style demo of the Community result block as background, to preview what the tool producesKey decisions
Kaiyn-landing-page/.../position-calculator/lib, zero external deps标的 / 方向 / 进场 / 止盈 / 止损) verbatim regardless of UI locale — they're domain tokens, not UI stringsTest plan
/toolindex renders title, description, and Position Calculator card across en / zh-TW / zh-CN/{locale}/tool/position-size-calculatorClose #29