NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
27 Oct 2019

Pull Request for Issue # .

Summary of Changes

  • Drop some legacy, unused scripts

Info

  • sortablelist has been replaced by dragula
  • ajax-chosen and chosen has been replaced by fancy-select
  • tab-state has been replaced by Joomla-tabs
  • recaptcha just removed the minified version and renamed it to .es5.js so the build tools will reminify it

Testing Instructions

Expected result

Actual result

Documentation Changes Required

avatar dgrammatiko dgrammatiko - open - 27 Oct 2019
avatar dgrammatiko dgrammatiko - change - 27 Oct 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Oct 2019
Category Repository NPM Change JavaScript
avatar brianteeman
brianteeman - comment - 27 Oct 2019

you're going to hate me for this - shouldn't we keep the legacy scripts so that non-core extensions don't have to rewrite everything?

avatar dgrammatiko
dgrammatiko - comment - 27 Oct 2019

shouldn't we keep the legacy scripts so that non-core extensions don't have to rewrite everything

Well, if that is the case then we did a really bad job when we used the old HTMLHelper API to wire the new scripts with the old end points

avatar wilsonge
wilsonge - comment - 28 Oct 2019

I don't think the tabs custom element does keep the state across requests does it?

Agree with @dgrammatiko that if we have existing HtmlHelper scripts rewire to things that are largely b/c this is ok.

avatar brianteeman
brianteeman - comment - 28 Oct 2019

I don't think the tabs custom element does keep the state across requests does it?

I think it does. What it doesn't do is let you link to a tab see
#25359

Agree with @dgrammatiko that if we have existing HtmlHelper scripts rewire to things that are largely b/c this is ok.

Thats great to hear

avatar dgrammatiko
dgrammatiko - comment - 28 Oct 2019

I don't think the tabs custom element does keep the state across requests does it?

In theory it does. I mean the code initially covered these scenarios:

  • local storage data from a previous visited page (same regex as in tab state)
  • activation of a tab through a url hash (eg some-url#tab1)
avatar SharkyKZ
SharkyKZ - comment - 30 Oct 2019

activation of a tab through a url hash (eg some-url#tab1)

This does not work.

avatar brianteeman
brianteeman - comment - 30 Oct 2019

@SharkyKZ I keep saying that but no one listens

avatar dgrammatiko
dgrammatiko - comment - 30 Oct 2019

Sortablelist is used

Uhhhh, my bad

avatar dgrammatiko dgrammatiko - close - 30 Oct 2019
avatar dgrammatiko dgrammatiko - change - 30 Oct 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-10-30 19:39:31
Closed_By dgrammatiko
Labels Added: NPM Resource Changed ?

Add a Comment

Login with GitHub to post a comment