]>
git.ktnx.net Git - mobile-ledger.git/log
Damyan Ivanov [Sun, 9 Dec 2018 11:59:45 +0000 (11:59 +0000)]
run check_transaction_submittable when local menu is created
that method enables/disables the save transaction menu item
Damyan Ivanov [Sun, 9 Dec 2018 11:57:45 +0000 (11:57 +0000)]
improved layout on multi-line account names
Damyan Ivanov [Sun, 9 Dec 2018 11:13:34 +0000 (11:13 +0000)]
remove two done TODO items
Damyan Ivanov [Sat, 8 Dec 2018 19:22:04 +0000 (19:22 +0000)]
fill *_upper when updating account names and transaction descriptions
Damyan Ivanov [Sat, 8 Dec 2018 19:17:04 +0000 (19:17 +0000)]
handle exceptions when saving transaction
content errors are reported badly by hledger-web - via a message <div>
in the journal - 2MB download :(
Damyan Ivanov [Sat, 8 Dec 2018 18:25:12 +0000 (18:25 +0000)]
better ordering of auto-completion results
Damyan Ivanov [Sat, 8 Dec 2018 17:21:56 +0000 (17:21 +0000)]
for some reason, on bad http auth data the stack throws NotFoundException
Damyan Ivanov [Sat, 8 Dec 2018 17:19:19 +0000 (17:19 +0000)]
auto-completion for the transaction description
Damyan Ivanov [Sat, 8 Dec 2018 15:07:07 +0000 (15:07 +0000)]
store transaction description history upon database refresh
Damyan Ivanov [Sat, 8 Dec 2018 12:18:07 +0000 (12:18 +0000)]
pkg-private methods
Damyan Ivanov [Sat, 8 Dec 2018 12:17:19 +0000 (12:17 +0000)]
maybe better network error reporting
Damyan Ivanov [Sat, 8 Dec 2018 12:12:24 +0000 (12:12 +0000)]
move DB structure initialization in a sql_0.sql script
this avoids several "create foo if not exists" statements executed on
each start
Damyan Ivanov [Sat, 8 Dec 2018 11:38:00 +0000 (11:38 +0000)]
assert → if + throw
Damyan Ivanov [Sat, 8 Dec 2018 11:37:44 +0000 (11:37 +0000)]
the menu item reference may not be there, yet
Damyan Ivanov [Sat, 8 Dec 2018 11:36:48 +0000 (11:36 +0000)]
unified transition into/out of the new transaction activity
special treatment of the Back and Up buttons
Damyan Ivanov [Sat, 8 Dec 2018 08:15:26 +0000 (08:15 +0000)]
note the 'Account summary' item in the navigation drawer when the Account summary starts
Damyan Ivanov [Sat, 8 Dec 2018 07:40:33 +0000 (07:40 +0000)]
rework account symmary activity using linear layouts
tables are so 20th century and perhaps a bit slower
Damyan Ivanov [Fri, 7 Dec 2018 19:06:23 +0000 (19:06 +0000)]
convert the show hidden accounts item to a switch
Damyan Ivanov [Fri, 7 Dec 2018 19:05:03 +0000 (19:05 +0000)]
Lay the ground for hiding accounts from the summary
hook context menu listener, add menu item to show hidden accounts
Damyan Ivanov [Fri, 7 Dec 2018 18:54:08 +0000 (18:54 +0000)]
show plain account names in the summary and indent the sub-accounts
Damyan Ivanov [Fri, 7 Dec 2018 18:47:57 +0000 (18:47 +0000)]
center vertically the text in the account row
Damyan Ivanov [Fri, 7 Dec 2018 18:41:52 +0000 (18:41 +0000)]
accounts summary: pad the row, not the table
Damyan Ivanov [Fri, 7 Dec 2018 18:39:49 +0000 (18:39 +0000)]
rename to better reflect purpose
Damyan Ivanov [Fri, 7 Dec 2018 18:37:58 +0000 (18:37 +0000)]
update accounts table upon start
Damyan Ivanov [Fri, 7 Dec 2018 18:37:52 +0000 (18:37 +0000)]
update accounts table visual upon refreshilg the account data from the backend
Damyan Ivanov [Fri, 7 Dec 2018 05:56:44 +0000 (05:56 +0000)]
use the global reference instead of passing it to execute()
Damyan Ivanov [Fri, 7 Dec 2018 05:56:34 +0000 (05:56 +0000)]
account_update: replace delete/insert with three stage mark for removal, update/insert, remove marked process
not to remove/insert all the rows every time
Damyan Ivanov [Fri, 7 Dec 2018 05:56:17 +0000 (05:56 +0000)]
assert there is no transaction running
Damyan Ivanov [Fri, 7 Dec 2018 05:56:15 +0000 (05:56 +0000)]
update_accounts: put all execSQL in the try{} block
Damyan Ivanov [Fri, 7 Dec 2018 05:55:50 +0000 (05:55 +0000)]
fix a hanging db transaction wen applying DB revisions
Damyan Ivanov [Fri, 7 Dec 2018 05:55:43 +0000 (05:55 +0000)]
fix snack-bar showing in case of account update errors
Damyan Ivanov [Fri, 7 Dec 2018 05:42:40 +0000 (05:42 +0000)]
first DB revision! add a keep flag to accounts/values to ease synchronization
Damyan Ivanov [Fri, 7 Dec 2018 05:42:34 +0000 (05:42 +0000)]
automativ DB revision application during startup
Damyan Ivanov [Fri, 7 Dec 2018 05:42:31 +0000 (05:42 +0000)]
working DB revision application
Damyan Ivanov [Fri, 7 Dec 2018 05:41:39 +0000 (05:41 +0000)]
noise
Damyan Ivanov [Fri, 7 Dec 2018 05:29:20 +0000 (05:29 +0000)]
account amounts parser improvements
allow spaces before numbers, allow sign
detect row end -- avoids parsing the total balance as part of last
account's data
Damyan Ivanov [Thu, 6 Dec 2018 21:29:36 +0000 (21:29 +0000)]
fill account balance while storing account data
Damyan Ivanov [Thu, 6 Dec 2018 21:29:31 +0000 (21:29 +0000)]
table for storing account balance
Damyan Ivanov [Thu, 6 Dec 2018 21:28:45 +0000 (21:28 +0000)]
Account summary: menu item for manually refreshing the data
Damyan Ivanov [Thu, 6 Dec 2018 21:05:36 +0000 (21:05 +0000)]
home is account summary, latest transactions is a new item
the account summary has some boilerplate views for now
Damyan Ivanov [Thu, 6 Dec 2018 20:51:43 +0000 (20:51 +0000)]
update account list once every 24 hours
Damyan Ivanov [Thu, 6 Dec 2018 20:41:03 +0000 (20:41 +0000)]
(yet) untested/unused methods for applying incremental revisions to the database structure
Damyan Ivanov [Thu, 6 Dec 2018 20:40:50 +0000 (20:40 +0000)]
methods for getting/setting options stored in the database
Damyan Ivanov [Thu, 6 Dec 2018 20:39:22 +0000 (20:39 +0000)]
table for options stored in the database
Damyan Ivanov [Thu, 6 Dec 2018 20:37:55 +0000 (20:37 +0000)]
whitespace
Damyan Ivanov [Thu, 6 Dec 2018 20:37:50 +0000 (20:37 +0000)]
no need these methods to be public
Damyan Ivanov [Thu, 6 Dec 2018 20:37:00 +0000 (20:37 +0000)]
asyncTask: keep reference to the resource manager instead the activity
not that it helps decoupling much
Damyan Ivanov [Thu, 6 Dec 2018 20:35:05 +0000 (20:35 +0000)]
account loading progress - gone by default
otherwise it may pop in when returning in the activity and no db refresh
is done
Damyan Ivanov [Thu, 6 Dec 2018 20:34:43 +0000 (20:34 +0000)]
noise
Damyan Ivanov [Thu, 6 Dec 2018 18:29:36 +0000 (18:29 +0000)]
empty catch → print the stack trace
Damyan Ivanov [Thu, 6 Dec 2018 18:29:30 +0000 (18:29 +0000)]
drop unused animation xml
Damyan Ivanov [Thu, 6 Dec 2018 18:24:23 +0000 (18:24 +0000)]
abandon the new transaction FAB and use a menu item
apart of the problems with the check-mark not appearing in submits after
the first, the button stays on the screen and obstructs the access to
the bottom account amounts
Damyan Ivanov [Thu, 6 Dec 2018 18:10:09 +0000 (18:10 +0000)]
disable account input during submit
Damyan Ivanov [Thu, 6 Dec 2018 18:06:37 +0000 (18:06 +0000)]
automatic addition of empty account rows
Damyan Ivanov [Thu, 6 Dec 2018 18:02:12 +0000 (18:02 +0000)]
hide submit fab when there is no enough account data
Damyan Ivanov [Thu, 6 Dec 2018 18:01:38 +0000 (18:01 +0000)]
use clip-art check icon, and show it as soon as the submit completes
Damyan Ivanov [Thu, 6 Dec 2018 05:30:20 +0000 (05:30 +0000)]
abort saving transaction after the second attempt
the first may fail because of a missing session or a missing or wrong
token, but the second must succeed if everything is alright
Damyan Ivanov [Thu, 6 Dec 2018 05:28:50 +0000 (05:28 +0000)]
translation in Bulgarian
Damyan Ivanov [Wed, 5 Dec 2018 21:14:26 +0000 (21:14 +0000)]
animate save transaction button icon change
Damyan Ivanov [Wed, 5 Dec 2018 21:02:27 +0000 (21:02 +0000)]
non-animation change of save transaction button
upon success the image is changed to a check mark, and after
1,5 seconds - reverted back to the disk
Damyan Ivanov [Wed, 5 Dec 2018 20:53:20 +0000 (20:53 +0000)]
yet another .idea thing (code style config == default)
Damyan Ivanov [Wed, 5 Dec 2018 20:53:10 +0000 (20:53 +0000)]
own check icon
Damyan Ivanov [Wed, 5 Dec 2018 20:52:53 +0000 (20:52 +0000)]
save icon from android studio clipart (Apache 2.0 license)
Damyan Ivanov [Wed, 5 Dec 2018 20:39:22 +0000 (20:39 +0000)]
progress bar around the save transaction floating action button
Damyan Ivanov [Tue, 4 Dec 2018 21:19:36 +0000 (21:19 +0000)]
add more TODO items
Damyan Ivanov [Tue, 4 Dec 2018 21:19:11 +0000 (21:19 +0000)]
getActivity() may return null
Damyan Ivanov [Tue, 4 Dec 2018 21:19:02 +0000 (21:19 +0000)]
quicker date selection on Android O
Damyan Ivanov [Tue, 4 Dec 2018 21:16:11 +0000 (21:16 +0000)]
change amount hint to "0.00" -- shorter and still clear
Damyan Ivanov [Mon, 3 Dec 2018 21:25:16 +0000 (21:25 +0000)]
add TODO items
Damyan Ivanov [Mon, 3 Dec 2018 21:22:00 +0000 (21:22 +0000)]
working addition of new transactions
Damyan Ivanov [Mon, 3 Dec 2018 21:21:52 +0000 (21:21 +0000)]
working and surprisingly quick retrieval of existing account names
Damyan Ivanov [Mon, 3 Dec 2018 21:21:37 +0000 (21:21 +0000)]
two transaction accounts by default
with the possibility to add more via the menu
Damyan Ivanov [Mon, 3 Dec 2018 21:21:25 +0000 (21:21 +0000)]
helper class for task callbacks
Damyan Ivanov [Mon, 3 Dec 2018 21:21:19 +0000 (21:21 +0000)]
AsyncTask class for saving the new transaction
Damyan Ivanov [Mon, 3 Dec 2018 21:21:06 +0000 (21:21 +0000)]
network helper class
Damyan Ivanov [Mon, 3 Dec 2018 21:20:59 +0000 (21:20 +0000)]
Classes describing one transaction with its accounts
Damyan Ivanov [Mon, 3 Dec 2018 21:20:49 +0000 (21:20 +0000)]
Transaction date → date
it is obvious that we are dealing with a transaction, and the field
is not that big
Damyan Ivanov [Mon, 3 Dec 2018 21:20:34 +0000 (21:20 +0000)]
helper class for constructing urlencoded form data
Damyan Ivanov [Mon, 3 Dec 2018 21:20:21 +0000 (21:20 +0000)]
unnecessary file, will override stiff in the activity
Damyan Ivanov [Sun, 2 Dec 2018 12:21:29 +0000 (12:21 +0000)]
show progress while loading accounts
Damyan Ivanov [Sun, 2 Dec 2018 11:00:15 +0000 (11:00 +0000)]
build tools 28.0.3, Java 1.8
Damyan Ivanov [Sun, 2 Dec 2018 10:59:32 +0000 (10:59 +0000)]
preference changed listener
Damyan Ivanov [Sun, 2 Dec 2018 10:58:55 +0000 (10:58 +0000)]
network error strings
Damyan Ivanov [Sun, 2 Dec 2018 10:58:43 +0000 (10:58 +0000)]
dynamic auto-completion of account names, fancy!!!
Damyan Ivanov [Sun, 2 Dec 2018 10:57:35 +0000 (10:57 +0000)]
refresh account list upon start
in the future this should be done on preferences change or on request
Damyan Ivanov [Sun, 2 Dec 2018 10:54:34 +0000 (10:54 +0000)]
helper class for DB stuff
Damyan Ivanov [Fri, 30 Nov 2018 21:04:38 +0000 (21:04 +0000)]
transaction save button with a disk icon
Damyan Ivanov [Fri, 30 Nov 2018 21:04:32 +0000 (21:04 +0000)]
fixed min amount width of 40dp (abt. 6 digits)
Damyan Ivanov [Fri, 30 Nov 2018 21:04:15 +0000 (21:04 +0000)]
remove account lines by swiping left
Damyan Ivanov [Fri, 30 Nov 2018 21:03:30 +0000 (21:03 +0000)]
class for swiping
Damyan Ivanov [Fri, 30 Nov 2018 19:55:57 +0000 (19:55 +0000)]
remove redundant type-cast
Damyan Ivanov [Fri, 30 Nov 2018 18:55:44 +0000 (18:55 +0000)]
incomplete attempt to set the Tab order
Damyan Ivanov [Fri, 30 Nov 2018 18:52:40 +0000 (18:52 +0000)]
focus the account name cell after adding the row
Damyan Ivanov [Fri, 30 Nov 2018 18:46:22 +0000 (18:46 +0000)]
dynamicaly add new table rows to the new transaction accounts list
Damyan Ivanov [Fri, 30 Nov 2018 18:46:07 +0000 (18:46 +0000)]
rename a constant
Damyan Ivanov [Fri, 30 Nov 2018 18:25:16 +0000 (18:25 +0000)]
use a table for account rows
Damyan Ivanov [Fri, 30 Nov 2018 18:16:06 +0000 (18:16 +0000)]
add another account row bu default
Damyan Ivanov [Fri, 30 Nov 2018 18:15:29 +0000 (18:15 +0000)]
replace add account floating action button with a menu item
Damyan Ivanov [Fri, 30 Nov 2018 17:56:31 +0000 (17:56 +0000)]
month is counted from 0, it seems
Damyan Ivanov [Fri, 30 Nov 2018 17:45:08 +0000 (17:45 +0000)]
another .idea file