]>
git.ktnx.net Git - mobile-ledger.git/log
Damyan Ivanov [Sat, 15 Dec 2018 19:34:58 +0000 (19:34 +0000)]
TransactionListViewModel: also load transaction accounts
this becomes rather slow and needs to be reworked
only the list of transaction IDs needs to be loaded initially, and the
details and the accounts need to be loaded on demand, per row
Damyan Ivanov [Sat, 15 Dec 2018 19:33:49 +0000 (19:33 +0000)]
+debug
Damyan Ivanov [Sat, 15 Dec 2018 19:33:31 +0000 (19:33 +0000)]
instance-wide dbg
Damyan Ivanov [Sat, 15 Dec 2018 19:33:13 +0000 (19:33 +0000)]
correctly get the last transaction list update option
the default needs to be written as 0L (long) so that the correct method is used
Damyan Ivanov [Sat, 15 Dec 2018 19:32:01 +0000 (19:32 +0000)]
refresh the view when the transaction list is updated
Damyan Ivanov [Sat, 15 Dec 2018 19:31:46 +0000 (19:31 +0000)]
nicer swiper spinner colors for the transaction list
Damyan Ivanov [Sat, 15 Dec 2018 13:38:45 +0000 (13:38 +0000)]
noise
Damyan Ivanov [Sat, 15 Dec 2018 13:38:40 +0000 (13:38 +0000)]
test for the digest utility module
Damyan Ivanov [Sat, 15 Dec 2018 13:38:27 +0000 (13:38 +0000)]
working transaction list retrieval
Damyan Ivanov [Sat, 15 Dec 2018 13:37:40 +0000 (13:37 +0000)]
whitespace
Damyan Ivanov [Fri, 14 Dec 2018 20:56:52 +0000 (20:56 +0000)]
start the Transaction list activity not really a thing yet
Damyan Ivanov [Fri, 14 Dec 2018 20:56:35 +0000 (20:56 +0000)]
separate packages for the different aspects of the application
Damyan Ivanov [Fri, 14 Dec 2018 18:26:38 +0000 (18:26 +0000)]
machinery for retrieving transaction journal from hledger-web
Damyan Ivanov [Fri, 14 Dec 2018 17:22:54 +0000 (17:22 +0000)]
boilerplate typo
Damyan Ivanov [Fri, 14 Dec 2018 17:18:58 +0000 (17:18 +0000)]
ignore a settings file
Damyan Ivanov [Fri, 14 Dec 2018 17:17:52 +0000 (17:17 +0000)]
Lincese boilerplate for google-derived icons
Damyan Ivanov [Fri, 14 Dec 2018 05:58:37 +0000 (05:58 +0000)]
proper update of accounts in DB keeping existing settings
insert or replace is more like insert or delete and insert which destroys
the hidden flag
Damyan Ivanov [Fri, 14 Dec 2018 05:58:28 +0000 (05:58 +0000)]
add license boilerplates for authored content
Damyan Ivanov [Fri, 14 Dec 2018 05:58:00 +0000 (05:58 +0000)]
better account starr-ing control
Damyan Ivanov [Thu, 13 Dec 2018 20:59:51 +0000 (20:59 +0000)]
hide new transaction fab on scroll
Damyan Ivanov [Thu, 13 Dec 2018 20:54:37 +0000 (20:54 +0000)]
rewording and translations
Damyan Ivanov [Thu, 13 Dec 2018 20:44:26 +0000 (20:44 +0000)]
removed unused stuff
Damyan Ivanov [Thu, 13 Dec 2018 20:44:08 +0000 (20:44 +0000)]
major rework of the async stuff, view model, pull-to-refresh account list
Damyan Ivanov [Thu, 13 Dec 2018 05:35:13 +0000 (05:35 +0000)]
migrate to a proper db helper class, sub-classed from SQLiteOpenHelper
a small step from the quest of migrating to a ViewModel architecture,
avoiding context leaks
Damyan Ivanov [Tue, 11 Dec 2018 20:50:11 +0000 (20:50 +0000)]
yay! locale-specific formatting groups
Damyan Ivanov [Mon, 10 Dec 2018 21:35:22 +0000 (21:35 +0000)]
hide accounts, shown when a global preference is checked
Damyan Ivanov [Mon, 10 Dec 2018 20:20:00 +0000 (20:20 +0000)]
account summary: account rows with minimum height of an action bar
Damyan Ivanov [Sun, 9 Dec 2018 19:31:27 +0000 (19:31 +0000)]
new transaction: make text input fields single-line and use 'Next' action button
can't make it multi-line (for accounts with long names) and still
have 'Next' on the action button and not 'Enter'
Damyan Ivanov [Sun, 9 Dec 2018 18:32:32 +0000 (18:32 +0000)]
some code analysys noise
Damyan Ivanov [Sun, 9 Dec 2018 18:31:22 +0000 (18:31 +0000)]
lower minSdkVersion from 23 to 22
Damyan Ivanov [Sun, 9 Dec 2018 17:54:28 +0000 (17:54 +0000)]
more check for suitability of the transaction
it seems hledger-web accepts everything and all the checks it has are
in the web front-end
Damyan Ivanov [Sun, 9 Dec 2018 17:52:32 +0000 (17:52 +0000)]
focus away when removing the row with the focus
Damyan Ivanov [Sun, 9 Dec 2018 17:13:00 +0000 (17:13 +0000)]
toggle_all_editting(): include the date and the description
Damyan Ivanov [Sun, 9 Dec 2018 17:12:38 +0000 (17:12 +0000)]
focus on the description if it is empty, when the activity is (re-)started
Damyan Ivanov [Sun, 9 Dec 2018 15:35:38 +0000 (15:35 +0000)]
check suitability for submission and recalculate default hanging amount when a row is removed
Damyan Ivanov [Sun, 9 Dec 2018 15:34:52 +0000 (15:34 +0000)]
fix the forward navigation between elements in landscape mode also for the dynamically added/removed rows
Damyan Ivanov [Sun, 9 Dec 2018 13:48:02 +0000 (13:48 +0000)]
amount height should match the parent height
causing the base line to go at the bottom of the account name is longer
Damyan Ivanov [Sun, 9 Dec 2018 13:47:15 +0000 (13:47 +0000)]
yet another attempt to fix the forward navigation between elements in landscape mode
seems to work for the initial entries
Damyan Ivanov [Sun, 9 Dec 2018 13:31:36 +0000 (13:31 +0000)]
reset_form: focus the description before removing extra rows potentially containing focused elements
Damyan Ivanov [Sun, 9 Dec 2018 13:14:03 +0000 (13:14 +0000)]
Revert "new transaction: remove the xml-driven rows and populate by hand"
This reverts commit
37d9d3d9d02714ba64414492beeffb22e2dea267.
Damyan Ivanov [Sun, 9 Dec 2018 13:05:02 +0000 (13:05 +0000)]
make the Reset transaction menu item menu-only
letting it appear on the action bar is a bit confusing because it sits
right next to the Save item and it is too easy to click the wrong thing
Damyan Ivanov [Sun, 9 Dec 2018 13:03:53 +0000 (13:03 +0000)]
shorter account summary title
Damyan Ivanov [Sun, 9 Dec 2018 12:58:54 +0000 (12:58 +0000)]
new transction/submit: when no date is entered, use today
Damyan Ivanov [Sun, 9 Dec 2018 12:57:43 +0000 (12:57 +0000)]
check submit suitability upon changes in the description
now that the description is mandatory
Damyan Ivanov [Sun, 9 Dec 2018 12:56:51 +0000 (12:56 +0000)]
new transaction: new menu item for resetting the activity
Damyan Ivanov [Sun, 9 Dec 2018 12:55:03 +0000 (12:55 +0000)]
extend the transaction suitability checks
Damyan Ivanov [Sun, 9 Dec 2018 12:52:32 +0000 (12:52 +0000)]
new transaction: remove the xml-driven rows and populate by hand
the by-hand method is used on demand anyway and should work and set all
the propertied of the rows/fields
the xml-driven stuff is still useful during development for figuring out
what is the purpose of each property
Damyan Ivanov [Sun, 9 Dec 2018 12:47:39 +0000 (12:47 +0000)]
pop-up the date picked dialog as soon as the date field receives focus
Damyan Ivanov [Sun, 9 Dec 2018 12:45:02 +0000 (12:45 +0000)]
when a date is picked, focus the transaction description
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