Commit graph

822 commits

Author SHA1 Message Date
Alexandre de Souza
12f1cc0c3f
Load persisted environment variables from settings into session's runtime (#1409) 2022-09-16 14:22:27 -03:00
José Valim
bd47169892 Add information on __DIR__ and __ENV__ 2022-09-16 17:56:29 +02:00
Alexandre de Souza
e539661189
Unify styling environment variables forms (#1403) 2022-09-14 13:24:32 -03:00
Jonatan Kłosko
9434cf57b4
Normalize newlines in initial smart cell editor content (#1400) 2022-09-13 11:15:25 +02:00
Alexandre de Souza
0b9f53a122
Implement global Environment Variables from Settings page (#1387) 2022-09-12 11:34:39 -03:00
José Valim
0fd6eed255 Improve docs 2022-09-09 16:48:10 +02:00
José Valim
c0fa5c9807 See app -> Manage app 2022-09-07 10:48:16 +02:00
José Valim
be862173a3
Unify several forms in the application (#1392)
* Define .input_wrapper and .hex_color_input components

* Define Tailwind variants from Phoenix v1.6 to help styling

* Make sure single-action modals redirect on save

* Add pill to session secrets in the "Secrets" session sidebar

* Fix alignments of "Users" in the session sidebar
2022-09-05 23:59:13 +02:00
José Valim
357ba7320a Fix title stylings 2022-09-05 23:26:30 +02:00
Jonatan Kłosko
eeadb0811b
Wait for processes to be garbage collected before evaluation (#1385) 2022-09-02 23:45:58 +02:00
Paulo Valim
a0901ada01
Redesign page titles (#1382) 2022-09-02 22:06:22 +02:00
Cristine Guadelupe
97efef52cc
Fix secrets form (#1379)
* Fix secrets form

* Update lib/livebook_web/live/session_live/secrets_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Applying suggestions

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-02 15:04:41 -03:00
Jonatan Kłosko
4cc18919da Send client ids in session data operations 2022-09-02 20:00:24 +02:00
Alexandre de Souza
ac71d08771
Add and Fetch secrets from Fly applications (#1361) 2022-09-02 12:54:28 -03:00
Paulo Valim
e9e0bda94f
Add cursor pointer class to the button new notebook (#1383) 2022-09-02 15:54:41 +02:00
Jonatan Kłosko
ab9ad0369c
Show a message when a smart cell crashes and allow restarts (#1381) 2022-09-02 15:50:13 +02:00
Jonatan Kłosko
e14fbdb616
Enable :sync mode when writing to the local file system (#1378)
This ensures we always flush changes right away when saving
a notebook. This is important for Nerves Livebook, where it
is more likely the device is stopped abruptly.
2022-09-02 10:28:03 +02:00
José Valim
640e9b2124
Move toasts to the top (#1367)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-01 18:41:28 +02:00
Alexandre de Souza
bea5d0bb76
Fix file system change from S3 to local (#1377) 2022-09-01 13:25:42 -03:00
José Valim
31c6f7adf7 Style secrets modal consistently with other add modals 2022-09-01 08:09:27 +02:00
Cristine Guadelupe
443ff8bf9f
Unavailable secret error (#1371)
* Show an Add Secret button for System.EnvError

* Extracts render_formatted

* Rewrite the env error message

* Renames the env error type

* Applying suggestions

* Applying suggestions (live patch)

* Test for unavailable secrets

* Bump to rc.1

* Applying suggestions (error message)

* New error message

* Prefill the secret value

* Applying suggestions (error message output)

* Update test/livebook_web/live/session_live_test.exs

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Update lib/livebook/runtime.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-31 20:45:55 -03:00
José Valim
905dce45ef More consistent use of padding throughout 2022-08-31 23:53:23 +02:00
Alexandre de Souza
2cbd81eaf5
Migrate HubLive to Phoenix format (#1373) 2022-08-30 11:32:48 -03:00
Jonatan Kłosko
8bb6b05625
Add support for boxed grid (#1375) 2022-08-30 13:15:55 +02:00
José Valim
608979471d
Remove Mix standalone runtime, closes #1345 (#1370)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 14:20:24 +02:00
ByeongUk Choi
648edf23e7
Add completion for bitstring modifiers (#1291)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 13:14:13 +02:00
José Valim
895373e08b
Log the reason a runtime node goes down (#1368)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 11:12:25 +02:00
José Valim
aca9c18086 mix format 2022-08-28 19:25:42 +02:00
José Valim
ed9c0e5a1e Revamp explore section 2022-08-28 19:08:43 +02:00
José Valim
713d1a55be Better handle exceptions in smart cells 2022-08-28 18:17:25 +02:00
José Valim
ac67abd4e3 Simplify seq traces 2022-08-28 12:42:54 +02:00
José Valim
693ea8e0f8 Improve warning when editing localhost Hub 2022-08-28 11:27:26 +02:00
Jonatan Kłosko
1e324b4f75
Add support for getting evaluation file during evaluation (#1362) 2022-08-28 09:28:19 +02:00
Cristine Guadelupe
afcb2ff834
Livebook secrets (#1348)
* Add secrets to the sidebar

* Get and put secrets (naive)

* Secrets list - shortcut

* Validates secret name

* Livebook secrets as environment variables

* Restores secrets when necessary

* Minor adjustments

* Implements add_system_envs for NoopRuntime

* Moves secrets to session data

* Granular operations for secrets

* Minor adjustments

* Applying suggestions

* Test for add secrets

* Type for secret

* Applying suggestions

* Prevents duplicates

* Refactor to live_render

* Update lib/livebook/session/data.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Sort secrets

* Applying suggestions

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-25 17:24:24 -03:00
José Valim
f97706e3fd Fix spacing and remove duplication 2022-08-24 18:21:23 +02:00
José Valim
8f8f1db5d5 Use git dep 2022-08-24 18:08:17 +02:00
Alexandre de Souza
aa663af95d
Allow hub routes to everyone (#1359) 2022-08-24 13:06:01 -03:00
Alexandre de Souza
3a085a5d30
Minor Hub improvements (#1357) 2022-08-24 12:35:28 -03:00
Jonatan Kłosko
2c28d1a0ca
List an exact match first in package search (#1355) 2022-08-24 10:59:26 +02:00
José Valim
942e0ca113 Update runtime livebook with new Kino features 2022-08-23 21:50:16 +02:00
José Valim
30344b0636
Create LayoutHelpers to encapsulate the whole home layout instead of sidebar (#1352) 2022-08-23 12:38:39 +02:00
José Valim
1e4ae42e6c Logger.warn -> Logger.warning 2022-08-23 08:44:01 +02:00
José Valim
bb243a5964 Remove comment field from policy 2022-08-23 08:43:45 +02:00
Alexandre de Souza
77c8804d62
User and Hub forms with Changeset validations and input errors (#1347) 2022-08-22 18:12:54 -03:00
Jonatan Kłosko
4ce7df62e4 Fix whitespace in the text output copied to clipboard 2022-08-22 15:59:44 +02:00
José Valim
ddc98edd5a Trim down S3 file system info 2022-08-19 23:26:11 +02:00
Alexandre de Souza
5c050e640f
Add Livebook Hub with Fly.IO integration (#1319) 2022-08-18 10:34:27 -03:00
Paulo Valim
dcbf0d156c
Make the global sidebar collapsible (#1343)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-08-12 19:42:54 +02:00
José Valim
b9b2f7514e
Support more recent Elixir versions too (#1344) 2022-08-12 19:04:15 +02:00
Jonatan Kłosko
3d5c7c3fad
Require Elixir 1.14 (#1342) 2022-08-11 20:13:57 +02:00