Commit Graph

75 Commits

Author SHA1 Message Date
Dan Bungert c08fdab2f8 one-off format of long lines with black 2023-07-25 15:27:49 -06:00
Dan Bungert 34d40643ad format with black + isort 2023-07-25 15:27:42 -06:00
Michael Hudson-Doyle c0438b44ca fix "make lint" when run with the new pycodestyle/flake8 2023-03-23 16:38:35 +13:00
Olivier Gayot 812bba1de1 Use logger names consistent with directory structure
Refreshed name of loggers to make them consistent with the directory
structure.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-02-25 17:35:45 +01:00
Michael Hudson-Doyle 164c575f2a use snapd apis to check for a user and (minimally) handle a managed system with no owner 2020-07-03 15:55:07 +12:00
Dimitri John Ledkov 6de8970560 console_conf: fix showing error messages, when snap create-user fails 2020-05-18 12:42:14 +01:00
Maciej Borzecki 9293d85638 console_conf/ui/views: simplify sorting actions, tweaks
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-08 12:56:18 +02:00
Maciej Borzecki 8ebc8e0580 console_conf/ui/views/chooser: tweak generic action summary
Thanks @degville!

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-08 11:57:24 +02:00
Maciej Borzecki 3967329832 console_conf/ui/views/chooser: use lowercase action title in canned summary
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-08 11:57:00 +02:00
Maciej Borzecki a957c5b889 console_conf/chooser: UI tweaks
- drop the ABORT button
- introduce BACK button, goes back to the correct previous screen
- sort actions in the order of run -> recover -> install -> rest
- capitalize action title strings
- simplify current model actions screen
- user hints in the confirm screen for well known modes
  - generic hint for unknown modes

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-07 17:38:45 +02:00
Maciej Borzecki d3ac0d6f36 console_conf/chooser: use model display name in top banner
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-07 17:36:47 +02:00
Dimitri John Ledkov 590b4b8f23
Merge pull request #655 from bboozzoo/bboozzoo/uc20-recovery-chooser
console_conf: implement UC20 recovery chooser
2020-04-01 22:05:30 +01:00
Maciej Borzecki 95b65d1caf console_conf/ui/views: add screen with actions of the current system
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki 6ae155faf7 console_conf/ui/views: sort recovery systems, indicate which is the current one
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:00:34 +02:00
Dimitri John Ledkov dffed63df5 consoleconf: focus on entry field in identy. 2020-04-01 14:32:55 +01:00
Maciej Borzecki 5504a9aa91 console_conf/views: add recovery chooser views
Add views used by recovery chooser:
- welcome - recovery chooser specific message
- chooser - list of seed systems and actions
- confirm - where user confirms the selected action

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Dimitri John Ledkov dfab5563c1 console_conf: unbreak LoginView 2019-08-08 15:02:39 +01:00
Dimitri John Ledkov 290c26d244 consoleconf: rewrite identity page. 2019-08-07 21:35:35 +01:00
Dimitri John Ledkov a4c7e36408 consoleconf: fix welcome header/excerpt 2019-08-07 21:26:14 +01:00
Ryan Harper 103fc1edda pep8 fixes for console_conf/ui/views/identity.py 2018-05-24 16:59:31 -05:00
Ryan Harper b1d9581b9a pep8 fixes for console_conf/ui/views/login.py 2018-05-24 16:59:31 -05:00
Ryan Harper a06c15bd28 pep8 fixes for console_conf/ui/views/welcome.py 2018-05-24 16:59:31 -05:00
Ryan Harper a0bf68f3c4 pyflakes3 fixes
Add and enable pyflakes3 on console_conf, subiquity, subiquitycore and tests.
Replace NOQA markers with __all__ declarations for module imports.
Replace some obvious deadcode that voilates flake8, separate pass for removing
dead code rather than commenting will be handled later.
2018-05-24 16:51:51 -05:00
Ryan Harper 3c9b2e28c7 Drop commented out / dead code 2018-05-23 18:53:12 -05:00
Michael Hudson-Doyle 0273a3d110 "modernize" console-conf views 2018-03-08 18:51:39 +13:00
Michael Hudson-Doyle 1d4d5021ec fix button creation 2018-03-08 18:06:07 +13:00
Michael Hudson-Doyle 386d44ee14 add ConsoleConf model and some other bits to get to point of starting the UI up 2018-03-08 16:39:03 +13:00
Dimitri John Ledkov 648d7d4086
Buttons 2017-09-18 14:01:11 +01:00
Michael Hudson-Doyle 395b30451e stop being clever in handling of escape in network screens 2017-04-05 14:36:46 +12:00
Michael Hudson-Doyle e5847fb863 rewrite login screen per feedback 2017-02-17 14:43:16 +13:00
Michael Hudson-Doyle 19ec2b5c41 only suggest the user logs in via scope global addresses 2017-02-17 14:21:54 +13:00
Michael Hudson-Doyle f44c37e0a3 fix cancel button in console-conf identity view 2017-02-17 14:18:58 +13:00
Michael Hudson-Doyle ce2bdae0bd simplify something now i know urwid a bit better 2017-02-14 15:22:43 +13:00
Michael Hudson-Doyle a6954b49e2 the various editor classes' caption argument is optional now 2017-02-14 15:19:56 +13:00
Michael Hudson-Doyle f0eb2cdf70 make Color.button etc apply the corresponding focus map
about 1e6 times more readable
2017-02-08 15:37:18 +13:00
Michael Hudson-Doyle 3c5ac3140f use new containers everywhere 2017-02-03 14:21:39 +13:00
Michael Hudson-Doyle 24c915ff17 simplify console_conf.controllers.WelcomeController 2017-01-17 11:34:32 +13:00
Michael Hudson-Doyle ee51fda2f5 console_conf.views.welcome.WelcomeView no longer inherits from CoreWelcomeView 2017-01-17 11:34:32 +13:00
Michael Hudson-Doyle 1317c8dd8a explain how to get an account
For LP: #1639799
2016-11-10 13:47:15 +13:00
Michael Hudson-Doyle 1862be5ef0 show fingerprints on login view 2016-11-10 13:38:09 +13:00
Michael Hudson-Doyle 82b11dbd69 reorganize the network model and make the UI a bit more consistent
The main change here is to separate the state a network device is in and the
state we want it to be in. So it now parses the netplan config on a system as
well as probing the state of via probert.

