Commit Graph

682 Commits

Author SHA1 Message Date
Willem Melching 3ad659a211 nav: truncate favorite length
old-commit-hash: 240214afc0531cf9611b462deca8033c4172ea91
2021-06-30 16:14:12 +02:00
Dean Lee 476a5e2e05 qt/util.h: move implementation to source file (#21412)
* Move implementation to source file

* space

* include the headers

* mv all to cc

* space
old-commit-hash: f90a3eeb20d5222a949239a3e2a511d45e7e742f
2021-06-29 14:05:37 -07:00
Willem Melching 2db1d4589e nav: show star for favorites (#21434)
old-commit-hash: 2de4c09e6284e14885ac02c83721163d86138111
2021-06-29 15:16:16 +02:00
Willem Melching 9980d08915 nav: use mapChanged signal alongside isFullyLoaded()
old-commit-hash: f73dc9f19c81539312743376bd21142bd28b47e2
2021-06-29 15:13:23 +02:00
Willem Melching 492083a4a8 nav: pull next location while onroad (#21421)
old-commit-hash: 60cc07c62ac5dd8a5cd63312758353695cf040de
2021-06-29 11:08:37 +02:00
Adeeb Shihadeh e56a6919bd fixup release build (#21430)
* fixup release3 build

* works on pc

* install release3

* push dashcam

* only import on tici

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49d96f0acc5d6675357b5f9bed3958ada48c0874
2021-06-28 14:30:44 -07:00
sshane f3f9c7b5b9 Quicker refreshing and use connection signals (#21408)
* Quicker refreshing and use connection signals

* Android remembers connections with incorrect passwords

* forget network on password incorrect

* knownConnections is already filled here
old-commit-hash: 01773c11f0be4578f1f14c344efa9789a499fd57
2021-06-28 13:26:24 -07:00
sshane 255f39a2c2 Fix connect button race condition (#21406)
old-commit-hash: 0a603d2d21489c9bc55903ebf635ad5ab73ab1fb
2021-06-25 14:30:04 -07:00
Willem Melching fba42aab80 nav: show recents (#21405)
* add recent buttons

* remove static request

* layout

* recent doesn't have to be a favorite

* work

* spacing

* spacing

* no recents

* query next

* not null

* this needs to live here

* less spacing between items
old-commit-hash: 9f98a3e44f3b5b70d7e420f9e51f737bb854266d
2021-06-25 16:26:02 +02:00
sshane e2eddf74ee keyboard: backspace key repeat (#21395)
old-commit-hash: 6402edb8985f8188ff89e6944af2bc308fb18a96
2021-06-24 21:40:51 -07:00
Willem Melching ff0c7a27f2 nav: change map loaded detection (#21397)
old-commit-hash: 4c9aba2dd542df7eef4f396e7c11f2e51852ad73
2021-06-24 14:56:38 +02:00
Adeeb Shihadeh 784601c8e1 remove lte toggle (#21392)
* remove lte toggle

* little more
old-commit-hash: a420c7ad50eec716e53537957b1439b2ce44d73e
2021-06-23 17:01:17 -07:00
Adeeb Shihadeh 28c60666ff tici: differentiate ethernet and tethering (#21391)
* differentiate ethernet

* fix tethering

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 050a89e5981a1cf48abec38c9c7a362092e7dad2
2021-06-23 15:55:51 -07:00
sshane 1a0ebedad0 Support WPS with no security (#21372)
* Support WPA with no security

* clean up

* add logging
old-commit-hash: cd5c931461bdfacf7dd442d162e98bd3dc72e976
2021-06-23 14:53:11 -07:00
Willem Melching 3aae7b5fc3 nav: simplify segment transition (#21383)
old-commit-hash: f32ca73724243ffaca59d8c4ef6fa46ff29fed38
2021-06-23 15:00:32 +02:00
Willem Melching 16143bef1b nav: cleanup errors and wait for map to be loaded (#21381)
* Cleanup errors

* prevent flicker
old-commit-hash: 7e6a9ce9a5c311940a9553dfef44cecd4db852c4
2021-06-23 14:33:27 +02:00
Dean Lee f883cfec39 DevicePanel: set specific stylesheet for reboot & poweroff buttons (#21364)
* set specific stylesheet for reboot&poweroff buttons

* remove hack

* fix css in network panel
old-commit-hash: c9d4dfe99fbc49e5db16292200e7daef3295dfb3
2021-06-22 13:24:55 -07:00
Willem Melching 2f4257c7e3 nav: map color match offroad color scheme
old-commit-hash: febdc39d2d15eef790e76580023bda24be647e2e
2021-06-22 14:57:57 +02:00
Willem Melching 1a9706361f nav: route color match explorer
old-commit-hash: a5f65c12f7a1f991cd633850f5a30de88eaf02f7
2021-06-22 13:34:47 +02:00
Willem Melching dc19c670b6 nav: home/work shortcuts (#21276)
* add home/work widgets

* remove todo

* set contents from response

* turn into buttons

* add navigate button

* fix includes

* close settings on nav press

* close sidebar when closing settings

* use live api endpoint

* larger fonts

* more text fits

* only place name

* remove static response

* properly clear
old-commit-hash: c21ea8b50653bfb3b4c93e7042d7ffa62abfcf2a
2021-06-22 13:25:22 +02:00
Willem Melching 1f8a63af7e nav: give word wrapped widgets a fixed width
old-commit-hash: a5112bfb2e40749e467a405128b7305110e4344c
2021-06-22 13:24:11 +02:00
Willem Melching d7d0e0a047 add env variable for wider ui
old-commit-hash: 9159094b62dc331d7f5f74b3ac9acdb8002d83f2
2021-06-22 11:14:44 +02:00
Willem Melching ff5656b0f8 nav: bump font size by 25%
old-commit-hash: 64e4294b04dd6481ec1fcb07d2f80595a1c834ab
2021-06-22 10:46:01 +02:00
sshane 84369b373d Scan for networks on UI init (#21310)
* refresh on UI init

* scan and wait for signal from networkmanager to update

* fixes incorrectPassword never triggering on known connections

* Update UI on connect state change

* pause timer on leaving networking

* no need to update adapter state on init

* uses AccessPoints signal

clean up

clean up

* Revert "uses AccessPoints signal"

This reverts commit 534219857a10dc200f979e1a66705ac13ca68698.

* perform non-blocking scan on first start only

* suggestions

* forgetNetwork already checks this

* Prevent double refresh on connect interaction and revert timer change

* Should fix nm is inactive error

* Revert "Should fix nm is inactive error"

This reverts commit 36a7ad098b713ae7e17cf1a8d717455ecdd29e2b.

* Fixup original timer code. could be cleaned up, but works

* use WifiManager's firstScan

* no more force!

* fix after rebase

fix after rebase

* scan for next update (seems clearer this way)

* see how responsive device is at scanning, PC is taking up to 15 seconds

* clean up and check ifVisible for scanning and UI updating

* explicitly define relationship since it's not called in Networking any more
old-commit-hash: a3a8fa9eac1897964ab339ec97694f90822aa623
2021-06-21 20:55:55 -07:00
Willem Melching e1556c0ab1 nav: update no gps text
old-commit-hash: 28694041d5ee860cdd5f26acb63887e0ce7d8bbf
2021-06-21 19:21:58 +02:00
Willem Melching 77a8b7aaf1 nav: banner add stretch to fix label size
old-commit-hash: 6ca0861360cc16849dbbd359593ee9374ab160ba
2021-06-21 18:53:19 +02:00
Willem Melching 3004b29805 Nav: ETA layout improvements (#21361)
* bold and more space

* rounded corners

* oneline

* center

* fix am/pm

* revert width change
old-commit-hash: a3b155839b1bac791f8819812feaffc7b814202c
2021-06-21 17:23:44 +02:00
Willem Melching b9042b255d nav: clear last_banner on no gps
old-commit-hash: c60f5ab6f6b976c95e0b772b68c890680877be61
2021-06-21 17:04:57 +02:00
Willem Melching aaa743ab7a Nav: No GPS warning (#21359)
* Nav: No GPS warning

* optional
old-commit-hash: e4e67985d610539ccaf0ceb7261e9fc937bc70b7
2021-06-21 15:50:23 +02:00
Joost Wooning 3590f9b56f Change QR code to url for pairing with both explorer and connect (#21314)
old-commit-hash: dd959412e3dd19a0523ab564fb298e05cc704b89
2021-06-21 13:57:13 +02:00
Dean Lee 9ae8335b5e onboarding: small cleanup (#21351)
old-commit-hash: 2433cb28bb821f91080924186d40b75fd6f72147
2021-06-20 18:59:49 -07:00
Dean Lee e3f21bfb41 OffroadHome: merge stylesheets (#21312)
* merge stylesheet

* css:target #alert_notification button

* Update selfdrive/ui/qt/home.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 175506532f78b85d901789ff845048184bd3aba9
2021-06-19 16:10:10 -07:00
Willem Melching 182b3eb4c7 Fix triangle size (#21332)
old-commit-hash: 9086c377e245bf7ad668b834ef6dfa25a617559f
2021-06-19 11:21:54 +02:00
Dean Lee 701ee27c91 HttpRequest: move http cache to RequestRepeater (#21228)
* move cache from HttpRequest to RequestRepeater

* apply review
old-commit-hash: 9ebfc2ba8df7dcde5c6ea6be3b61d8577d89d652
2021-06-18 23:47:23 -07:00
sshane 2515966550 Fix forget network button on tethering connection (#21340)
old-commit-hash: 26343951c948ca61c41f82560fb02c8b732bac64
2021-06-18 22:41:51 -07:00
sshane e980a38449 UI: forget button and security type icon (#21320)
* forget and security buttons first draft

* Text left margin closely matches other panels

* add lock label

* implement new icon

* actually add icon

rename

* smaller lock icon

smaller icon

* better
old-commit-hash: 290e9fb9f6e5ad6da3113f3976847f168f1e981c
2021-06-18 21:14:26 -07:00
Dean Lee abffb4db29 UI: refactor onboarding (#21223)
* refactor onboarding

* skip training guide if is dashcam

* apply review

* cleanup include

* move public ctro up

* slots is private

* cleanup headers

* set style sheet in onboardingwindow

* rebase master

* match ui

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 8781f586c573be5e93cbc43ef88d201bcbdc43c9
2021-06-18 16:01:22 -07:00
Dean Lee 775ed1428f CommaApi: class to namespace (#21329)
old-commit-hash: 85f134da6a1e96e1d4b2e70669cab120f000c2bd
2021-06-18 15:01:56 -07:00
Dean Lee 5bf08251d7 network_panel: fix ButtonControl build on EON (#21327)
old-commit-hash: eb9736fbb003391b1cf19650bce436afe89f31aa
2021-06-18 14:22:49 -07:00
Dean Lee 44185161f6 UI: remove alerts refresh when opening settings (#21322)
old-commit-hash: 48b23e8c37b1d80cf42e8ee5039d866239cd0755
2021-06-17 23:18:28 -07:00
Dean Lee 95a9e22120 UI: refactor ButtonControl (#21315)
old-commit-hash: 8675c970d49499d541c38172b1c5516dec7df480
2021-06-17 23:17:52 -07:00
Dean Lee 5c3b55c514 settings.cc: include missing headers on EON (#21298)
old-commit-hash: 3901f28cb938291455e083d247cb907e9b897355
2021-06-16 13:18:04 -07:00
Willem Melching fd6dddfc33 only clean up openGL buffers if context is still valid
old-commit-hash: 1ce3184c169f368bef9d36bd2c11a6c399e2c88e
2021-06-16 14:06:26 +02:00
Dean Lee d8ac1df789 Qt: cleanup includes (#21282)
* cleanup includes

* remove include <qtwidgets>

* more
old-commit-hash: 2c6d27f4828bc57e69f86aed0d1f48364233dffb
2021-06-16 00:08:02 -07:00
Dean Lee 1256dbb6c3 qt/api.cc: refactor create_jwt (#21281)
* refactor

* cleanup includes
old-commit-hash: de56de78c81116c77b0a8ac3c85ed31f16e9aa6f
2021-06-15 22:35:23 -07:00
Willem Melching 196f96f057 UI: check if dongle id is valid before calling API (#21275)
old-commit-hash: e85fa7f1c933baafdecb4a52c16f2003215d423b
2021-06-15 14:10:44 +02:00
Dean Lee 17c7f9c806 DriveStats: switch between MILES and KM in real time,based on setting. (#21234)
* update distance unit

* remove main_layout_ from header

* cleanup

* add title in add_stats_layouts
old-commit-hash: f55bb5d98f04a7f467264ed7fb33df080ef63148
2021-06-15 13:44:02 +02:00
Dean Lee 8306df4b79 SoftwarePanel: trim the OS Version (#21274)
old-commit-hash: a23584b6e2e77735ae2c8018b4c56006ef072f0c
2021-06-15 12:23:54 +02:00
ShaneSmiskol 92eefd12e4 ui: remember previous connections (#21233)
* remember previous connections

* minor

* remove ssid_from_path

* abstract into function

* forgot one

* const

* add path_from_ssid function

* more clear what these do

* fix

* more clear

* structured binding test

* remove ssid_from_path

* fix name

* disconnect if connected

* let's just match the activate function in naming

* return if empty

* revert and clean up
old-commit-hash: 305786f0da7659a41a1ab191932a4536a1085abe
2021-06-14 16:17:08 -07:00
ShaneSmiskol ce94b4bc4b networking: properly set route metric for hotspot (#21265)
* Add dns priority to tethering connection

* it was route-metric

* only ipv4 is needed
old-commit-hash: 04ef4eeedae71d4af6cdc8b09f0f0aba532d9fec
2021-06-14 16:12:18 -07:00