Pablo-WMDE added a comment.

Little research regarding "in more languages" content

with JS

Not logged in

Q2 -> en, de, fr, bay
Q2?uselang=es -> es, en

Logged in

Q2 -> de, en, es (user preferences)
Q2?uselang=es -> es, de, en

without JS

Not logged in

Q2 -> en (probably preferred browser lang)
Q2?uselang=es -> es, en

Logged in

Q2 -> de, en, es (user preferences)
Q2?uselang=es -> es, de, en

Persistence

How is the link click persisted

with JS

Logged in

api.saveOption( // i.e. "action: options"
	'wikibase-entitytermsview-showEntitytermslistview',
	visible ? '1' : '0'
)
mw.user.options.set(
	'wikibase-entitytermsview-showEntitytermslistview',
	visible ? '1' : '0'
);



Not logged in (mw.user.isAnon())

Cookie wikidatawikiwikibase-entitytermsview-showEntitytermslistview
value: true|false
expires: 1y

without JS

The link is not shown, no CTA, nothing to persist


@Lea_WMDE

  • persistence happens as we imagined when estimating if the user is not logged in. The cookie has a lifetime of 1y
  • the toggle state is persisted in the user settings if the user is logged in. Interestingly is not persisted in the cookie in this case. Implementing this did not go into the estimation above.
  • found T209576 along the way (non blocking)

As I am not sure if we want to reach complete feature parity in this case or go another way I did not create a new story / change the current story just yet.


TASK DETAIL
https://phabricator.wikimedia.org/T209496

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Pablo-WMDE
Cc: Aklapper, WMDE-leszek, Lea_WMDE, Pablo-WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, D3r1ck01, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to