coderbunker / gas

G-Suite Google Apps Script (GAS) used with Coderbunker documents
3 stars 0 forks source link

Use web UI to submit a time record in Timesheet #81

Closed kangabee closed 4 years ago

kangabee commented 5 years ago

Ver 1.0

Requirements

As a freelancer of Coderbunker, I would like to use a interface to record my time in timesheet in a more convenient way, instead of putting an record manually in spreadsheet.

Solution

UX/UI Design

Sidebar Final Design - Pencil 2019-07-01 오전 9_23_36 Final Sidebar UI/UX design

Todo

Notice

andiechu commented 5 years ago

@kangabee paste your UX/UI design images in the issue's description

kangabee commented 5 years ago

Need help with getting code reviewed for automatic extraction of name from members.json : function matchName () { var emailaddress = Session.getActiveUser().getEmail(); Logger.log(emailaddress); var member = DriveApp.getFileById('141seEreVW3yZwsbWtHQ7QXDJ5_LzweXf'); //members.json for(var i = 0; i < member.length; i++) { if((member[i].members.email == emailaddress) || (member[i].members.altemails == emailaddress)) { return member[i].members.fullname; } else { return null; } } }

kangabee commented 5 years ago

Also need help with getting a code reviewed for checking entry, the plan is that when the user submits the information the inputs will be sent to both the Timesheet and another file on the Google Drive called the "entry.json" file: function saveEntry(datas) { var savePage = DriveApp.getFileById('1MnrEDykZU6AvKRREEn50oM0dMRYAwDdW'); //entry.json var obj = JSON.parse(savePage); obj['userEntry'].push({"full name":datas.enterFullName, "date":datas.enterDate, "start time":datas.enterStartTime, "end time":datas.enterEndTime, "activity":datas.enterActivity}); savePage = JSON.stringify(obj); }