adfinis / timed

Monorepo for the Timed time-tracking application
GNU Affero General Public License v3.0
7 stars 5 forks source link

[ENHANCEMENT]: Keep track of partially entered data in Timesheets #514

Open tongpu opened 2 weeks ago

tongpu commented 2 weeks ago

Your proposed enhancement

When I start to enter some entry in the Timesheet tab and switch to e.g. the Activity/Attendence to check something then the entry I started in the Timesheet is lost, because it was not sent to the backend. It would be great if the frontend could somehow temporarily store this information.

Enhancement Impact

Propably adds some complexity to the frontend. :grimacing:

Additional context

No response

Required

c0rydoras commented 2 weeks ago

If i understand this correctly, the frontend should store the currently entered report? like when its not saved?

should be possible by saving it to localStorage AFAICT

/cc @adfinis/dev-timed

derrabauke commented 2 weeks ago

If i understand this correctly, the frontend should store the currently entered report? like when its not saved?

should be possible by saving it to localStorage AFAICT

/cc @adfinis/dev-timed

localstorage sounds overkill to me. Simply createRecord and reuse this one when entering the timesheet fetching for the first record matching isNew.