Repository navigation
Refactoring scripting.ts - #998
concertypin wants to merge 1 commit into
Conversation
…1211) ## PR Checklist - Required Checks - [x] Have you added type definitions? - [x] Have you tested your changes? - [x] Have you checked that it won't break any existing features? - [ ] If your PR uses models[^1], if true, check the following: - [ ] Have you checked if it works normally in all models? - [ ] Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions? - [ ] If your PR is highly ai generated[^2], check the following: - [ ] Have you understanded what the code does? - [ ] Have you cleaned up any unnecessary or redundant code? - [ ] Is is not a huge change? - We currently do not accept highly ai generated PRs that are large changes. [^1]: Modifies the behavior of prompting, requesting or handling responses from ai models. [^2]: Almost over 80% of the code is ai generated. ## Summary The defaultValue property was added to alertInput to allow pre-entering of a word. ## Related Issues During testing, pressing the Esc key occasionally resulted in 0 being entered. This is a bug caused by interaction with the Esc button, and will need to be fixed later, but is not covered in this PR. ## Changes A defaultValue property was added to alertInput, and some elements that use alertInput were modified to use defaultValue. Key and password fields were not touched. ## Impact For example, when renaming bookmarks, folders, etc., you can edit the desired field instead of renaming them from beginning. This feature can also be used in other development projects. <img width="248" height="197" alt="image" src="https://github.com/user-attachments/assets/3cff31b6-7b2b-4b2e-92c8-0622377dcca2" /> ## Additional Notes This feature needs to be modified to work with v2trigger and lua, but since another PR #998 is currently in progress, I'll rewrite this later.
cubicj
left a comment
There was a problem hiding this comment.
The split itself checks out, but main kept adding APIs to scriptings.ts after this branch deleted it, so the merge is now a modify/delete conflict and redoing the split on top of the current main looks cheaper than untangling this branch. Would you be interested in continuing this on the current main?
…waroran#1211) ## PR Checklist - Required Checks - [x] Have you added type definitions? - [x] Have you tested your changes? - [x] Have you checked that it won't break any existing features? - [ ] If your PR uses models[^1], if true, check the following: - [ ] Have you checked if it works normally in all models? - [ ] Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions? - [ ] If your PR is highly ai generated[^2], check the following: - [ ] Have you understanded what the code does? - [ ] Have you cleaned up any unnecessary or redundant code? - [ ] Is is not a huge change? - We currently do not accept highly ai generated PRs that are large changes. [^1]: Modifies the behavior of prompting, requesting or handling responses from ai models. [^2]: Almost over 80% of the code is ai generated. ## Summary The defaultValue property was added to alertInput to allow pre-entering of a word. ## Related Issues During testing, pressing the Esc key occasionally resulted in 0 being entered. This is a bug caused by interaction with the Esc button, and will need to be fixed later, but is not covered in this PR. ## Changes A defaultValue property was added to alertInput, and some elements that use alertInput were modified to use defaultValue. Key and password fields were not touched. ## Impact For example, when renaming bookmarks, folders, etc., you can edit the desired field instead of renaming them from beginning. This feature can also be used in other development projects. <img width="248" height="197" alt="image" src="https://github.com/user-attachments/assets/3cff31b6-7b2b-4b2e-92c8-0622377dcca2" /> ## Additional Notes This feature needs to be modified to work with v2trigger and lua, but since another PR kwaroran#998 is currently in progress, I'll rewrite this later.
|
Hi @concertypin, If possible, could you let us know whether you plan to continue working on this PR? We really appreciate your contribution, but since this PR has remained unmerged for quite some time, it has started to hold back the introduction of some related features. A quick update from you would help the community coordinate development. Thank you! |
|
Too stale to continue working. I'll make a new PR from scratch. Thanks! |
PR Checklist
Description
Since scripting.ts is too long to read, separate it into some pieces of file.