Skip to content

Add Code tab with JavaScript export#13

Merged
eviltester merged 1 commit into
masterfrom
11-export-more-programming-languages-feature
Apr 28, 2026
Merged

Add Code tab with JavaScript export#13
eviltester merged 1 commit into
masterfrom
11-export-more-programming-languages-feature

Conversation

@eviltester

Copy link
Copy Markdown
Owner

Closes #11

Copilot AI review requested due to automatic review settings April 28, 2026 10:13
@eviltester eviltester linked an issue Apr 28, 2026 that may be closed by this pull request
@eviltester
eviltester merged commit 2d454f5 into master Apr 28, 2026
6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR restructures the export format tabs by introducing a grouped Code tab (currently containing a JavaScript sub-tab) and adds Playwright-based browser smoke tests + CI wiring to catch runtime initialization errors.

Changes:

  • Refactor TabbedTextControl to render tabs from definitions and support grouped subtasks (e.g., Code → JavaScript).
  • Add Playwright smoke tests with a local http-server webServer config, plus CI steps to install Chromium and run the browser suite.
  • Add styling for the new subtask UI and update repo hygiene files (.gitignore, Copilot instructions, etc.).

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
js/gui_components/tabbed-text-control.js Adds tab definitions and grouped “Code” tab with subtask rendering/activation logic.
tests/utils/tabbed-text-control-mode.test.js Adds unit tests for Code tab/subtask behavior and default selection bootstrapping.
styles.css Adds CSS for conversion subtasks and active “main type” styling.
tests/browser/page-smoke.spec.js Introduces Playwright smoke tests to verify app/generator pages initialize without browser errors.
playwright.config.js Adds Playwright configuration + local web server for browser tests.
package.json Adds Playwright/http-server deps, browser test scripts, and excludes browser tests from Jest runs.
package-lock.json Locks new dependencies for Playwright/http-server.
.github/workflows/node.js.yml Runs Playwright install + browser smoke tests in CI.
.gitignore Ignores Playwright report and test-results output directories.
docs-src/blog/2026-04-27-export-improvements.md Adds a release blog post describing new export features (XML/SQL/JSONL).
.github/copilot-instructions.md Adds project contribution/testing guidance for Copilot-assisted work.

Comment on lines +3 to +29
title: Export XML, SQL, JSONL
authors: alan
tags: [release]
date: 2026-04-27T19:00
---

New export features like XML, SQL and JSONL plus improved the speed for exporting large datasets and improved on screen tips.

<!--truncate-->

## Large File Exports

There is no point being able to upload and amend 1,000,000+ record files if they are painful to export.

So now they are not.

You'll see visual progress indicators and the page should not freeze, it should just export data well.

## XML, JSONL and SQL

Export all the L's, now you can export the data as:

- [XML](/docs/data-formats/xml/xml)
- [JSONL](/docs/data-formats/jsonl/jsonl)
- [SQL](/docs/data-formats/sql/sql)

There should be enough options on the XML and SQL to handle most common simple variants.
Comment on lines +11 to +16
{
id: 'code',
label: 'Code',
subtasks: [{ id: 'javascript', label: 'JavaScript', type: 'javascript' }],
},
{ id: 'gherkin', label: 'Gherkin', type: 'gherkin' },
@eviltester
eviltester deleted the 11-export-more-programming-languages-feature branch April 28, 2026 10:21
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.

Export more programming languages (FEATURE)

2 participants