More convenient naming for redux action and reducer modules

Description

In the Redux app structure, we have ended up with modules with the same name, e.g.

app/actions/glossary.js
app/reducers/glossary.js

This can be a little inconvenient when looking them up in the IDE:

Not difficult to distinguish but enough to break flow a bit.

I propose we include the type of module in the filename to remove the ambiguity during lookup:

actions/glossary-actions.js
reducers/glossary-reducers.js
utils/glossary-utils.js

This would also help if we name test files as the file under test with a suffix. Much easier to groc what is broken if there is a failure in glossary-reducers.test.js than in glossary.test.js.

Attachments

2
  • 21 Apr 2017, 03:04 am
  • 21 Apr 2017, 03:02 am

Activity

Show:
Ready for Release

Details

Assignee

Reporter

Labels

Tested Version/s

Story Points

Components

Sprint

Fix versions

Priority

More fields

Created 21 April 2017 at 03:05
Updated 27 June 2018 at 02:17
Resolved 2 May 2017 at 06:14

Flag notifications