Todo for core commit (JS code)

Created on 19 October 2023, about 1 year ago
Updated 1 May 2024, 8 months ago

Some tasks to prepare for core MR, will probably complete this over time.

Must have

Done

Should have

🌱 Plan
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France nod_ Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nod_
  • πŸ‡·πŸ‡ΈSerbia finnsky

    Refactor suggestion here
    https://www.drupal.org/project/navigation/issues/3401159 ✨ Refactor components Needs review

  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona

    We just discussed this with @finnsky and it looks like everything on the summary has been addressed so far:

    In the JS all the element selectors should rely on data attributes and not class names, things such as .toolbar-menu__item.toolbar-menu__item--level-2 etc.

    This has been done.

    There are some syntax issues, ifs that are not wrapped with {}, multiple declarations of variables on one line. essentially the eslint core config should be run on the code and fixed.

    I don't have a good solution for that yet, the code could use a refactor to improve readability possibly grouping the positioning into one file/area of the code that sort of things.

    After componentizing the CSS and JS and breaking the JS in several files ("no monolithic js anymore" per @finnsky words) we think this is addressed too. The work happened in:

    Maybe this would need another round to review what needs to happen for core, or otherwise we could close this one.

  • Status changed to Needs review 10 months ago
  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona
  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona

    Adding some JS related issues in the issue summary, on the Should have for now.

  • Status changed to Postponed: needs info 10 months ago
  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona

    Postponing this until we get πŸ“Œ Convert jQuery to vanilla Javascript Needs work , so the code will be on a more finished state.

    Also updating the issue summary.

  • πŸ‡«πŸ‡·France nod_ Lille

    Been using the module for a few days, there is a perf issue. Font flashes on every page it's pretty annoying. The initialisation should be done outside of behaviors, that happens too late.

    We did a lot of optimisation work on the core toolbar to avoid any flash or layout shift, we should do the same here before getting that in

  • Status changed to Needs review 10 months ago
  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona

    @nod_ there is an issue for thatβ„’ :P πŸ› Flickering when loading the page Needs review . Adding it to the issue summary, thanks!.

  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona
  • Status changed to Active 10 months ago
  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona

    Changing title & status since it's active.

  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona

    Closing this now that ✨ Add the new Navigation to core as an Experimental module Fixed has been opened and all the JS feedback is going to be addressed from there.

  • Status changed to Fixed 8 months ago
  • πŸ‡ͺπŸ‡ΈSpain ckrina Barcelona
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024