feat: add page-controller and corresponding UI support#305
feat: add page-controller and corresponding UI support#305WTHDonghai wants to merge 1 commit intoalibaba:mainfrom
Conversation
|
daniel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Thanks for your contribution! Could you provide more context about this PR? Specifically, what problem does it solve? It would be great if you could open an issue first so we can discuss the approach before proceeding with the implementation. |
|
Hi @gaomeng1900, Thank you for the quick response! I sincerely apologize for submitting the PR directly without opening an Issue first — I should have followed the process and discussed the approach with you all. Context & Problem Solved: Recently, I was studying the source code of page-controller and ui packages. During my learning, I noticed a very common pain point: typically, we only want the LLM to focus on the main content area (such as a specific list/table) and ignore irrelevant sections like the top navigation menu, page header, or footer. To solve this, I casually built this experimental feature to "frame the viewport" and control the extracted DOM area through the UI. It helps prevent the LLM from being distracted by the global layout noise and saves a lot of context tokens. I totally understand if you prefer to formalize this before reviewing the code. Would you like me to open a new Issue so we can discuss if the project currently needs this "zoning/focus" capability? Alternatively, if this feature is not on the roadmap right now, please feel completely free to close this PR. I'm just happy to share it and perfectly fine with treating it as my own learning exercise. |
What
Added support for
page-controllerlogic and implemented the corresponding SimulatorMask UI within the panel.Type
Testing
Closes #(issue)
Requirements / 要求