free-site-builder icon indicating copy to clipboard operation
free-site-builder copied to clipboard

[✅ASSIGNED] Builder CORE Improvements applied for v1.0.16

Open app-generator opened this issue 2 years ago • 1 comments

STATUS: ASSIGNED to @umarali


Context

@umarali please add all the functional improvements that need to be done in the CORE of the builder.

PRIO:

  • stability
  • codebase pattern
  • remove all runtime exceptions (JS console)

TY!

app-generator avatar Aug 01 '23 09:08 app-generator

Some quick suggestions:

  1. Replace magic strings with constants, e.g. currentPageTabs.
  2. Avoid using inline styles.
  3. For better state management, consider libraries like Redux or patterns such as the Context API. Also, to optimize DOM interactions, explore frameworks React, Vue, or Angular could be used.
  4. Modularize the code into distinct units, such as tabManager.ts and componentRenderer.ts, for enhanced maintainability and testing. Similarly, onClick also needs to divided into smaller chunks.
  5. Make use of ES6 features properly.

@app-generator

umarali avatar Aug 09 '23 09:08 umarali