vordgi / kvco

Edit JSONs faster than ever. Just Run and Edit!
https://k-v.co
Other
4 stars 0 forks source link

feature request a single page that shows all the missing values #87

Closed zakidze closed 3 months ago

zakidze commented 4 months ago

i want to open inio in root locales folder it scanes all local

then it retunes a single page where it retunres all the missing value...

in all files

its like a summary of missing values

vordgi commented 3 months ago

You can try latest version (npm i @nimpl/inio@0.8.3-canary.2 -g) and test multiple pattern:

module.exports = {
    experimental: {
        pattern: ["i18n/<key>/footer.json", "i18n/<key>/test.json"],
        ignore: ["i18n/wrong/footer.json"],
    },
};

Then just use "missings" filter

zakidze commented 3 months ago

i will test but one thing shold i put the config in the root localez folder then open inio there?

zakidze commented 3 months ago

i liked the multi pattern its really great , it would be cool also to

configure this multi pattern in the UI

vordgi commented 3 months ago

i will test but one thing shold i put the config in the root localez folder then open inio there?

Put it where you usually run inio

configure this multi pattern in the UI

Already in progress:

image

zakidze commented 3 months ago

make it a combobox select box with checkbox

so i wont have to type each pattern they

the jsons appare in select box and i select what i want

now you got your way to let inio knows about structured jsons

zakidze commented 3 months ago

same with selecting one pattern in the UI but with checkboxs so i can select multiple at once

vordgi commented 3 months ago

What if inio found hundreds of files? What if suddenly thousands? How to determine what is the "key" in these paths?

zakidze commented 3 months ago

then just let the user desides with checkbox

i find how i currently set the pattern is easy

like a select box and i scroll throught folders and all

however i d like to use checkboxes same UI but with checkboxses

its like a pattern bulk builder helper

vordgi commented 3 months ago

But how to determine what is the "key" in these paths?

zakidze commented 3 months ago

Capture

look i have alot of jsons i d like to just add checkboxes so insted of selecting 1 pattern i select all of them

zakidze commented 3 months ago

like this i have to switch one by one

zakidze commented 3 months ago

i dont want to write everything just a single select i chose with checkbox whats included and thats it

zakidze commented 3 months ago

you can see my list is long but i want to include all thoes jsons

also a configuration can be exported so i can use it the next time and that is related to this issue:

https://github.com/vordgi/nimpl-inio/issues/108

i want to open inio from one place and save the dir of multiple projects and also thoes pattern for multiple projects in my disk loccaly

vordgi commented 3 months ago

You will be able to write <key>/*.json and it will match all your files

zakidze commented 3 months ago

now thats wild you shold include this to trick the docs

a checkbox to be usuful so i can select what i want not nessisarly everything

ps i just tested the multiple pattern it work veryyyy nice

vordgi commented 3 months ago

Got it, thanks!

zakidze commented 3 months ago

by the way you shold group the jsons by their name of file like when specifying for bulk jsons there shold be header with group of keys speicfying the file name

+

a filter to show or hide the pattern quick and fast you know just some filters

vordgi commented 3 months ago

What if my structure: terms --header ----en.json ----de.json --footer ----en.json ----de.json

zakidze commented 3 months ago

donno what will be happen right there

but we shold make a config for patterns like for unusual patterns and point jsons mannually

at first specify in the docs that this is the recomonded way

and if you want somthing costum then you shold do some manuel work

zakidze commented 3 months ago

You will be able to write /*.json and it will match all your files

i tryed this right now but it did not work so i have to type everyhting mannually

vordgi commented 3 months ago

It's in work right now

zakidze commented 3 months ago

Capture

add this to the list a header to indicate where are thoes keys else its a mess

vordgi commented 3 months ago

Patterns editing via UI shipped!

zakidze commented 3 months ago

you added the * star?

zakidze commented 3 months ago

u can close this issie if you want since this feature is shipped

vordgi commented 3 months ago

https://x.com/i/status/1808962108224385236 Here a little demo

vordgi commented 3 months ago

Thank you for your help! I will also try to think about an implementation for checkboxes.

zakidze commented 3 months ago

i shold be included as a co fouder as alot of ideas are mine including the start of this projectπŸ€£πŸ˜…πŸ˜†

zakidze commented 3 months ago

well : a thank you to you too like honestly arriving to this point i know its alot of hard work

its pleasure to see this project going so thank you

vordgi commented 3 months ago

To be honest, part of this functionality already existed, as I have a lot of work with translations at job (10 regions and dozens of services 😬). I needed a reason to bring all this together into a full-fledged service. And thank you for this reason!) πŸš€

I hope this will be a project that brings benefits, rather than leading to my burnout 😁

zakidze commented 3 months ago

now whats next?

vordgi commented 3 months ago

Relax) Then think about some personal ideas. Maybe I'll work at #61

zakidze commented 3 months ago

you know best goodluck

i recomond starting with the duplicates issue as its more important

load jsons thought multiple patterns

select a common json

and show duplicates of the common json and sujjest to move them