ac10e65097
Refactor service ( #14 )
...
* add comments to main file
* create health check handler
health check
* use naming convention for booking handler
* use naming convention for hamndlers
naming convention
* clean up
2024-08-07 09:12:50 +02:00
e9fcb8dd49
bypass unused func
2024-08-06 09:24:05 +02:00
7ebe0975ae
add calendar token
2024-08-06 09:18:58 +02:00
9765edc318
update templ version
2024-08-05 20:19:33 +02:00
4409facd34
create calendar service at startup
2024-08-05 20:19:25 +02:00
e13d7f53ff
poc calendar service
2024-08-05 13:55:16 +02:00
441806bb4f
Revert "deactivate TLS check for client call"
...
This reverts commit 8acffdf9b2 .
2024-07-18 14:34:24 +02:00
99e95e54c0
linter
2024-07-18 13:09:33 +02:00
8acffdf9b2
deactivate TLS check for client call
2024-07-18 13:07:08 +02:00
aff18b2b12
split view models
2024-07-15 16:59:23 +02:00
22175a9b39
fix linter errors
2024-07-14 23:43:14 +02:00
967df34451
add external field to form
2024-07-14 23:35:39 +02:00
1f55bf3556
make external id nullable
2024-07-14 23:05:14 +02:00
18daf5d482
improve date parsing
2024-07-06 10:50:39 +02:00
b25d7be29d
basic task scheduler
2024-06-30 12:49:26 +02:00
ee3674e12f
better date formatting
2024-06-29 09:28:51 +02:00
6bff5ccc18
use left join for bookings and items
2024-06-28 17:03:23 +02:00
69fdfa66af
fix date format
2024-06-20 18:45:34 +02:00
82773aab3b
fix date regex
2024-06-20 18:39:26 +02:00
ba950f3b03
use constants
2024-06-20 18:34:57 +02:00
ae233e46e0
add alpinejs form validation on the login step
2024-06-17 17:19:48 +02:00
0dc9bee3f7
add api_key to config
2024-06-16 16:20:55 +02:00
c8ab60e07e
add external_id to not duplicate bookings
2024-06-15 09:11:56 +02:00
ba22fa0ffc
log and return message
2024-06-15 07:55:48 +02:00
33c1c450e0
store items
2024-06-15 07:51:05 +02:00
0b5c12716c
store booking to db
2024-06-15 07:39:23 +02:00
1ec2f5365c
update templ version
2024-06-14 22:35:20 +02:00
cee291a88f
move to service
2024-06-14 13:07:53 +02:00
f9066d3ecb
extract booking data
2024-06-14 12:27:55 +02:00
0db50b2268
add validation to login form
2024-06-08 13:23:43 +02:00
eef6c85fe3
add helper file
2024-06-08 12:27:05 +02:00
eda38b52a0
clean main function
2024-06-03 11:21:46 +02:00
8c4a1554ca
make origin a config change api sync url
2024-06-02 11:59:07 +02:00
c3c52cfbf7
reformat
2024-06-02 11:27:08 +02:00
ab52e6ec95
show cancel state on booking list
2024-06-02 11:07:42 +02:00
0a41989b01
cancel booking in db
2024-06-01 20:56:13 +02:00
04586832fa
add cancel flag on booking
2024-06-01 20:21:24 +02:00
9f28a53e63
improve login screen
2024-05-30 20:51:59 +02:00
0307ed8507
improve layout
2024-05-27 22:02:13 +02:00
5ee98a9709
improve layout
2024-05-27 20:35:06 +02:00
24b7cf1251
redirect with htmx
...
format
2024-05-25 19:03:33 +02:00
cc621582f9
read session to login
2024-05-25 16:53:49 +02:00
e1766812c4
session login
2024-05-25 16:38:25 +02:00
f66ada145a
use google signin button
2024-05-19 21:37:17 +02:00
37c5c9428e
Login page using templ
2024-05-19 21:29:23 +02:00
0924417a81
add google login
2024-05-19 21:04:44 +02:00
8f4f1638a4
add google login
2024-05-19 21:04:05 +02:00
c3b7f183ae
csrf protection
2024-05-19 08:24:31 +02:00
e673acb5c2
can store token after login
2024-05-10 23:01:50 +02:00
aa5ac4dace
add login page design
2024-05-10 13:00:21 +02:00
fee3f660ed
add login page
2024-05-10 12:45:08 +02:00
0e1877e592
fix html table
2024-04-21 22:14:39 +02:00
bb8ea5fe07
require all fields to create item
2024-04-20 21:53:33 +02:00
f2ed530b71
fix dev strings
2024-04-19 20:44:54 +02:00
32350c59b6
add logs
2024-04-19 20:36:59 +02:00
e1be7b3a88
cleanup
2024-04-19 15:01:09 +02:00
691b724189
set debug
2024-04-13 19:15:42 +02:00
efccace761
use getenv function
2024-04-13 19:04:57 +02:00
65423c176a
use std lib for time formatting
2024-04-12 17:31:24 +02:00
641605098f
clean up
2024-04-12 11:58:58 +02:00
71d5fbe21b
move request form to components
2024-04-12 11:54:43 +02:00
1ea82268bd
move layouts to own folder
2024-04-12 11:22:55 +02:00
0b059ac991
fix date on pdf report
2024-04-11 14:59:27 +02:00
28866ac5fb
update line item
2024-03-22 21:45:57 +01:00
b89a760aa3
get line form on click edit button
2024-03-22 15:19:55 +01:00
057f9991e9
replace the current line and don't show paid option when already paid
2024-03-22 14:42:47 +01:00
8db9e6ebb8
mark line item as paid
2024-03-22 12:13:22 +01:00
0215361e43
update booking form
2024-03-21 22:05:01 +01:00
83f2490870
change the pdf filenames
2024-03-20 17:15:52 +01:00
873e957078
format platform fees value
2024-03-20 17:03:18 +01:00
81647b7416
pdf report formatting
2024-03-20 15:53:27 +01:00
f3e266e502
replace unused constants with config values
2024-03-17 17:50:48 +01:00
faf5432b99
success page
2024-03-15 10:47:09 +01:00
bc2c7a7583
basic tracing middleware
2024-03-11 22:11:08 +01:00
08739d10ba
add favicons
2024-03-11 21:12:46 +01:00
e100f50def
setry transaction
2024-03-11 20:59:15 +01:00
f4870cbb4c
sentry
2024-03-11 20:41:45 +01:00
07f91e8f85
store booking request in D
2024-03-10 20:34:29 +01:00
fef6ba4954
refactor conditionals in template
2024-03-10 19:54:56 +01:00
8201b16f63
split booking form to component
2024-03-10 19:39:58 +01:00
89ffba3af3
persist form values on errors
2024-03-10 19:36:57 +01:00
de8dad8fa8
validate missing communication method
2024-03-10 15:40:25 +01:00
3cbddfa47d
validate time range
2024-03-10 15:30:49 +01:00
430ec69ae6
request booking layout
2024-03-10 11:22:34 +01:00
1daa3eb7b8
add request booking feature
2024-03-10 10:45:30 +01:00
3078bac637
func opt pattern
2024-03-03 21:40:17 +01:00
a7514e9419
inline return else
2024-03-03 20:47:12 +01:00
761719f1bf
rename packages to singular
2024-03-03 18:49:03 +01:00
56704a4062
improve landing page
2024-03-03 15:04:19 +01:00
96710d033a
new rport builder
2024-03-03 14:25:36 +01:00
575dc5ad7b
create report pdf
2024-03-03 14:03:23 +01:00
3d6d1474a2
add host details
2024-03-03 12:15:45 +01:00
fc0f9c574b
simplify error handler
2024-02-29 18:08:20 +01:00
24799bd2db
add booking fees total
2024-02-29 16:02:18 +01:00
da38546c3d
use booking.com logic for reports
2024-02-29 15:27:21 +01:00
788711e8c9
fix booking overview query
2024-02-28 22:56:04 +01:00
322f440716
fix the report query
2024-02-28 22:50:26 +01:00
3cf56095b7
add whatsapp button to report page
2024-02-28 22:50:12 +01:00
ea039dc428
improve the report sql query
2024-02-28 17:56:23 +01:00
68df2f06a2
add total to the booking overview page
2024-02-28 17:17:26 +01:00
b8c83b2d2d
add card only revenue
2024-02-28 10:44:53 +01:00
55ee7f8638
fix watchmode
2024-02-26 18:40:17 +01:00
584c30bdd4
add totals to the report
2024-02-26 18:36:30 +01:00
8ea51da144
add internal fee and profit
2024-02-26 17:41:28 +01:00
8c9886991e
fix booking total in report preview
2024-02-26 17:28:55 +01:00
d5654f808c
invoice number in place of db id
2024-02-26 17:17:29 +01:00
a31a1f6350
force to set pdf service
2024-02-25 00:17:49 +01:00
6a25589751
embed assets in binry
2024-02-25 00:08:11 +01:00
9bcd8e611f
fix line item object
2024-02-23 09:34:35 +01:00
37cadd8b20
add customer number seed
2024-02-22 22:08:46 +01:00
804d08caba
update readme
2024-02-21 22:38:08 +01:00
43ab1f59d2
complete data for pdf
2024-02-18 20:16:53 +01:00
ec853f6b66
send data to render pdf
2024-02-18 14:01:33 +01:00
b42fe35831
update css lib and UI
2024-02-17 13:56:51 +01:00
b237484b58
add links to useful websites
2024-02-17 13:37:23 +01:00
dd13e5f3ce
styling
2024-02-16 22:10:54 +01:00
032df19805
refactor server config
2024-02-16 20:36:46 +01:00
3dd36da114
create item in service
2024-02-16 18:20:15 +01:00
92f8085537
get booking by id
2024-02-16 18:11:25 +01:00
f3bf9b3caf
create booking service
2024-02-16 18:08:24 +01:00
dc00eb33a8
all booking to service
2024-02-16 15:50:07 +01:00
d2d0fc4337
split handlers
2024-02-16 15:42:58 +01:00
33ff39cdce
move booking folder
2024-02-16 15:37:43 +01:00
096e7fbf71
refactor report to booking service
2024-02-16 15:28:14 +01:00
bd09500dfc
auto month pre select
2024-02-16 13:13:49 +01:00
9bbd11588b
public handler
2024-02-16 13:07:18 +01:00
1f86cbf3ed
pdf service
2024-02-16 12:38:03 +01:00
72d0212316
refactor
2024-02-16 12:13:33 +01:00
3f6c5b6c99
can create booking invoice
2024-02-16 11:31:17 +01:00
8f15fd4cfd
fix numeric types and view model
2024-02-13 21:58:58 +01:00
7a4674cd14
basic report
2024-02-12 16:52:02 +01:00
68e7d540b5
use numbers and decimal data types for money
2024-02-12 15:08:34 +01:00
6bdecd33f5
compute report part 1
2024-02-12 14:48:28 +01:00
37ecf522ea
order bookings desc
2024-02-11 21:41:52 +01:00
172c5037b4
reports page
2024-02-10 21:10:33 +01:00
9f4af72c85
boost
2024-02-10 15:21:33 +01:00
5a1a7608f1
time pkg
2024-02-09 23:10:09 +01:00
a971aab58c
view model
2024-02-09 23:04:02 +01:00
5927e935ea
add list bookings page
2024-02-09 14:13:27 +01:00
9d3b0fec6d
use htmx to add line items
...
eliminates a db round trip
2024-02-09 12:06:29 +01:00
8968198045
add navigation items
2024-02-09 11:07:36 +01:00
80d7ff5d84
add line items
2024-02-05 21:53:24 +01:00
fbce6b6026
show booking page and line items
2024-02-04 21:52:08 +01:00
45c306c143
refactoring
2024-02-04 15:52:59 +01:00
24362b95eb
can create a booking
2024-02-04 15:24:16 +01:00
3b56f73a66
new booking form layout
2024-02-04 14:04:45 +01:00
88f4dd1e65
change app name and add assets
2024-02-04 14:04:30 +01:00
a1b7c5921b
initial project structure
2024-02-04 12:48:43 +01:00