Commit graph

587 commits

Author SHA1 Message Date
Jonatan Kłosko
394c6daef1
Improve validity check when input changes during evaluation (#651) 2021-10-27 15:36:50 +02:00
Jonatan Kłosko
6ba5d0017a
Allowapplication/octet-stream content type for import (#650) 2021-10-27 13:49:03 +02:00
Jonatan Kłosko
c1a6bc1aa8
Remove reactive inputs (#649) 2021-10-27 13:35:24 +02:00
gpopides
5c0267b547
Added automatic cell evaluation (#637)
* Added automatic evaluation

* apply review changes

* persist reevaluate_automatically and update test

* test for automatic reevaluation

* formatting

* Add import test

* Always show if a cell automatically reevaluates and link to settings

* Evaluate automatically reevaluating cells after queuing

* Always show evaluate button when cell is fresh

* Update icon

* Add test ensuring that fresh cells don't evaluate automatically

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-10-26 20:38:30 +02:00
Wojtek Mach
453eabb6d4
Fix urls on Elixir master (#647)
Before Elixir master, empty path is represented as `nil`:

    ~% asdf shell elixir 1.12.3-otp-24 ; elixir -e 'IO.inspect URI.parse("http://localhost")'
    %URI{
      authority: "localhost",
      fragment: nil,
      host: "localhost",
      path: nil,
      port: 80,
      query: nil,
      scheme: "http",
      userinfo: nil
    }

On Elixir master, it is an empty string:

    ~% asdf shell elixir git ; elixir -e 'IO.inspect URI.parse("http://localhost")'
    %URI{
      authority: "localhost",
      fragment: nil,
      host: "localhost",
      path: "",
      port: 80,
      query: nil,
      scheme: "http",
      userinfo: nil
    }

The new default, the empty string, caused a bug on this line:

    Map.update!(:path, &((&1 || "/") <> path))

because we never prepended the leading `/` and thus we ended up with
path `"health"`, not `"/health"`, which now on Elixir master crashes:

    iex> URI.parse("http://localhost") |> Map.replace!(:path, "health") |> to_string()
    ** (ArgumentError) :path in URI must be empty or an absolute path if URL has a :host, got: %URI{authority: "localhost", fragment: nil, host: "localhost", path: "health", port: 80, query: nil, scheme: "http", userinfo: nil}
        (elixir 1.13.0-dev) lib/uri.ex:863: String.Chars.URI.to_string/1
2021-10-26 16:48:17 +02:00
Jonatan Kłosko
9da44fd541
Fix root directory listing on S3 when empty (#646) 2021-10-26 15:39:24 +02:00
Owen Bickford
46d49743b9
add --no-error-on-unmatched-pattern (#639) 2021-10-24 19:57:14 +02:00
jonatanklosko
b53fe1887b Update assets 2021-10-24 17:40:44 +00:00
Owen Bickford
b6793d6630
Type1fool-smooth-scrolling (#638)
* add scroll behavior to html, body, & notebook elems

* don't append base url or set target on intra-page links

* add back-to-top link, class autosorting/formatting

* add convert global style to `.scroll-smooth` util

* add `isPageAnchor` function

* remove `go-to-top` link

* use `isAbsoluteUrl` and add a semicolon ;)
2021-10-24 19:38:57 +02:00
jonatanklosko
da8b55b9d1 Update assets 2021-10-22 10:03:09 +00:00
Pete Jodo
08727bddac
Remove vertical margin from nested markdown lists (#631) 2021-10-22 12:01:19 +02:00
jonatanklosko
f1b675f1b5 Update assets 2021-10-21 21:23:30 +00:00
Matheus Cumpian
c6d7c81ee9
New import info flash (#630)
* adding a new info flash on imported notebooks

* changing the imported notebook error flashes to warning level

* Update lib/livebook_web/live/session_helpers.ex

Co-authored-by: José Valim <jose.valim@gmail.com>

* adding unit tests for the flash messages and fixing put_import_flash/1 call location

* changing name of put_import_flash_messages/2 to put_import_warnings

* Update lib/livebook_web/live/home_live.ex

* formating code

Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-10-21 23:21:54 +02:00
Matheus Cumpian
887a4ad0d1
adding a new message to close session modal (#629)
* adding a new message to close session modal when the session has a file attached to it

* Update lib/livebook_web/live/home_live/close_session_component.ex

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

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-10-21 15:01:45 +02:00
Jonatan Kłosko
e2e9c95880
Update hostname resolution check (#628) 2021-10-21 12:45:07 +02:00
José Valim
39f1b9b298
Update README.md 2021-10-21 08:02:16 +02:00
Tim Mecklem
1b3d081b5e
Minor typo correction (#627) 2021-10-21 07:57:10 +02:00
José Valim
b930d8620a
Prepare to make Explore section extensible (#626) 2021-10-20 22:27:00 +02:00
José Valim
3ab2a56924
Fix shortnames not pointing to 127.0.0.1 (#625)
Someone reported an issue where their shortname
host was not pointing to 127.0.0.1, which caused
connections to fail. Therefore we also check and
detect this case.
2021-10-20 22:02:25 +02:00
José Valim
af60e418c1
Update CHANGELOG.md 2021-10-20 18:23:45 +02:00
jonatanklosko
3fc9f11688 Update assets 2021-10-20 16:11:46 +00:00
Matheus Cumpian
f6d31a7d86
adding a disabled delete button for sections that have branches (#624)
* adding a disabled delete button for sections that have branches

* Apply suggestions from code review

* Update assets/css/components.css

* Apply suggestions from code review

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-10-20 18:10:11 +02:00
jonatanklosko
93e9b06a29 Update assets 2021-10-20 12:11:31 +00:00
Pete Jodo
5b96abea82
Hide list bullets in markdown checkboxes (#623)
* Hide list bullets in markdown checkboxes

* Align markdown checkboxes with list bullets
2021-10-20 14:09:50 +02:00
Jonatan Kłosko
aefe8d03c8
Fix intermediate output ids to not change on finished evaluation (#622) 2021-10-20 00:32:48 +02:00
jonatanklosko
f29a2a37a0 Update assets 2021-10-19 21:38:27 +00:00
Matheus Cumpian
fe77823685
Removing "Evaluate All Below" shortcut functionality (#621) 2021-10-19 23:36:44 +02:00
jonatanklosko
33f13c03f9 Update assets 2021-10-19 18:33:44 +00:00
Matheus Cumpian
7094433b5d
Change color for aborted and queued status (#620) 2021-10-19 20:32:00 +02:00
José Valim
0b6f416bbc Improvements to notebooks that rely on distribution 2021-10-19 19:19:25 +02:00
Jonatan Kłosko
652efd6bad Release 0.3.0 2021-10-19 14:41:58 +02:00
Jonatan Kłosko
05490b43cb
Open standalone runtime ports in binary mode (#608) 2021-10-19 14:27:38 +02:00
José Valim
86e74c90ef Add Fly.io link to the README 2021-10-19 13:30:23 +02:00
jonatanklosko
f0aacc7614 Update assets 2021-10-18 22:39:47 +00:00
Jonatan Kłosko
c354c46d89
Update dependencies (#606)
* Update dependencies

* Update dependencies major

* Update mix deps
2021-10-19 00:37:48 +02:00
jonatanklosko
38dc8693ff Update assets 2021-10-18 20:37:44 +00:00
Jonatan Kłosko
866abe8dee
Update favicon when navigating across sessions (#603) 2021-10-18 22:36:00 +02:00
Jonatan Kłosko
06f83def3d
Normalize session tmp directory path (#604) 2021-10-18 22:35:51 +02:00
jonatanklosko
87b657d81a Update assets 2021-10-18 20:34:09 +00:00
Jonatan Kłosko
a41dda9c7c
Keep static files outside priv (#602)
* Keep static files outside priv

* Override generated assets on the CI
2021-10-18 22:32:09 +02:00
Jonatan Kłosko
3a8c11cb10
Remove version from the health endpoint (#601) 2021-10-18 18:28:19 +02:00
Jonatan Kłosko
5131a9e683
Enable CORS for health check (#600) 2021-10-18 18:07:18 +02:00
José Valim
861fc3110b Remove paragraph leading to other notebooks 2021-10-16 20:53:52 +02:00
José Valim
7eea603964
Latest Hex no longer requires us to hardcode the version (#564) 2021-10-16 19:54:10 +02:00
jonatanklosko
fa2e68c208 Update assets 2021-10-16 10:25:51 +00:00
Jean Carlos
238635a6be
Changed favicon with base on notebook status (#594)
* Change favicon based on notebook status

* Format correction

* "operation" is unused

* Improvements for better functioning of icons

* Renamed icons files

* Update favicons

* Update changelog

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-10-16 12:24:19 +02:00
Jonatan Kłosko
3ae67ede33
Add support for importing notebook from URL query parameter (#598)
* Add support for importing notebook from URL query

* Update desc

* Update URL and redirect to import form on error

* Update tests

* Remove URL scope
2021-10-16 12:23:08 +02:00
Jonatan Kłosko
06822b6e7e
Prefix base64 encoded cookie (#597) 2021-10-13 23:07:50 +02:00
Jonatan Kłosko
5dea204fc9
Fix intermittent test failures (#596)
* Bump Elixir on the CI

* Start permanent node manager in tests

* Adjust timeouts

* Make sure random node cookies are alphanumeric
2021-10-13 22:25:33 +02:00
jonatanklosko
79c0e73343 Update assets 2021-10-13 12:58:34 +00:00