Skip to content

feat: add container and input models in toc using new toc command#275

Merged
Ayeshas09 merged 9 commits intodevfrom
saeedjamshaid/container-models-in-toc
May 8, 2026
Merged

feat: add container and input models in toc using new toc command#275
Ayeshas09 merged 9 commits intodevfrom
saeedjamshaid/container-models-in-toc

Conversation

@Ayeshas09
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

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 updates the portal TOC generation flow to use a new “toc” backend command that returns structured TOC data (including container models and input models), and expands the generated TOC “Models” section into subgroups.

Changes:

  • Added TOC page types for container models and input models, plus a new TocData contract and extraction helpers.
  • Switched TOC generation from SDL-based extraction to TableOfContentsController.generateTocData(...) in PortalService.
  • Updated TOC structure generation to group models into “Structures / Enumerations / Exceptions / OneOf/AnyOf Definitions”.

Reviewed changes

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

Show a summary per file
File Description
src/types/toc/toc.ts Adds TOC page interfaces for container and input model entries.
src/types/toc/toc-data.ts New TocData contract and helpers to convert it into TOC components.
src/types/sdl/sdl.ts Updates SDL type definitions (adds fields, removes old TOC extraction helpers).
src/prompts/portal/toc/new-toc.ts Renames spinner method to extractTocData and updates spinner strings.
src/infrastructure/services/portal-service.ts Adds generateTocData using TableOfContentsController.
src/application/portal/toc/toc-structure-generator.ts Expands “Models” section into multiple subgroups and supports additional model categories.
src/actions/portal/toc/new-toc.ts Switches action flow to request/consume TocData and pass new model-group structure to generator.
package.json Changes @apimatic/sdk to a local tarball dependency and adds it to the publish file list.
package-lock.json Updates lockfile to reflect the local tarball SDK dependency and version bump.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment thread package.json Outdated
Comment thread src/types/sdl/sdl.ts Outdated
Comment thread src/prompts/portal/toc/new-toc.ts
Comment thread src/types/toc/toc-data.ts Outdated
Comment thread src/types/toc/toc-data.ts Outdated
Comment thread src/types/toc/toc-data.ts Outdated
Comment thread src/application/portal/toc/toc-structure-generator.ts Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@Ayeshas09 Ayeshas09 merged commit 2412f86 into dev May 8, 2026
5 of 6 checks passed
@Ayeshas09 Ayeshas09 deleted the saeedjamshaid/container-models-in-toc branch May 8, 2026 10:51
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.

4 participants