Modify

Opened 7 years ago

Closed 7 years ago

#13364 closed enhancement (fixed)

Auto-fill form fields

Reported by: anonymous Owned by: lucid
Priority: normal Component: TimeTrackingPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

For convenience the form to add new log entries should automatically pre-fill the fields with likely values. For most fields the value could just be copied from the latest previous entry.

For the date (which is already pre-filled, but to the current day) it would sometimes be more convenient to set it to the date after the latest previous entry. Perhaps add a setting typical_logged_spent_hours_per_day = 12. After that many hours are logged, automatically pre-fill the field with the following day. Perhaps also add a setting typical_logged_days_on_weekends = no to skip weekends automatically.

For some fields (e.g. location) it might be more convenient to use the value of the same day from the previous week. Perhaps another setting typical_logged_location_weekly = yes makes would be useful.

A more powerful solution would maybe add more options:

[typical_logged_hours]
default.hours = 12
default.location = office
monday.location = home
friday.hours = 6
saturday.hours = 0
sunday.hours = 0

(Even more complex: Make this configurable per user. Maybe even in a nice preferences UI panel.)

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by lucid

In 17024:

TimeTrackingPlugin: Pre-select default values in "Add new entry" form.
Use heuristics to determine defaults.

Add two new config options, only used in these heuristics:

[timetracking]
spent_hours.default=8
weekends=False

Fix the "Remove"-buttons when multiple entries or tasks are selected.

Trac 1.3 compatible Genshi-fallback.

(see #13364)

comment:2 Changed 7 years ago by lucid

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain lucid.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.