Skip to content

Language completion details view #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
m-aciek opened this issue Feb 18, 2025 · 1 comment · May be fixed by #94
Open

Language completion details view #67

m-aciek opened this issue Feb 18, 2025 · 1 comment · May be fixed by #94

Comments

@m-aciek
Copy link
Collaborator

m-aciek commented Feb 18, 2025

A completion bar could link to a "language completion details view", which could be simple completion table view build directly on a JSON produced by potodo --json --show-finished command.

Sample output fragment:

[{…, "files": [
            {
                "name": "using/index",
                "path": "/Users/maciej.olko/projects/python-docs-pl/using/index.po",
                "entries": 2,
                "fuzzies": 0,
                "translated": 2,
                "percent_translated": 100,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "using/ios",
                "path": "/Users/maciej.olko/projects/python-docs-pl/using/ios.po",
                "entries": 86,
                "fuzzies": 0,
                "translated": 1,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "using/mac",
                "path": "/Users/maciej.olko/projects/python-docs-pl/using/mac.po",
                "entries": 96,
                "fuzzies": 0,
                "translated": 3,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "using/unix",
                "path": "/Users/maciej.olko/projects/python-docs-pl/using/unix.po",
                "entries": 52,
                "fuzzies": 0,
                "translated": 8,
                "percent_translated": 2,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "using/windows",
                "path": "/Users/maciej.olko/projects/python-docs-pl/using/windows.po",
                "entries": 389,
                "fuzzies": 0,
                "translated": 20,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            }
        ]
    },
    {
        "name": "whatsnew/",
        "percent_translated": 9.767134910907892,
        "files": [
            {
                "name": "whatsnew/2.0",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.0.po",
                "entries": 207,
                "fuzzies": 0,
                "translated": 29,
                "percent_translated": 2,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.1",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.1.po",
                "entries": 154,
                "fuzzies": 0,
                "translated": 14,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.2",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.2.po",
                "entries": 216,
                "fuzzies": 0,
                "translated": 4,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.3",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.3.po",
                "entries": 387,
                "fuzzies": 0,
                "translated": 16,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.4",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.4.po",
                "entries": 319,
                "fuzzies": 0,
                "translated": 16,
                "percent_translated": 1,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.5",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.5.po",
                "entries": 452,
                "fuzzies": 0,
                "translated": 21,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.6",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.6.po",
                "entries": 626,
                "fuzzies": 0,
                "translated": 32,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/2.7",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/2.7.po",
                "entries": 498,
                "fuzzies": 0,
                "translated": 12,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.0",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.0.po",
                "entries": 212,
                "fuzzies": 0,
                "translated": 6,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.1",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.1.po",
                "entries": 132,
                "fuzzies": 0,
                "translated": 10,
                "percent_translated": 2,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.10",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.10.po",
                "entries": 550,
                "fuzzies": 0,
                "translated": 75,
                "percent_translated": 4,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.11",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.11.po",
                "entries": 776,
                "fuzzies": 0,
                "translated": 242,
                "percent_translated": 4,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.12",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.12.po",
                "entries": 837,
                "fuzzies": 0,
                "translated": 160,
                "percent_translated": 1,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.13",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.13.po",
                "entries": 879,
                "fuzzies": 0,
                "translated": 159,
                "percent_translated": 3,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.2",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.2.po",
                "entries": 576,
                "fuzzies": 0,
                "translated": 16,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.3",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.3.po",
                "entries": 682,
                "fuzzies": 0,
                "translated": 56,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.4",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.4.po",
                "entries": 517,
                "fuzzies": 0,
                "translated": 9,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.5",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.5.po",
                "entries": 578,
                "fuzzies": 0,
                "translated": 19,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.6",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.6.po",
                "entries": 544,
                "fuzzies": 0,
                "translated": 12,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.7",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.7.po",
                "entries": 568,
                "fuzzies": 0,
                "translated": 18,
                "percent_translated": 0,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.8",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.8.po",
                "entries": 513,
                "fuzzies": 0,
                "translated": 48,
                "percent_translated": 1,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/3.9",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/3.9.po",
                "entries": 380,
                "fuzzies": 0,
                "translated": 59,
                "percent_translated": 4,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/changelog",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/changelog.po",
                "entries": 1,
                "fuzzies": 0,
                "translated": 1,
                "percent_translated": 100,
                "reserved_by": null,
                "reservation_date": null
            },
            {
                "name": "whatsnew/index",
                "path": "/Users/maciej.olko/projects/python-docs-pl/whatsnew/index.po",
                "entries": 3,
                "fuzzies": 0,
                "translated": 2,
                "percent_translated": 56,
                "reserved_by": null,
                "reservation_date": null
            }
        ]
    }
]
@StanFromIreland
Copy link
Member

StanFromIreland commented Feb 18, 2025

I was thinking a graph might be better as the details showing historical progress, though that will be annoying to generate and update.

By how much would this slowdown generation?

@m-aciek m-aciek linked a pull request May 16, 2025 that will close this issue
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 a pull request may close this issue.

2 participants