google / ground-platform

Ground hosted components: Web console, Cloud Functions, db config
http://groundplatform.org
Apache License 2.0
205 stars 88 forks source link

[Code health] Reorganize component directories and modules #983

Open gino-m opened 1 year ago

gino-m commented 1 year ago

Based on https://medium.com/@dolanmiu/angular-folder-structure-follow-the-dom-8af5453d0808 and discussion with nwotto@, suggesting the following:

The resulting folder hierarchy under web/ would look something like this:

src
  app
    components
      shared-component-1
      shared-component-2
    converters
    models
    pages
      page-1
        subcomponent-1
          subcomponent-1a
          subcomponent-1b
          ...
        subcomponent-2  
          ....
    service

Names of components only used in one place can be shortened when name is clear from context.

We'll keep ground- element prefix as per recommendation in Angular style guide: https://angular.io/guide/styleguide#style-02-07

@DaoyuT @amysorto @nwkotto FYI

gino-m commented 10 months ago

I already started this, need to verify all components were reorganized.