Add remote TypeSpec file import to typespec-azure playground#4003
Add remote TypeSpec file import to typespec-azure playground#4003
Conversation
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
|
@copilot the website build is failing |
…ation Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Fixed in b5351de. The build was failing because |
…ockfile Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Done in 0842b48:
|
|
/azp run typespec-azure - PR Tools |
|
No pipelines are associated with this pull request. |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
No changes needing a change description found. |
|
@copilot Please pull the latest from main and fix any version mismatches. in installation (pnpm check-version-mismatch), |
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Fixed in 456eae9. The |
|
You can try these changes here
|
) - [x] Create `import.tsx` component with TSP-only remote file import button - [x] Create `import.module.css` for import component styles - [x] Update `main.tsx` to include the import button in command bar - [x] Update `package.json` to add `@fluentui/react-components`, `@fluentui/react-icons`, `@types/react` dependencies (removed `@typespec/pack`) - [x] Update `tsconfig.json` to add `vite/client` types (for CSS module declarations) - [x] Merge latest from `main` - [x] Update `pnpm-lock.yaml` with all dependency entries - [x] Add changeset for the change - [x] Fix website build failure: replaced `@typespec/pack` with direct `fetch()` implementation - [x] Fix TypeScript build errors: add `@types/react` devDependency + `vite/client` to tsconfig types - [x] Fix version mismatch: align `@types/react` to `~19.2.7` (monorepo-wide version) - [x] Verify: `pnpm check-version-mismatch` — 0 mismatches - [x] Verify: playground website build succeeds <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Add remote file import feature to the typespec-azure playground</issue_title> > <issue_description>Remote file import is available on the TypeSpec core playground, allowing import of tsp files, or conversion of openapi3 files into typespec for import. > > Implement this same feature in typespec-azure, but *only* for tsp file import.</issue_description> > > <agent_instructions>Implement the file upload capability available in the typecpec plaayground for the typespec-azure playground</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes Azure#3547 <!-- START COPILOT CODING AGENT TIPS --> --- 🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. [Learn more about Advanced Security.](https://gh.io/cca-advanced-security) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
) - [x] Create `import.tsx` component with TSP-only remote file import button - [x] Create `import.module.css` for import component styles - [x] Update `main.tsx` to include the import button in command bar - [x] Update `package.json` to add `@fluentui/react-components`, `@fluentui/react-icons`, `@types/react` dependencies (removed `@typespec/pack`) - [x] Update `tsconfig.json` to add `vite/client` types (for CSS module declarations) - [x] Merge latest from `main` - [x] Update `pnpm-lock.yaml` with all dependency entries - [x] Add changeset for the change - [x] Fix website build failure: replaced `@typespec/pack` with direct `fetch()` implementation - [x] Fix TypeScript build errors: add `@types/react` devDependency + `vite/client` to tsconfig types - [x] Fix version mismatch: align `@types/react` to `~19.2.7` (monorepo-wide version) - [x] Verify: `pnpm check-version-mismatch` — 0 mismatches - [x] Verify: playground website build succeeds <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Add remote file import feature to the typespec-azure playground</issue_title> > <issue_description>Remote file import is available on the TypeSpec core playground, allowing import of tsp files, or conversion of openapi3 files into typespec for import. > > Implement this same feature in typespec-azure, but *only* for tsp file import.</issue_description> > > <agent_instructions>Implement the file upload capability available in the typecpec plaayground for the typespec-azure playground</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes Azure#3547 <!-- START COPILOT CODING AGENT TIPS --> --- 🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. [Learn more about Advanced Security.](https://gh.io/cca-advanced-security) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
) - [x] Create `import.tsx` component with TSP-only remote file import button - [x] Create `import.module.css` for import component styles - [x] Update `main.tsx` to include the import button in command bar - [x] Update `package.json` to add `@fluentui/react-components`, `@fluentui/react-icons`, `@types/react` dependencies (removed `@typespec/pack`) - [x] Update `tsconfig.json` to add `vite/client` types (for CSS module declarations) - [x] Merge latest from `main` - [x] Update `pnpm-lock.yaml` with all dependency entries - [x] Add changeset for the change - [x] Fix website build failure: replaced `@typespec/pack` with direct `fetch()` implementation - [x] Fix TypeScript build errors: add `@types/react` devDependency + `vite/client` to tsconfig types - [x] Fix version mismatch: align `@types/react` to `~19.2.7` (monorepo-wide version) - [x] Verify: `pnpm check-version-mismatch` — 0 mismatches - [x] Verify: playground website build succeeds <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Add remote file import feature to the typespec-azure playground</issue_title> > <issue_description>Remote file import is available on the TypeSpec core playground, allowing import of tsp files, or conversion of openapi3 files into typespec for import. > > Implement this same feature in typespec-azure, but *only* for tsp file import.</issue_description> > > <agent_instructions>Implement the file upload capability available in the typecpec plaayground for the typespec-azure playground</agent_instructions> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes Azure#3547 <!-- START COPILOT CODING AGENT TIPS --> --- 🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. [Learn more about Advanced Security.](https://gh.io/cca-advanced-security) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
import.tsxcomponent with TSP-only remote file import buttonimport.module.cssfor import component stylesmain.tsxto include the import button in command barpackage.jsonto add@fluentui/react-components,@fluentui/react-icons,@types/reactdependencies (removed@typespec/pack)tsconfig.jsonto addvite/clienttypes (for CSS module declarations)mainpnpm-lock.yamlwith all dependency entries@typespec/packwith directfetch()implementation@types/reactdevDependency +vite/clientto tsconfig types@types/reactto~19.2.7(monorepo-wide version)pnpm check-version-mismatch— 0 mismatchesOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.