* 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
* 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>
* Synchronize smart cell source before evaluation
* Sync JS view only if present
* Synchronize with smart cell only when started
* Update references to kino packages
* Update the Smart cells notebook
* Rename add dependnecy to add package
* Update changelog
* Fix indentation in HTML format
* Adds more spacing between items
* Use horizontal lines to better mark the sections,
unless the header itself is followed by a table.
Those changes are inspired by GitHub's current
settings page.
* Keep memory usage state at the root on homepage
* Update lib/livebook/system_resources.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Show information when a new Livebook version is available
* Wording
* Use more precise version comparison
* Update lib/livebook/application.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Up
* Update notificaion styles
* Update lib/livebook_web/live/home_live.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Update lib/livebook_web/live/home_live.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Apply review comments
* Use async_nolink
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Add LIVEBOOK_SHUTDOWN_ENABLED
Previously we relied on code:get_mode(), but since
releases are starting in interactive mode to use
less memory, we need a clearer mechanism.
* Move shutdown feature check to Livebook.Config
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Add support for mix run flags to the Mix runtime
* Support mix run flags in runtime config string
* Add flag validation
* Update lib/livebook_web/live/session_live/mix_standalone_live.ex
Co-authored-by: José Valim <jose.valim@dashbit.co>
Co-authored-by: José Valim <jose.valim@dashbit.co>
* Fix horizontal scrollbar on smaller screens
* Apply navigation shortcuts without an additional roundtrip
* Shorten the data element selector
* Fix URL in changelog
* Return reference from handle_intellisense
* Automate searching and adding new dependencies
* Restructure runtime management
* Leave search restrictions up to the runtime
* Support predefined dependencies in Embedded runtime dependency search
* Use the embedded runtime for dependency search test
* Fix typo
* Use module for loading embedded runtime dependencies
* Improve naming
* List predefined smart cells and automatically add their dependencies
* Generalize dependency insertion to multiple entries
* Add runtime setup modal
* Don't evaluate setup when restarting the runtime fails
* Automatically add vega_lite for chart builder
* Improve confirmation modal actions when the action is not destructive
* Add support for scanning evaluation context from smart cells
* Rename prev_locator to base_locator to clarify the meaning
* Adjustments
* Add data tests
* Adjustments
* Test smart cell intearaction with RuntimeServer
* Serialize binding scanning and leave sending to the user
* Monitor the scanning process
Say we have this path on Windows: `C:/Users/wojtek/foo.livemd`. Opening
it: (ignore it's not escaped)
http://localhost:4000/open?path=C:/Users/wojtek/foo.livemd
would have failed with:
** (ArgumentError) expected an expanded absolute path, got: "C:/Users/wojtek/foo.livemd"
and that's because absolute paths (in other words, Path expanded) start
with `c:/`, not `C:/`.
* Reads the output after a cell has been evaluated
* Creates SR landmarks when errors happen
* fixes formatting
* Reads a clearer message when a runtime restart is required
* Update lib/livebook_web/live/session_live/cell_component.ex
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Group all runtime messages under a common prefix
* Move output specification ot the Runtime protocol
* Update doc comments
* Livebook.Evaluator -> Livebook.Runtime.Evaluator
* Livebook.ContentLoader -> Livebook.Notebook.ContentLoader
* Livebook.UniqueTask -> Livebook.Utils.UniqueTask
* Add import/export delegates to Livebook.LiveMarkdown
* Serve iframes from another local port when running on http
* Use relative hostname in local iframe URL
* Simplify server start check
* Use random iframe port when Livebook runs on a random port
* Rename space/ to iframe/
* LivebookWeb.IframePlug -> LivebookWeb.IframeEndpoint
* Accessibility improvements on home page
* Unique ids for file info path buttons
* Improves navigation for screen readers in the session list
* Landmarks navigation for screen readers
* Headings navigation for screen readers
* Group navigation - running sessions list
* Fix typo
* Minor adjustments based on review suggestions
* Support downloading source on a per session basis
* Update session_list_component.ex
* Add test
* Update lib/livebook_web/live/home_live/session_list_component.ex
* Update test/livebook_web/live/home_live_test.exs
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
* Export file with title or file name
* Export with title or file name
* Add Session.file_name_for_download/1
* Compute the name without calling the server
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
1. Allow multiple sessions to close or disconnect at once,
and then request the system resources to be updated
2. Make sure that closing a session happens synchronously,
otherwise a race condition could still list the closed
session in a dashboard
3. Ensure close and disconnect can happen more than once
(for example if two users click the same button at the
same time)
* Minimize race condition in the frame update test
* Use defmacrop for building intellisense context
* Remove unnecessary cell view computation
* Fix nested assets resolution
* Fix typing errors
* Add missing async attribute to test suites
* Improve rendering synchronization
* Up
* Initial implementation to close multiple sessions
* Sessions: bulk actions with components
* Rename Disconnect sessions to Disconnect runtime
* Select all and disabled when nothing is selected
* Styled checkbox
* Renames toggle events
* Warning about not persisted notebooks
* Adds disconnect runtime option for a single session
* Edit sessions on right
* Fix: typos and plural
* Minor adjustments
* Removes the loop for rendering the menu
* Menus with fixed width
* Minor adjustments
* Pluralize as global helper
* Bulk actions form on client side
* Track bulk actions buttons state
* Fix: home live tests
* Doctests for pluralize
* Fix: bulk actions buttons losing state on session update
* Fix: format
* Minor adjustment on toggle_edit
* Review-based adjustments
* Reset the Edit state after single-session actions
* Minor adjustments
* Fixes bulk action events
* Submit the bulk action form directly
* Tests for bulk actions
* Indentation
* Update lib/livebook_web/live/home_live/close_session_component.ex
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: José Valim <jose.valim@gmail.com>