How yossipoli/splitips works
Splitips is a React app for restaurant tip-based payroll: staff enter a work date, tip totals and employee shifts; the app calculates hours, minimum pay and tip allocation, then authenticated users can save the day and review payroll over a date range. The README also documents account recovery and registration. The API client shows requests to an external server, but its implementation is not present in this repository; unsampled form and history behavior is represented only where documented or indexed.
Main entry points: API.js HTTP API client · index.js Daily calculator · App.js Routes and shell · Login.js Login
Components 17
App navigation
- Routes and shell
src/App.js - Navigation and logout
src/Components/Navbar/Navbar.js
Shift payroll
- Daily calculator
src/Components/Splitter/index.js - Employee shift editor
src/Components/Splitter/InnerComponents/Employee/Employee.js - Salary inputs
src/Components/Splitter/InnerComponents/Salaries/Salaries.js - Add and reset
src/Components/Splitter/InnerComponents/Add/Add.js - Save calculated day
src/Components/Splitter/InnerComponents/Save/Save.js
Account access
- Login
src/Components/Form/Login.js - Registration
src/Components/Form/Register.js - Form input
src/Components/Form/InnerComponents/FormInput.js - Password recovery
src/Components/Form/ForgotPassword.js - Password reset
src/Components/Form/ResetPassword.js
Payroll history
- Period payroll report
src/Components/Paycheck/Paycheck.js - Employee payroll row
src/Components/Paycheck/PaycheckComponents/Employee.js
Server access
- HTTP API client
src/DAL/API.js
Other components
- Restaurant operator
- Payroll server
Connections 28
- Restaurant operator → Routes and shell: opens app
- Routes and shell → Daily calculator: routes to
src/App.js - Routes and shell → Login: routes to
src/App.js - Routes and shell → Registration: routes to
src/App.js - Routes and shell → Password recovery: routes to
src/App.js - Routes and shell → Password reset: routes to
src/App.js - Routes and shell → Period payroll report: routes to
src/App.js - Routes and shell → Navigation and logout: renders
src/App.js - Daily calculator → Employee shift editor: renders
src/Components/Splitter/index.js - Daily calculator → Salary inputs: renders
src/Components/Splitter/index.js - Daily calculator → Add and reset: renders
src/Components/Splitter/index.js - Daily calculator → Save calculated day: renders
src/Components/Splitter/index.js - Employee shift editor → Daily calculator: updates shifts
src/Components/Splitter/index.js - Salary inputs → Daily calculator: updates salary inputs
src/Components/Splitter/index.js - Add and reset → Daily calculator: invokes controls
src/Components/Splitter/index.js - Daily calculator → HTTP API client: loads saved day
src/Components/Splitter/index.js - Save calculated day → HTTP API client: writes payroll
src/Components/Splitter/InnerComponents/Save/Save.js - Login → Form input: renders
src/Components/Form/Login.js - Registration → Form input: renders
src/Components/Form/Register.js - Login → HTTP API client: authenticates
src/Components/Form/Login.js - Registration → HTTP API client: registers account
src/Components/Form/Register.js - Password recovery → HTTP API client: requests recovery
- Password reset → HTTP API client: resets password
- Navigation and logout → HTTP API client: checks session
src/Components/Navbar/Navbar.js - Period payroll report → HTTP API client: loads date range
src/Components/Paycheck/Paycheck.js - Period payroll report → Employee payroll row: renders rows
src/Components/Paycheck/Paycheck.js - Employee payroll row → HTTP API client: updates tip status
src/Components/Paycheck/PaycheckComponents/Employee.js - HTTP API client → Payroll server: sends requests
src/DAL/API.js