/srv/irclogs.ubuntu.com/2016/06/06/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== athairus is now known as afkthairus
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== _salem is now known as salem_
ranguliIs there any information available about porting apps to Ubuntu Touch? I'd like to try and port some linux apps over and contribute but I need a starting point for reference.14:06
ranguliGUI apps, I should add.14:08
faenilmmm he left already :/14:48
om26ert1mp, hey! can you visually tell, which UI component this app is using for switching between tabs ?14:57
om26erhttp://i.imgur.com/t5R0I48.png14:57
=== chihchun_afk is now known as chihchun
dobeyom26er: music/calendar do some complicated stuff to do that, with uitk 1.3; best to read the source15:09
ahayzenom26er, that is the leadingActionBar of the PageHeader component15:09
mzanettikenvandine, https://bugs.launchpad.net/ubuntu/+source/content-hub/+bug/158954715:10
ubot5Launchpad bug 1589547 in content-hub (Ubuntu) "Add ContentType.Application" [Undecided,New]15:10
kenvandinemzanetti, thx!15:10
ahayzenom26er, which is set here http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/components/MusicPage.qml#L46 ... and comes from here ..http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/music-app.qml#L64015:11
om26erhey ahayzen, I am actually trying to fix autopilot tests for the music app, seems the App started using the new header and now switch_to_tab() helper does not work15:11
ahayzenuhoh15:11
ahayzenom26er, there should be a leadingAction helper for the header, if there is try using that15:12
ahayzenthose AP tests must have been broken for a while as that was changed ages ago ... *sigh* we need Jenkins back at full strength :-) or just migrate more test to QML Unit tests :-)15:14
ahayzenom26er, will probably be this you want https://developer.ubuntu.com/api/autopilot/python/1.5.0/ubuntuuitoolkit/#ubuntuuitoolkit.AppHeader.click_action_button15:16
om26erahayzen, yes, I am already there.15:17
om26erahayzen, we need to add object names for the action buttons to change tabs15:19
ahayzenom26er, yup, i don't mind looking at it if you want15:20
om26erahayzen, I can do that, but need to know how long does it normally take for a new release of the music app ?15:20
ahayzenom26er, usually once per otaish ... but both me and victor have been busy recently so it has stagnated...but i'm hoping for something in this next cycle15:21
ahayzengot a long list of stuff todo15:21
om26erahayzen, hmm, ok, I will push something temporary to lp:ubuntu-system-tests for now. And if you could add the object names that'd be great.15:22
ahayzenom26er, yeah, i don't mind create an MP to fix it in lp:music-app ... have you got a bug tracking this ?15:22
om26erahayzen, not yet.15:23
om26erahayzen, I peeked through the code and there is still reference to Tabs in lp:music-app is that needed ?15:23
ahayzenom26er, in which the autopilot or QML ?15:23
om26erahayzen, qml15:23
om26erin music.qml15:24
ahayzenhmmm potentially not, but it manages the show/hiding of tabs for us ... the problem we had is we migrated to the new PageHeader for the convergence stuff but are still using the old style Tabs15:24
ahayzenso this was the solution we came up with until the Tabs are standalone15:25
ahayzenas using the Tabs normal header... it will fill the width of the app15:25
ahayzenbut for convergence we needed the tab header to only be half width, so hence the solution15:26
ahayzenuntil there is a new Tab component, which i need to catch up with the sdk folks and see if it exists yet15:26
kenvandinemzanetti, branch proposed, but it probably won't land terribly soon15:26
t1mpom26er: hi. Sorry I didn't reply, I did not realize that my irc client disconnected..15:39
t1mplet me read the backlog15:39
t1mpahayzen, om26er: AppHeader.click_action_button is not the correct autopilot proxy to use for PageHeader.leadingActionBar15:41
t1mpthere is an ActionBar CPO, just select the PageHeader.leadingActionBar15:41
ahayzent1mp, ah cool thanks15:41
t1mpit has a click_action_button(action_objectName) function15:41
t1mpthat should do it. Also works for the actions in the right side of the header (but with trailingActionBar). It automatically clicks the action, or opens the overflow and then clicks the action.15:42
ahayzenyeah that's perfect15:42
ahayzenthanks t1mp :-)15:43
ahayzent1mp, also are there plans to change the Tabs to have a separate header component (so it doesn't span the width), or has it already been done, or is what we are doing the 'correct' way?15:44
t1mpahayzen: we don't plan a new Tabs component15:44
t1mpwhat do you need exactly? Maybe Sections is what you need?15:44
ahayzent1mp, for the music app in convergence... it has tabs on the main left side...and then a page header on the right15:45
ahayzenIIRC the tab's header filled the width15:45
ahayzenand yeah now sections scroll, i'd vote for that in converged mode anyway15:45
t1mpif the mainPage has a PageHeader with leadingActions, that should work fine15:45
ahayzenthis was just done a while back before those bugs were fixed15:45
ahayzent1mp, yup that is what we have done15:46
t1mpok. That is the recommended way if you want the overflow menu15:46
ahayzencool thanks, just wanted to check it hadn't changed :-)15:46
t1mpI think that's one of 3 options. 1) Overflow menu (with leadingActionBar), 2) Sections, 3) a ListView with ListItems on the main page to navigate15:46
ahayzenyeah if you had a *really* wide screen... a listview on the left could be fun15:47
ahayzensomething to play about with in the next iteration of convergence stuff anyway :-)15:47
t1mpyeah15:47
t1mpif you would implement the listview now with AdaptivePageLayout, that means in a 1-column view (on a phone in portrait mode) you only see the list when you are on the main page15:48
ahayzenyeah, but currently we don't use APL :-/15:49
ahayzenmainly due to when you push to the left side it resets the right15:49
ahayzenso then you can't have a static sidebar on the right side15:50
ahayzenbut in the future i expect we'll make the left side into APL or alike so we'll have three columns15:50
t1mpahayzen: yeah, the assumption is that the left side controls the right16:01
t1mpbut you could have APL on the left and a separate right-side column next to it16:02
t1mpI don't know if that would be handier than what you have now though :)16:03
ahayzent1mp, yeah that was what i was thinking, APL on left and then our right sidebar along side...but depends what we do16:06
=== afkthairus is now known as athairus
=== salem_ is now known as _salem

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!