Skip to content

File extension when uploading a schema #2783

@Vulpesdk

Description

@Vulpesdk

Is your feature request related to a problem? Please describe.

Currently, Altair GraphQL client requires users to manually change the file filter in the file selector dialog to "All Files" when trying to upload schema files with the .graphql extension. This creates unnecessary friction in the workflow as users have to perform extra clicks every time they want to upload a .graphql file. This is particularly frustrating since .graphql is a standard extension used by many organizations (including Facebook as referenced) for GraphQL schema files.

Describe the solution you'd like

Explicitly include the .graphql extension in Altair's default file filter options when uploading schema files. Users should be able to see and select .graphql files in the file dialog without having to change the filter to "All Files" first. Ideally, the file selector would show something like "GraphQL Files (*.graphql, *.gql)" in the default filter options.

Describe alternatives you've considered

  1. Continuing to use the "All Files" filter option each time (current workaround, but inefficient)
  2. Renaming .graphql files to extensions that are explicitly supported
  3. Creating file type associations at the operating system level (complex and requires user configuration)

Additional context

The .graphql extension is widely used in the GraphQL ecosystem. As noted in the referenced GitHub issue (graphql/graphql-spec#203), Facebook internally uses this extension for their GraphQL schema files. Since Altair is already capable of processing these files once selected, this is simply a UX improvement to recognize the extension in the file dialog by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions