Commit Graph

41 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 4d95e4f1c9367d2d5c606ced2190ab23edcb971b.

* fix: downgrade floki back to 0.35.2

* Revert "fix: downgrade floki back to 0.35.2"

This reverts commit a4f0b6bf4b32099d89003c3d20f72333d510e109.

* 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 61920267edf5186b593920bde7d87e8b30af55aa.

* fix: Remove unnecessary code in settings_test.exs which breaks floki 0.36+
2024-10-27 08:17:49 +01:00
marvelm
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
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
a413e8ce2c Add setting to select tire pressure units 2022-07-18 11:35:14 +02:00
Adrian Kumpf
537452effe Migrate to HEEx templates 2021-09-22 17:10:48 +02: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
d0d305f1c3 Prefix unused variables with '_' 2020-10-07 18:36:05 +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
60631907ef Replace mojito with finch 2020-05-14 14:11:20 +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
Adrian Kumpf
a457d17ffa Enable streaming for new users as well 2020-04-04 13:43:42 +02:00
Adrian Kumpf
fdd11dcf8e Inform if an update is available 2020-04-02 16:36:28 +02:00
Adrian Kumpf
f1e434e9c9 Remove outdated sleep mode requirements 2020-04-02 16:33:33 +02:00
Adrian Kumpf
a36fb8d66c Remove option to disable sleep mode 2020-04-02 16:33:33 +02:00
Adrian Kumpf
2f8defff06 Add feature flag for the Streaming API 2020-03-28 15:48:37 +01:00
Adrian Kumpf
1e86761314 Update the tests so that 'rated' is used by default
Follow-up of 9994d77
2020-03-11 15:36:08 +01:00
Adrian Kumpf
803438206e Bump phoenix_live_view to 0.7.1 2020-02-14 10:43:48 +01:00
Adrian Kumpf
be0fffe56b Calculate charge cost based on location
Closes #386
2020-02-07 13:21:05 +01:00
Adrian Kumpf
6d2e35005f Bump floki to 0.25.0 2020-01-27 16:50:50 +01:00
Adrian Kumpf
38486d69a3 Bump phoenix_live_view to 0.6.0 2020-01-24 14:08:47 +01:00
Adrian Kumpf
2a101d6788 Change error message 2020-01-23 13:39:04 +01:00
Adrian Kumpf
c217943862 Refresh addresses when changing language 2020-01-21 14:27:11 +01:00
Adrian Kumpf
dde12b0e5b Add option to overwrite sleep mode per geo-fence
Resolves #251
2019-11-24 14:00:50 +01:00
Adrian Kumpf
66bafcb66d Add option to disable sleep mode 2019-11-24 14:00:50 +01:00
Adrian Kumpf
549dedb3bf Decouple global from car-specific settings 2019-11-18 23:43:25 +01:00
Adrian Kumpf
30d10d29a0 Display link to Grafana dashboards
... if a URL was entered on the Settings page.

Resolves #235
2019-11-17 16:56:03 +01:00
Adrian Kumpf
500af43664 Add base URL to settings 2019-09-28 20:59:41 +02:00
Adrian Kumpf
bf18ad5d64 Refactor LiveView tests 2019-09-23 15:34:27 +02:00
Adrian Kumpf
6d4cb5fb2e Add preferred range setting 2019-09-13 19:27:05 +02:00
Adrian Kumpf
28d9d67acd Show sleep requirements on settings page 2019-08-24 00:20:52 +02:00
Adrian Kumpf
33b53ed8e3 Add extra values to :suspend_min dropdown 2019-08-14 17:39:56 +02:00
Adrian Kumpf
8c30e22979 Allow to visit /settings & /geo-fences w/o being signed in 2019-08-12 23:48:16 +02:00
Adrian Kumpf
10443a2227 Add view for sleep settings 2019-08-12 23:48:16 +02:00
Adrian Kumpf
1c0d0641d5 Render select dropdowns for units 2019-08-12 23:48:16 +02:00
Adrian Kumpf
3780bbc3ed Test SettingsLive 2019-08-05 12:54:14 +02:00