Skip to content

Add Table support for showing the results of the DX metrics. #10

@chris-ramon

Description

@chris-ramon

Actual

Currently when running ./bin/start.sh it shows the GitHub result as one line information as shown next:

(base) chris@chris:~/Projects/graphql-compatibility/compatibility-user-acceptance$ ./bin/start.sh 
Reference Implementation: https://github.com/graphql/graphql-js/releases/tag/v0.6.0
(•) Implementation: https://github.com/graphql-go/graphql/releases/tag/v0.8.1


(press q to quit)
2025/05/21 10:09:38 &{Implementation: https://github.com/graphql-go/graphql/releases/tag/v0.8.1
}

false
&{Repository:0xc000380d98}

Expected

We want to improve the GitHub metrics display by updating the upstream dependency: github.com/graphql-go/compatibility-base, and showing the data using the Table model like shown next:

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                                                            │
│  Metric                               Spec: https://…  Impl: https://…  Diff Ratio       Max Diff         Result           │
│ ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│  GitHub:                                                                                                                   │
│  License                              MIT              MIT              0%               0%               ✅               │
│  Number Of Stars                      Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Issues Open                Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Issues Closed              Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Pull Requests Open         Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Pull Requests Closed       Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Forks                      Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Last Commit Date                     Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Contributors               Loading...       Loading...       Loading...       Loading...       Loading...       │
│  GraphQL Compatibility Keywords:                                                                                           │
│  Number Of Comments Open              Loading...       Loading...       Loading...       Loading...       Loading...       │
│  Number Of Comments Closed            Loading...       Loading...       Loading...       Loading...       Loading...       │
│  GraphQL:                                                                                                                  │
│  Specification Version                Loading...       Loading...       Loading...       Loading...       Loading...       │
│                                                                                                                            │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

(press enter to continue)

Metadata

Metadata

Assignees

No one assigned

    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