Skip to content

interfaceName does not work for named tabs. #9467

Closed

Description

@ckruppe

Describe the Bug

If i define an "interfaceName" for an named tab no extra type interface gets generated.

Link to the code that reproduces this issue

https://github.com/ckruppe/Payload-issues-reproduction

Reproduction Steps

1.) Clone the Repo
2.) Install dependencies with yarn
3.) Collection config can be found under "src/server/payload/collections/Stores.ts"
4.) Collection defines an group interfaceName (StoreAdress) in line 82 and an tab interfaceName (ReferringMedia) in line 195.
5.) Run yarn generate:types
6.) Generated file can be found under "types/payload-types.ts"
7.) StoreAdress got generated, ReferringMedia not.

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
  Node: 22.11.0
  npm: 10.3.0
  Yarn: 1.22.19
  pnpm: 8.11.0
Relevant Packages:
  payload: 3.1.0
  next: 15.0.3
  @payloadcms/db-mongodb: 3.1.0
  @payloadcms/graphql: 3.1.0
  @payloadcms/live-preview: 3.1.0
  @payloadcms/live-preview-react: 3.1.0
  @payloadcms/next/utilities: 3.1.0
  @payloadcms/plugin-nested-docs: 3.1.0
  @payloadcms/plugin-seo: 3.1.0
  @payloadcms/richtext-lexical: 3.1.0
  @payloadcms/richtext-slate: 3.1.0
  @payloadcms/translations: 3.1.0
  @payloadcms/ui/shared: 3.1.0
  react: 19.0.0-rc-65a56d0e-20241020
  react-dom: 19.0.0-rc-65a56d0e-20241020
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32488
  Available CPU cores: 16

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Nov 23, 2024
  2. removed
    validate-reproduction
    on Nov 23, 2024
  3. self-assigned this
    on Nov 23, 2024
  4. removed
    status: needs-triage
    on Nov 23, 2024
  5. r1tsuu commented on Nov 23, 2024

    @r1tsuu
    Member

    Hello @ckruppe! Indeed I can reproduce this on the current version, but I have a PR #9299 where this is already fixed!

  6. ckruppe commented on Nov 23, 2024

    @ckruppe
    Author

    @r1tsuu very nice. Thank you! :)

  7. github-actions commented on Nov 25, 2024

    @github-actions
    Contributor

    🚀 This is included in version v3.1.1

  8. github-actions commented on Nov 27, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  9. locked as resolved and limited conversation to collaborators on Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions