Skip to content

feat: rewrite client-scripts to typescript and refactor them#1236

Merged
shadowusr merged 1 commit into
testplane@9from
users/shadowusr/TESTPLANE-672.client-scripts-refactor
Apr 16, 2026
Merged

feat: rewrite client-scripts to typescript and refactor them#1236
shadowusr merged 1 commit into
testplane@9from
users/shadowusr/TESTPLANE-672.client-scripts-refactor

Conversation

@shadowusr
Copy link
Copy Markdown
Member

@shadowusr shadowusr commented Apr 13, 2026

What's done?

  • Client scripts are now on TS and re-use the same types and helpers from @isomorphic that are used on node's side
  • Functions involved in screen-shooter logic were heavily refactored and simplified
  • Various fixes were made along the way, I've left comments on those

New structure

Client scripts now organized in submodules/namespaces, for example, browser-utils and screen-shooter. The pattern used in each submodule:

  • implementation.ts — main file, a "public API" of a submodule, accessible from client-bridge
  • operations.ts — high-level sub steps, used in implementation.ts

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Comment thread src/browser/client-scripts/screen-shooter/utils/z-index.ts
Comment thread src/browser/client-scripts/screen-shooter/implementation.ts
Comment thread src/browser/client-scripts/shared/lib.native.ts
@shadowusr
Copy link
Copy Markdown
Member Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe95d39ae7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/browser/client-scripts/screen-shooter/implementation.ts
Comment thread src/browser/client-scripts/build.js
Comment thread src/browser/client-scripts/screen-shooter/implementation.ts
Comment thread src/browser/client-scripts/screen-shooter/implementation.ts
Comment thread src/browser/client-scripts/screen-shooter/operations.ts
Comment thread src/browser/client-scripts/screen-shooter/types.ts
Comment thread src/browser/client-scripts/screen-shooter/types.ts
@sipayRT sipayRT self-assigned this Apr 16, 2026
Base automatically changed from users/shadowusr/TESTPLANE-886 to testplane@9 April 16, 2026 20:36
@shadowusr shadowusr force-pushed the users/shadowusr/TESTPLANE-672.client-scripts-refactor branch from fe95d39 to 411330b Compare April 16, 2026 21:09
@shadowusr
Copy link
Copy Markdown
Member Author

Fixed all issues above in #1242.

Totally agree that this a weird flow — issues should be fixed here, but it's much more reliable to apply them on top of all changes & test them right away.

@shadowusr shadowusr merged commit fd2fc29 into testplane@9 Apr 16, 2026
0 of 7 checks passed
@shadowusr shadowusr deleted the users/shadowusr/TESTPLANE-672.client-scripts-refactor branch April 16, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants