Automattic / bugomattic

Bugomattic is a tool that guides bug reporters to the right actions within large, complex organizations
GNU General Public License v2.0
6 stars 0 forks source link

Clean up the directory structure #16

Closed dpasque closed 1 year ago

dpasque commented 1 year ago

What Does This PR Add/Change?

This PR makes some long overdue clean-up changes to the directory structure for the app.

Note! Clean-up changes like this where there is lots of renaming and moving of things always leads to MASSIVE and confusing diffs. I highly recommend just looking at the branch code and seeing if you like how things are laid out. There are no functional changes to the app in this change.

The clean-up includes...

*** This convention has just not played well with this app from the start. We are prioritizing colocation for our directory structure. However, the combination of colocation and React/Redux often using exported constants has lead to a module mess. We are often way over-importing and sometimes hit dependency race conditions or circular dependencies. We should just avoid that mess! Instead, our flattened, functional-area directory structure should make it easy to just find and import exactly what you need.

I have opted to still allow index files when you have a subdirectory that contains all similar file types. (Like a subdirectory of private helper components.)

Testing Instructions

Issues

Related to #
Closes #