creecros / MetaMagik

Custom Fields for Kanboard - Plugin MetaMagik
MIT License
99 stars 16 forks source link

Field label #49

Closed ivolvicente closed 4 years ago

ivolvicente commented 4 years ago

Hello,

How can i add a more readable text for my custom field? For me it's no a problem, but users tend to dislike name_like_this.

creecros commented 4 years ago

You'd have to think outside the box. Theres not a short answer, but it could be done through conversions into the DB, and then convert back out. Long story short, no spaces allowed, but you could, per say, converts spaces to some sort of character set, and then re convert when you display it.

I could think of a few other solutions, and think I included human name/machine name fields, I never used both, for this particular issue, but it would require implementation. My motivation to do this is very low though, happy to merge a PR.

creecros commented 4 years ago

@ivolvicente

Was able to figure this out in a simple manner by adding a property ,'beauty_name' and converting all the underscores to Spaces. Then used that new property only when displaying field labels. So, it wasn't too difficult, and I could merge, but want to make sure you still want this.

ivolvicente commented 4 years ago

Hi @creecros

Thanks for the effort implementing this enhancement, saddly for the moment i stopped my R&D (company pivoted on the project).

But i belive it's a valid enhancement for other people, it deserve to be merged :wink: