hr_lite 0.14.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +102 -1
- data/README.md +4 -1
- data/app/assets/javascripts/hr_lite/print.js +5 -0
- data/app/assets/stylesheets/hr_lite/hr_lite.css +72 -0
- data/app/controllers/hr_lite/admin/documents_controller.rb +63 -0
- data/app/controllers/hr_lite/admin/employees_controller.rb +1 -1
- data/app/controllers/hr_lite/admin/holidays_controller.rb +7 -0
- data/app/controllers/hr_lite/admin/leave_requests_controller.rb +23 -0
- data/app/controllers/hr_lite/admin/loans_controller.rb +59 -0
- data/app/controllers/hr_lite/admin/policies_controller.rb +29 -0
- data/app/controllers/hr_lite/admin/tax_declarations_controller.rb +75 -0
- data/app/controllers/hr_lite/documents_controller.rb +69 -0
- data/app/controllers/hr_lite/hr_requests_controller.rb +2 -0
- data/app/controllers/hr_lite/id_cards_controller.rb +25 -0
- data/app/controllers/hr_lite/loans_controller.rb +11 -0
- data/app/controllers/hr_lite/tax_declarations_controller.rb +100 -0
- data/app/helpers/hr_lite/application_helper.rb +18 -3
- data/app/models/hr_lite/approval_flow.rb +1 -1
- data/app/models/hr_lite/employee_profile.rb +21 -3
- data/app/models/hr_lite/hr_request.rb +12 -3
- data/app/models/hr_lite/leave_request.rb +15 -4
- data/app/models/hr_lite/policy.rb +15 -0
- data/app/models/hr_lite/setting.rb +1 -1
- data/app/models/hr_lite/tax_declaration.rb +4 -1
- data/app/views/hr_lite/admin/documents/index.html.erb +89 -0
- data/app/views/hr_lite/admin/documents/show.html.erb +42 -0
- data/app/views/hr_lite/admin/employees/_form.html.erb +5 -0
- data/app/views/hr_lite/admin/employees/show.html.erb +1 -0
- data/app/views/hr_lite/admin/hr_requests/show.html.erb +3 -0
- data/app/views/hr_lite/admin/leave_requests/index.html.erb +3 -0
- data/app/views/hr_lite/admin/leave_requests/new.html.erb +35 -0
- data/app/views/hr_lite/admin/loans/index.html.erb +43 -0
- data/app/views/hr_lite/admin/loans/new.html.erb +39 -0
- data/app/views/hr_lite/admin/loans/show.html.erb +52 -0
- data/app/views/hr_lite/admin/policies/index.html.erb +27 -0
- data/app/views/hr_lite/admin/policies/new.html.erb +22 -0
- data/app/views/hr_lite/admin/tax_declarations/index.html.erb +37 -0
- data/app/views/hr_lite/admin/tax_declarations/show.html.erb +54 -0
- data/app/views/hr_lite/documents/index.html.erb +84 -0
- data/app/views/hr_lite/id_cards/show.html.erb +86 -0
- data/app/views/hr_lite/loans/index.html.erb +52 -0
- data/app/views/hr_lite/shared/_bell.html.erb +3 -0
- data/app/views/hr_lite/tax_declarations/show.html.erb +68 -0
- data/app/views/layouts/hr_lite/application.html.erb +2 -0
- data/config/routes.rb +21 -1
- data/db/migrate/20260927100145_add_id_card_fields_to_hr_lite_employee_profiles.rb +6 -0
- data/db/migrate/20260927101031_add_created_by_id_to_hr_lite_leave_requests.rb +5 -0
- data/lib/hr_lite/configuration.rb +4 -1
- data/lib/hr_lite/notifications.rb +4 -3
- data/lib/hr_lite/version.rb +1 -1
- data/lib/hr_lite.rb +1 -0
- metadata +41 -1
|
@@ -12,7 +12,7 @@ module HrLite
|
|
|
12
12
|
# the matrix is purely the on/off routing table.
|
|
13
13
|
module Notifications
|
|
14
14
|
DEFAULT_MATRIX = {
|
|
15
|
-
"leave.requested" => { bell: true, email:
|
|
15
|
+
"leave.requested" => { bell: true, email: true, leadership_email: true, leadership_bell: true },
|
|
16
16
|
"leave.approved" => { bell: true, email: true, leadership_email: true, leadership_bell: false },
|
|
17
17
|
"leave.rejected" => { bell: true, email: true, leadership_email: true, leadership_bell: false },
|
|
18
18
|
"leave.cancelled" => { bell: true, email: false, leadership_email: true, leadership_bell: false },
|
|
@@ -38,17 +38,18 @@ module HrLite
|
|
|
38
38
|
"expense.approved" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
39
39
|
"expense.rejected" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
40
40
|
"expense.reimbursed" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
41
|
-
"hr_request.raised" => { bell: true, email:
|
|
41
|
+
"hr_request.raised" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
42
42
|
"hr_request.assigned" => { bell: true, email: false, leadership_email: false, leadership_bell: false },
|
|
43
43
|
"hr_request.resolved" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
44
44
|
"policy.published" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
45
|
+
"holiday.published" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
|
45
46
|
"digest.daily" => { bell: false, email: false, leadership_email: true, leadership_bell: false },
|
|
46
47
|
"resignation.submitted" => { bell: true, email: false, leadership_email: true, leadership_bell: true },
|
|
47
48
|
"resignation.accepted" => { bell: true, email: true, leadership_email: true, leadership_bell: false },
|
|
48
49
|
"resignation.withdrawn" => { bell: true, email: false, leadership_email: true, leadership_bell: false },
|
|
49
50
|
"employee.onboarded" => { bell: true, email: true, leadership_email: true, leadership_bell: false },
|
|
50
51
|
"payroll.draft_ready" => { bell: false, email: false, leadership_email: true, leadership_bell: true },
|
|
51
|
-
"leave.team_notice" => { bell: true, email:
|
|
52
|
+
"leave.team_notice" => { bell: true, email: false, leadership_email: false, leadership_bell: false },
|
|
52
53
|
"comp_off.requested" => { bell: true, email: false, leadership_email: true, leadership_bell: true },
|
|
53
54
|
"comp_off.approved" => { bell: true, email: true, leadership_email: true, leadership_bell: false },
|
|
54
55
|
"comp_off.rejected" => { bell: true, email: true, leadership_email: false, leadership_bell: false },
|
data/lib/hr_lite/version.rb
CHANGED
data/lib/hr_lite.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hr_lite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kshitiz sinha
|
|
@@ -37,6 +37,20 @@ dependencies:
|
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: rqrcode
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '3.0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '3.0'
|
|
40
54
|
description: Mountable Rails engine providing attendance with geolocation, leave management,
|
|
41
55
|
holiday calendar, Indian payroll (PF/ESI/PT/TDS) with salary-slip PDFs, kudos with
|
|
42
56
|
@mentions, appraisals and promotions — integrated into a host app via config hooks.
|
|
@@ -53,6 +67,7 @@ files:
|
|
|
53
67
|
- app/assets/javascripts/hr_lite/confirm.js
|
|
54
68
|
- app/assets/javascripts/hr_lite/geo_punch.js
|
|
55
69
|
- app/assets/javascripts/hr_lite/mention.js
|
|
70
|
+
- app/assets/javascripts/hr_lite/print.js
|
|
56
71
|
- app/assets/stylesheets/hr_lite/application.css
|
|
57
72
|
- app/assets/stylesheets/hr_lite/hr_lite.css
|
|
58
73
|
- app/controllers/hr_lite/admin/appraisals_controller.rb
|
|
@@ -63,6 +78,7 @@ files:
|
|
|
63
78
|
- app/controllers/hr_lite/admin/checklists_controller.rb
|
|
64
79
|
- app/controllers/hr_lite/admin/comp_off_requests_controller.rb
|
|
65
80
|
- app/controllers/hr_lite/admin/designation_changes_controller.rb
|
|
81
|
+
- app/controllers/hr_lite/admin/documents_controller.rb
|
|
66
82
|
- app/controllers/hr_lite/admin/employees_controller.rb
|
|
67
83
|
- app/controllers/hr_lite/admin/expenses_controller.rb
|
|
68
84
|
- app/controllers/hr_lite/admin/holidays_controller.rb
|
|
@@ -71,9 +87,11 @@ files:
|
|
|
71
87
|
- app/controllers/hr_lite/admin/leave_balances_controller.rb
|
|
72
88
|
- app/controllers/hr_lite/admin/leave_requests_controller.rb
|
|
73
89
|
- app/controllers/hr_lite/admin/leave_types_controller.rb
|
|
90
|
+
- app/controllers/hr_lite/admin/loans_controller.rb
|
|
74
91
|
- app/controllers/hr_lite/admin/office_locations_controller.rb
|
|
75
92
|
- app/controllers/hr_lite/admin/overview_controller.rb
|
|
76
93
|
- app/controllers/hr_lite/admin/payroll_runs_controller.rb
|
|
94
|
+
- app/controllers/hr_lite/admin/policies_controller.rb
|
|
77
95
|
- app/controllers/hr_lite/admin/regularization_requests_controller.rb
|
|
78
96
|
- app/controllers/hr_lite/admin/reports_controller.rb
|
|
79
97
|
- app/controllers/hr_lite/admin/resignations_controller.rb
|
|
@@ -84,6 +102,7 @@ files:
|
|
|
84
102
|
- app/controllers/hr_lite/admin/settings_controller.rb
|
|
85
103
|
- app/controllers/hr_lite/admin/statutory_rate_cards_controller.rb
|
|
86
104
|
- app/controllers/hr_lite/admin/superadmin_controller.rb
|
|
105
|
+
- app/controllers/hr_lite/admin/tax_declarations_controller.rb
|
|
87
106
|
- app/controllers/hr_lite/application_controller.rb
|
|
88
107
|
- app/controllers/hr_lite/appraisals_controller.rb
|
|
89
108
|
- app/controllers/hr_lite/approvals_controller.rb
|
|
@@ -92,19 +111,23 @@ files:
|
|
|
92
111
|
- app/controllers/hr_lite/calendar_controller.rb
|
|
93
112
|
- app/controllers/hr_lite/career_controller.rb
|
|
94
113
|
- app/controllers/hr_lite/comp_off_requests_controller.rb
|
|
114
|
+
- app/controllers/hr_lite/documents_controller.rb
|
|
95
115
|
- app/controllers/hr_lite/employee_profiles_controller.rb
|
|
96
116
|
- app/controllers/hr_lite/expenses_controller.rb
|
|
97
117
|
- app/controllers/hr_lite/holidays_controller.rb
|
|
98
118
|
- app/controllers/hr_lite/home_controller.rb
|
|
99
119
|
- app/controllers/hr_lite/hr_requests_controller.rb
|
|
120
|
+
- app/controllers/hr_lite/id_cards_controller.rb
|
|
100
121
|
- app/controllers/hr_lite/kudos_controller.rb
|
|
101
122
|
- app/controllers/hr_lite/leave_balances_controller.rb
|
|
102
123
|
- app/controllers/hr_lite/leave_requests_controller.rb
|
|
124
|
+
- app/controllers/hr_lite/loans_controller.rb
|
|
103
125
|
- app/controllers/hr_lite/org_controller.rb
|
|
104
126
|
- app/controllers/hr_lite/policies_controller.rb
|
|
105
127
|
- app/controllers/hr_lite/regularization_requests_controller.rb
|
|
106
128
|
- app/controllers/hr_lite/resignations_controller.rb
|
|
107
129
|
- app/controllers/hr_lite/salary_slips_controller.rb
|
|
130
|
+
- app/controllers/hr_lite/tax_declarations_controller.rb
|
|
108
131
|
- app/controllers/hr_lite/team_controller.rb
|
|
109
132
|
- app/controllers/hr_lite/users_controller.rb
|
|
110
133
|
- app/helpers/hr_lite/application_helper.rb
|
|
@@ -195,6 +218,8 @@ files:
|
|
|
195
218
|
- app/views/hr_lite/admin/comp_off_requests/index.html.erb
|
|
196
219
|
- app/views/hr_lite/admin/comp_off_requests/show.html.erb
|
|
197
220
|
- app/views/hr_lite/admin/designation_changes/new.html.erb
|
|
221
|
+
- app/views/hr_lite/admin/documents/index.html.erb
|
|
222
|
+
- app/views/hr_lite/admin/documents/show.html.erb
|
|
198
223
|
- app/views/hr_lite/admin/employees/_form.html.erb
|
|
199
224
|
- app/views/hr_lite/admin/employees/edit.html.erb
|
|
200
225
|
- app/views/hr_lite/admin/employees/index.html.erb
|
|
@@ -206,11 +231,15 @@ files:
|
|
|
206
231
|
- app/views/hr_lite/admin/hr_requests/show.html.erb
|
|
207
232
|
- app/views/hr_lite/admin/leave_balances/index.html.erb
|
|
208
233
|
- app/views/hr_lite/admin/leave_requests/index.html.erb
|
|
234
|
+
- app/views/hr_lite/admin/leave_requests/new.html.erb
|
|
209
235
|
- app/views/hr_lite/admin/leave_requests/show.html.erb
|
|
210
236
|
- app/views/hr_lite/admin/leave_types/_form.html.erb
|
|
211
237
|
- app/views/hr_lite/admin/leave_types/edit.html.erb
|
|
212
238
|
- app/views/hr_lite/admin/leave_types/index.html.erb
|
|
213
239
|
- app/views/hr_lite/admin/leave_types/new.html.erb
|
|
240
|
+
- app/views/hr_lite/admin/loans/index.html.erb
|
|
241
|
+
- app/views/hr_lite/admin/loans/new.html.erb
|
|
242
|
+
- app/views/hr_lite/admin/loans/show.html.erb
|
|
214
243
|
- app/views/hr_lite/admin/office_locations/_form.html.erb
|
|
215
244
|
- app/views/hr_lite/admin/office_locations/edit.html.erb
|
|
216
245
|
- app/views/hr_lite/admin/office_locations/index.html.erb
|
|
@@ -219,6 +248,8 @@ files:
|
|
|
219
248
|
- app/views/hr_lite/admin/payroll_runs/index.html.erb
|
|
220
249
|
- app/views/hr_lite/admin/payroll_runs/new.html.erb
|
|
221
250
|
- app/views/hr_lite/admin/payroll_runs/show.html.erb
|
|
251
|
+
- app/views/hr_lite/admin/policies/index.html.erb
|
|
252
|
+
- app/views/hr_lite/admin/policies/new.html.erb
|
|
222
253
|
- app/views/hr_lite/admin/regularization_requests/index.html.erb
|
|
223
254
|
- app/views/hr_lite/admin/regularization_requests/show.html.erb
|
|
224
255
|
- app/views/hr_lite/admin/reports/index.html.erb
|
|
@@ -237,6 +268,8 @@ files:
|
|
|
237
268
|
- app/views/hr_lite/admin/statutory_rate_cards/edit.html.erb
|
|
238
269
|
- app/views/hr_lite/admin/statutory_rate_cards/index.html.erb
|
|
239
270
|
- app/views/hr_lite/admin/statutory_rate_cards/new.html.erb
|
|
271
|
+
- app/views/hr_lite/admin/tax_declarations/index.html.erb
|
|
272
|
+
- app/views/hr_lite/admin/tax_declarations/show.html.erb
|
|
240
273
|
- app/views/hr_lite/appraisals/index.html.erb
|
|
241
274
|
- app/views/hr_lite/appraisals/show.html.erb
|
|
242
275
|
- app/views/hr_lite/approvals/index.html.erb
|
|
@@ -248,6 +281,7 @@ files:
|
|
|
248
281
|
- app/views/hr_lite/career/show.html.erb
|
|
249
282
|
- app/views/hr_lite/comp_off_requests/index.html.erb
|
|
250
283
|
- app/views/hr_lite/comp_off_requests/new.html.erb
|
|
284
|
+
- app/views/hr_lite/documents/index.html.erb
|
|
251
285
|
- app/views/hr_lite/employee_profiles/show.html.erb
|
|
252
286
|
- app/views/hr_lite/event_mailer/event.html.erb
|
|
253
287
|
- app/views/hr_lite/event_mailer/event.text.erb
|
|
@@ -261,6 +295,7 @@ files:
|
|
|
261
295
|
- app/views/hr_lite/hr_requests/index.html.erb
|
|
262
296
|
- app/views/hr_lite/hr_requests/new.html.erb
|
|
263
297
|
- app/views/hr_lite/hr_requests/show.html.erb
|
|
298
|
+
- app/views/hr_lite/id_cards/show.html.erb
|
|
264
299
|
- app/views/hr_lite/kudos/_kudo.html.erb
|
|
265
300
|
- app/views/hr_lite/kudos/index.html.erb
|
|
266
301
|
- app/views/hr_lite/leave_balances/index.html.erb
|
|
@@ -268,6 +303,7 @@ files:
|
|
|
268
303
|
- app/views/hr_lite/leave_requests/index.html.erb
|
|
269
304
|
- app/views/hr_lite/leave_requests/new.html.erb
|
|
270
305
|
- app/views/hr_lite/leave_requests/show.html.erb
|
|
306
|
+
- app/views/hr_lite/loans/index.html.erb
|
|
271
307
|
- app/views/hr_lite/org/_node.html.erb
|
|
272
308
|
- app/views/hr_lite/org/show.html.erb
|
|
273
309
|
- app/views/hr_lite/policies/index.html.erb
|
|
@@ -279,8 +315,10 @@ files:
|
|
|
279
315
|
- app/views/hr_lite/salary_slips/index.html.erb
|
|
280
316
|
- app/views/hr_lite/salary_slips/pdf.html.erb
|
|
281
317
|
- app/views/hr_lite/salary_slips/show.html.erb
|
|
318
|
+
- app/views/hr_lite/shared/_bell.html.erb
|
|
282
319
|
- app/views/hr_lite/shared/_form_errors.html.erb
|
|
283
320
|
- app/views/hr_lite/shared/_pagination.html.erb
|
|
321
|
+
- app/views/hr_lite/tax_declarations/show.html.erb
|
|
284
322
|
- app/views/hr_lite/team/show.html.erb
|
|
285
323
|
- app/views/layouts/hr_lite/application.html.erb
|
|
286
324
|
- app/views/layouts/hr_lite/mailer.html.erb
|
|
@@ -321,6 +359,8 @@ files:
|
|
|
321
359
|
- db/migrate/20260818003616_create_hr_lite_documents_and_declarations.rb
|
|
322
360
|
- db/migrate/20260818004707_create_hr_lite_employee_services.rb
|
|
323
361
|
- db/migrate/20260818010401_create_hr_lite_assets_and_onboarding.rb
|
|
362
|
+
- db/migrate/20260927100145_add_id_card_fields_to_hr_lite_employee_profiles.rb
|
|
363
|
+
- db/migrate/20260927101031_add_created_by_id_to_hr_lite_leave_requests.rb
|
|
324
364
|
- lib/generators/hr_lite/install/install_generator.rb
|
|
325
365
|
- lib/generators/hr_lite/install/templates/AFTER_INSTALL
|
|
326
366
|
- lib/generators/hr_lite/install/templates/initializer.rb
|