TiddlyWiki5 icon indicating copy to clipboard operation
TiddlyWiki5 copied to clipboard

[IDEA] Importing: Don't pink alert for upgrades

Open twMat opened this issue 1 year ago • 6 comments

[This rings a bell in my head, but I cannot find it as an issue. Someone please enlighten me if there's already an active issue report and I'll close this.]

Upgrading an existing plugin (at least via drag'n drop, I'm not sure about via plugin library) gives this alert:

image

But the pink color implies there is something wrong which causes psychological discomfort. But there is very likely nothing wrong; it is unlikely that I'm installing a plugin that I already unknowingly have installed (and even if I do over-install it, any custom overwrites will not be harmed). It is however highly likely that I intentionally want to upgrade that plugin.

Proposal The uncomfortable feeling would be mitigated if:

  1. the pink color was changed into perhaps yellow. One could even argue for lightgreen, implying: "everything is allright but, still, do notice this alert!"
  2. there was information about the version numbers: old vs new

twMat avatar Aug 02 '24 21:08 twMat

I think it is better to show the plugin waiting for import like this, with grey background and version numbers:

图片

Leilei332 avatar Aug 03 '24 11:08 Leilei332

@Leilei332 - IMO, grey implies "inactive" or "disabled".

twMat avatar Aug 03 '24 11:08 twMat

The styles for the imported tiddlers only have tc-row-disabled and tc-row-warning at present.

I think we can use a blue color as the background for the plugin tiddlers when importing and create a class like tc-row-upgrade for it.

Leilei332 avatar Aug 04 '24 08:08 Leilei332

I think we can use a blue color

What is the viewer supposed to intuitively think/feel from this particular colour?

Here follows my reasoning. And I hope it doesn't come across as patronizing; I'm giving the background for why colours should not be arbtirarily in user interfaces - but it's just my opinion, I'm no expert. (But it is a fascinating topic!)

Some colors have a cultural consensus about their meaning. Red it the most obvious example, probably even biological ("warning - blood!"), green might have some calming effect (probably because of green in nature) but has been adopted as a cultural expression for "allright/go" (from "traffic lights") and also, but to a lesser degree, yellow. But yellow is sometimes also used as "warning/alert" in nature, and I'd think its use in traffic lights stem from practical compromises (must not dampen the intensity, limited materials in the early days of constructing lights, etc). And gray "fuzzies out" things so the don't draw as much attention which is also biological (altho, if the gray thing is the odd one out, then...). Black/dark is deeply rooted from night time and the associate risks. As for blue, there's perhaps the stereotypial "blue sky" but culturally it has been adopted to use for authorities/police, if anything. But IMO, there is no real intutive meaning to it. I don't think we're primed for it.

and create a class like tc-row-upgrade for it.

I'd guess, that's the way to do it :-)

twMat avatar Aug 04 '24 09:08 twMat

If we considered upgrading plugins, I think we must also consider the condition of downgrading plugins.

For upgraded plugins, I think we can use the green color with text like Upgraded plugin from v0.1 to v0.2

For downgraded plugins, I think we can use the yellow color with text like Warning: Downgrading plugin from v0.2 to v0.1

Leilei332 avatar Aug 06 '24 14:08 Leilei332

For downgraded plugins

I don't think the current importing implementation supports this. Or, rather, I think it actively blocks this to "protect" the user. If one really wants an older version, one can of course delete the current and install the older.

twMat avatar Aug 06 '24 16:08 twMat