openfisca / legislation-explorer

Explore legislation formulas and parameters.
https://legislation.demo.openfisca.org
GNU Affero General Public License v3.0
26 stars 12 forks source link

Style error on landing page first load #199

Closed bonjourmauko closed 6 years ago

bonjourmauko commented 6 years ago

.loading CSS rule should not be applied to the list of parameters and variables:

capture d ecran 2018-10-02 a 18 24 16

Reproduce it locally

Set your nginx config to something like this:

http {
  upstream legislation-explorer {
    server localhost:2030;
  }

  server {
    listen      80;
    server_name localhost;

    location ~/legislation(.*)$ {
        proxy_pass http://legislation-explorer$1;
        proxy_set_header Host $http_host;
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
  }
}

Then run:

npm install
npm run clean
npm run build
npm start

And visit http://localhost/legislation

fpagnoux commented 6 years ago

This is really weird:

For the France instance, I cannot reproduce the bug for:

Incognito mode doesn't change anything.

However, for the new Demo instance, I experience the bug will all the exact same browsers 😲 .

The two instances are served by the same version of the legislation explorer, with the same version of node, and have the same package-lock.json.

Even weirder, others (@sandcha, @maukoquiroga) experience the bug on the France instance too 😱

fpagnoux commented 6 years ago

More strangeness:

Going to a variable page, and coming back to the home page, seems to temporarily fix the issue.

This doesn't seem fully deterministic...