The UI is changed to make this distintion too, and be IMO a bit more
consistent. Somewhere in this I've removed the display of whether the
probed address was found via DHCP or not, possibly that should be put
back if it doesn't make things too cluttered.

In dry-run mode, we now still write the config and feed it to netplan, but
in a way that doesn't affect the system we are running it on.
2016-11-07 15:15:46 +13:00
Michael Hudson-Doyle f603207d94 remove most trivial use of signals from console-conf's flow 2016-10-11 12:48:28 +13:00
Michael Hudson-Doyle e348207597 Remove most use of signals from welcome and network views. 2016-10-10 16:47:42 +13:00
Michael Hudson-Doyle 2f8c1aa5cf move logic from identity/login views into identity controller
This was what I wanted to do before I got distracted by the other things.
2016-09-27 21:56:48 +13:00
Michael Hudson-Doyle d9095336e5 do not have controllers (or view code!!) know the order of the screens 2016-09-27 21:35:47 +13:00
Michael Hudson-Doyle 051c41cf7b Mark firstboot complete as soon as we've called create-user
Otherwish if you reboot while still on the final screen you end up in
console-conf again.
2016-09-16 14:41:56 +12:00
Mathieu Trudel-Lapierre e92f184d40 Merge pull request #156 from CanonicalLtd/mwhudson/no-escape
prevent escape from leaving the finish screen
2016-09-09 14:49:35 -04:00
Michael Hudson-Doyle 96901f667e Enter now submits the email address on the identity view.
See https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1621304
2016-09-09 16:09:38 +12:00
Michael Hudson-Doyle 663535c287 prevent escape from leaving the finish screen
See https://bugs.launchpad.net/snappy/+bug/1621339
2016-09-09 15:58:11 +12:00
Michael Hudson-Doyle 2a540e11c1 fix passing username to welcome view 2016-08-17 20:54:00 +12:00