apache / apache/ponymail

DRY: there is quite a lot of duplication in the Javascript

Open
#203 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
80
Forks
32
PR merge metrics
No merged PRs in 30d

Description

The Javascript code has a lot of code duplication.

For example, the same calculation of d_ppp is repeated in:

site/js/dev/ponymail_listview_flat.js
site/js/dev/ponymail_listview_threaded.js
site/js/dev/ponymail_listview_tree.js

The code should be extracted and turned into a shared function.

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the repeated d_ppp calculation in site/js/dev/ponymail_listview_flat.js, site/js/dev/ponymail_listview_threaded.js, and site/js/dev/ponymail_listview_tree.js. Identify other duplication in the JavaScript, then extract the shared calculation without changing list-view behavior. Done means the repeated logic is centralized and all three views still work correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.