Commit Graph
153 Commits
Author SHA1 Message Date
JakobLichterfeld 2a922e321c feat: update to Phoenix HTML 4.1, bump dependencies (#4277)
* feat: update to Phenix HTML 4.1

* fix: updating to the new Gettext.Backend approach

* chore: update pot files ro locale version 45.0.0

* fix: downgrade cloack back to 1.1.2

* revert: merge of mix.lock

* fix: new syntax for field name generation for phx-feedback-for

* Revert "fix: new syntax for field name generation for phx-feedback-for"

This reverts commit 4d95e4f1c9.

* fix: downgrade floki back to 0.35.2

* Revert "fix: downgrade floki back to 0.35.2"

This reverts commit a4f0b6bf4b.

* fix: ensure floki nil is handled

* style: linter findings

* Revert "fix: ensure floki nil is handled"

* fix: new syntax for field name generation for phx-feedback-for

* debug: floki paramter error

* Revert "debug: floki paramter error"

This reverts commit 61920267ed.

* fix: Remove unnecessary code in settings_test.exs which breaks floki 0.36+
2024-10-27 08:17:49 +01:00
marvelmandJakobLichterfeld da819054f6 feat: Upgrade web development framework to Phoenix 1.7 (#3615)
* Upgrade to phoenix 1.7.0
The minimal changes necessary to compile the application

* Import Phoenix.Component instead of LiveView

* Fix compilation warnings

* mix format

* Update tests to trim newline characters

* mix gettext.extract --merge

* style: correct linting

* rebuild gettext

* fix: correct spacing before unit for energy added

* fix: use unicode character for whitespace

* fix: spacing with witespace

* fix: use numeric value for charge_energy_added in charging test

* fix: avoid warning about unsued function, which is actually used in plug

* fix: use whitespace in test before charge_energy_added

---------

Co-authored-by: JakobLichterfeld <jakob-lichterfeld@gmx.de>
2024-02-07 19:23:53 +01:00
Nir Klinger b5fa0242a3 Fix an issue when car is could enter sleep mode while dog mode is enabled (#3538)
* Fix an issue when car is could enter sleep mode while dog mode is enabled.

* Update pot files

* revert change

* Fix tests

* Fix tests and issue when try to sleep was not showing

* Fix lint issue
2023-12-12 13:18:03 +01:00
Adrian Kumpf 9df62aee54 Update repo URL 2023-11-12 19:30:36 +01:00
Adrian Kumpf b545eaf8f4 Remove donation links 2023-11-12 19:26:52 +01:00
Adrian Kumpf e243645abb Add Dialyzer 2023-06-10 18:44:18 +02:00
Adrian Kumpf 8756c66bca Fix typos 2023-02-03 21:20:10 +01:00
Martin Hüser 8377f361ce fix gpx format (#2925)
some tools, e.g. Garmin Basecamp, expect a proper namespace
definition in the xml root element and are more sensitive to
xml schema violations.

Track point elevation is specified to be an element of type
xsd:decimal in the gpx schema. But Teslamate renders an
empty element <ele></ele> when no elevation data is present.
This fix does not render an <ele> element when no elevation
is present

Also the gpx schema requires a "creator" attribute on the
gpx root element.
2023-01-13 14:00:36 +01:00
Adrian Kumpf a413e8ce2c Add setting to select tire pressure units 2022-07-18 11:35:14 +02:00
cwanjaandAdrian Kumpf 66254de906 Update summary.html.heex (#2390)
* Update summary.html.heex

Create a link on the summary page to link to Not a Tesla App release notes page per discussion request #2367 

Full disclosure - not proficient in Elixir, but understand HTML and capable of digging through other code and comparing. Just not sure how the `@summary.version` is going to be treated in the link text.

* Fix string interpolation

* Update tests

Co-authored-by: Adrian Kumpf <8999358+adriankumpf@users.noreply.github.com>
2022-01-28 12:16:17 +01:00
Adrian Kumpf 8aa772872a Remove support for logins with username/password 2022-01-21 19:09:32 +01:00
Adrian Kumpf b4ad1ff2cd Remove unnecessary id attributes 2022-01-01 17:29:36 +01:00
Adrian Kumpf 1992af38c3 Show token sign-up form by default 2021-11-12 17:39:20 +01:00
Adrian Kumpf 835326f8b3 Add NOT NULL constraint to charging_processes.start_date
Fixes #2088
2021-10-22 12:46:22 +02:00
Adrian Kumpf 6c0c0eeaa9 Display marketing names
Related to #2030
2021-10-06 12:25:18 +02:00
Adrian Kumpf 796d0c8ef4 Update phoenix to 1.6.0 2021-09-24 22:39:26 +02:00
Adrian Kumpf 537452effe Migrate to HEEx templates 2021-09-22 17:10:48 +02:00
Adrian Kumpf be76577d5b Enter captcha code in a separate view
Addresses #1836
2021-07-16 18:28:25 +02:00
Adrian Kumpf 1ee8f844fa Disable sign-in button if captcha code is missing 2021-07-08 12:05:39 +02:00
Adrian Kumpf 1a90cdeadf Allow to sign in w/o captcha
Addresses #1658
2021-06-02 11:24:45 +02:00
Adrian Kumpf 827f5aa33d Support Tesla's captcha verification 2021-06-01 00:53:32 +02:00
Adrian Kumpf 8513d56b9f Allow to sign in with API tokens (#1450)
* Allow to sign in with API tokens

* Test signing in with API tokens

* Add button to go back to login with credentials

* Add note about how to get API tokens
2021-03-16 18:54:48 +01:00
Adrian Kumpf 23d924491b Refactor Updater to use the Tesla HTTP client 2021-03-13 13:14:02 +01:00
Adrian Kumpf 5bba9e1f32 Format 2021-01-30 20:27:57 +01:00
Adrian Kumpf b9ef13addf Add sign-out button 2021-01-30 20:24:42 +01:00
Adrian Kumpf 3bb2d3086f Remove support for legacy auth 2021-01-30 18:06:13 +01:00
Adrian Kumpf d825fc1723 Allow to use the legacy authentication API 2020-12-29 15:05:38 +01:00
Adrian 0a0d17836f Gpx export (#993)
* Add first draft of gpx export

* Add test for gpx export

* Sort drive positions by date for gpx export
2020-12-22 19:29:33 +01:00
Adrian Kumpf bb7df800a5 Allow to enter MFA codes 2020-12-20 22:18:52 +01:00
Adrian Kumpf 5ed9131e1f Determine if the car is plugged in (cold weather)
Addresses #1060
2020-12-03 22:40:08 +01:00
Adrian 7872184a5c Display update version in the homescreen update tooltip (#976)
* Make update_version of the API available

* Add update version to the update tooltip

* Fix formatting

* Update translations to reflect the new tooltip

* Fix car controller test

* Add update_version to the mqtt documentation
2020-10-08 10:33:56 +02:00
Adrian Kumpf d0d305f1c3 Prefix unused variables with '_' 2020-10-07 18:36:05 +02:00
dependabot[bot] 982448ff50 Bump phoenix_ecto from 4.1.0 to 4.2.0 (#892) 2020-09-01 08:50:53 +00:00
Adrian Kumpf 95bc0ae3f3 Bump dependencies 2020-08-21 13:37:00 +02:00
Adrian Kumpf 5a2ca3ebcf Update the default sleep requirements
… so that the car does not need to be locked to go to sleep.
2020-07-09 19:02:47 +02:00
Adrian Kumpf 897dfcfeba Fix failing tests 2020-06-25 14:54:39 +02:00
Adrian Kumpf 0db6d6905c Allow to set a cost by the minute per geo-fence 2020-05-30 12:33:23 +02:00
Adrian Kumpf 04ab18262d Allow to set charge cost by minute 2020-05-30 12:33:23 +02:00
Adrian Kumpf 6fd7cbbc28 Allow negative charge costs
Closes #743
2020-05-25 19:22:41 +02:00
dependabot-preview[bot] 607c220bf2 Bump phoenix_live_view from 0.12.1 to 0.13.0 (#742) 2020-05-22 16:00:06 +00:00
Adrian Kumpf 60631907ef Replace mojito with finch 2020-05-14 14:11:20 +02:00
Adrian Kumpf 155a135d51 Upgrade to phoenix 1.5 2020-04-23 12:51:15 +02:00
Adrian Kumpf 706c9d6a75 Bump phoenix_live_view to 0.12.0 2020-04-19 12:32:05 +02:00
Adrian Kumpf 0dbc5600ef Add language switcher 2020-04-15 14:21:35 +02:00
Adrian Kumpf 45d94d52b3 Implement database efficiency improvements
Closes #573
2020-04-11 14:49:44 +02:00
jmiverson 9eb42ee8a7 Updated Labels to Title Case (#578)
Some labels were using title case and others weren't.  Attempted to make it consistent across the board.
2020-04-11 12:45:08 +02:00
Adrian Kumpf 3d3863e17c Format code 2020-04-10 13:06:25 +02:00
Adrian Kumpf 4fdfc4d74e Upgrade bulma-tooltip 2020-04-10 13:02:08 +02:00
Adrian Kumpf a457d17ffa Enable streaming for new users as well 2020-04-04 13:43:42 +02:00
Adrian Kumpf 025a81f874 Do not suspend if the doors or trunk are open 2020-04-02 17:54:37 +02:00