Commit graph

739 commits

Author SHA1 Message Date
Sylvie Crowe
fc298f2a50
settings schema.json (#1874)
Adds schema.json support to the settings file to provide type hints and
other eventual details. This also adds a system to easily add more
schema files for other type of configurations.
2025-02-03 14:20:50 -08:00
Sylvie Crowe
1a70c83582
feat: add web zoom to help widget (#1893)
The web widget already had a zoom feature, but the help widget did not.
This change ports the zoom feature so it is available on the help widget
as well.
2025-01-31 18:11:38 -08:00
Sylvie Crowe
8cd35c4678
fix: frontend file delete add recursive false (#1892)
There was a recent backend change that update the interface to
FileDeleteCommand. This updated was not reflected in
directorypreview.tsx on the frontend. This updates the frontend to
match.
2025-01-31 16:37:23 -08:00
Sylvie Crowe
750e260174
fix: use correct mimetypes for .pem and .pub (#1891)
This changes the .pem mimetype to application/x-pem-file. It also
changes the .pub mimetype to text/plain. Lastly, it updates
textApplicationMimetypes with this change.
2025-01-31 13:51:07 -08:00
Evan Simkowitz
902ff9baf1
enable wsh file cross-remote copy/move (#1725)
This adds the ability to stream `tar` archives over channels between
`wsh` instances. The main use cases for this are remote copy and move
operations.

It also completes the `wavefs` implementation of the FileShare interface
to allow copy/move interoperability between wavefiles and other storage
types.

The tar streaming functionality has been broken out into the new
`tarcopy` package for easy reuse.

New `fileshare` functions are added for `CopyInternal`, which allows
copying files internal to a filesystem to bypass the expensive interop
layer, and `MoveInternal`, which does the same for moving a file within
a filesystem. Copying between remotes is now handled by `CopyRemote`,
which accepts the source `FileShareClient` as a parameter. `wsh`
connections use the same implementation for `CopyInternal` and
`CopyRemote` as they need to request the channel on the remote
destination, since we don't offer a way to pass channels as a parameter
to a remote call.

This also adds a recursive `-r` flag to `wsh file rm` to allow for
deleting a directory and all its contents.

S3 support will be addressed in a future PR.

---------

Co-authored-by: sawka <mike@commandline.dev>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-01-31 10:42:39 -08:00
Evan Simkowitz
437055cd12
Add image preview zoom functionality (#1870) 2025-01-29 11:18:10 -08:00
Sylvie Crowe
9db9ef26f5
Disconnect Connection Button (#1858)
Adds an item to disconnect the current connection in the connection
typeahead.
2025-01-28 11:08:29 -08:00
Evan Simkowitz
2895b61e10
Fix quicktips getting cut off (#1857)
fixes #1855
2025-01-27 11:34:18 -08:00
Mike Sawka
7b366c93b0
fix markdown padding (#1848) 2025-01-24 15:56:49 -08:00
Mike Sawka
c1dd0c99d9
first draft of release notes (#1847) 2025-01-24 15:43:26 -08:00
Mike Sawka
bba94a62d0
add jwt token back to wsl connections (#1841)
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2025-01-24 14:24:15 -08:00
Sylvie Crowe
51c36efcc0
fix: connection error only shows in error state (#1838)
This ensures that an error of EOF does not get displayed in the
disconnected state.
2025-01-24 14:16:55 -08:00
Evan Simkowitz
3d9d17caef
Fix magnified block border radius (#1827) 2025-01-23 18:19:02 -08:00
Evan Simkowitz
e811eb9255
Add copy current url to webview context menu (#1821) 2025-01-23 17:33:41 -08:00
Evan Simkowitz
a0c6694665
Add icons to cards in docsite, adjust md padding (#1816) 2025-01-23 13:54:14 -08:00
Mike Sawka
acb14b84fc
match the exact calls in TableBody to set the selected row. (#1808) 2025-01-23 13:46:29 -08:00
Evan Simkowitz
2304b8be22
Close open modals on escape keydown (#1809) 2025-01-23 12:23:53 -08:00
Evan Simkowitz
19634ed5df
Fix markdown padding (#1810)
Moves the markdown padding inside the component so the scrollbar stays
glued to the edge
2025-01-23 12:23:45 -08:00
Evan Simkowitz
9406967edd
Fix offset regression in wshremote (#1807)
Co-authored-by: sawka <mike@commandline.dev>
2025-01-22 22:24:35 -08:00
Evan Simkowitz
50b80a10fd
Add license identifiers to missing files (#1806) 2025-01-22 20:06:36 -08:00
Evan Simkowitz
4e0a290ada
Fix padding for markdown preview (#1805) 2025-01-22 19:58:45 -08:00
Sylvie Crowe
6d32ae856c
Reveal Parent Directories in External Applications (#1791)
Adds context menu options to the directory preview to open the parent
directory in the native file viewer. Additionally, it adds context menu
options in the block header to open either a parent directory or a
different type of file in an external default application. These context
menu items are only available for local directory previews.
2025-01-22 19:09:07 -08:00
Mike Sawka
e3a9b80df5
return true (cancel) the enter key event in typeahead (#1804) 2025-01-22 18:22:45 -08:00
Sylvie Crowe
e2800b39b6
S3 Frontend (#1723)
Adds the following changes to the frontend as a part of the S3 Feature.
- Refactor of the Connections Typeahead to make the code easier to read
and navigate
- Adds a new section for s3 profiles to be added to the dropdown
2025-01-22 18:16:39 -08:00
Evan Simkowitz
a1f97bd91c
Fix border radii for webview container (#1803) 2025-01-22 18:15:42 -08:00
Evan Simkowitz
4abf839e39
Fix directory preview table padding (#1802) 2025-01-22 17:58:31 -08:00
Mike Sawka
735d963aae
actually call the getter (#1800) 2025-01-22 17:50:02 -08:00
Mike Sawka
68cf3fd412
fix statfile atom dependencies via formatRemoteUri (#1797) 2025-01-22 17:42:53 -08:00
Evan Simkowitz
62eec93b17
Improve preview and web widget padding (#1796)
Removes the padding for most of the specialized previews, moves where
it's defined for the directory preview so that the header borders extend
to the edge of the block
2025-01-22 17:08:25 -08:00
Evan Simkowitz
11fec5695c
wsh file overhaul without cross-remote copy and S3 (#1790) 2025-01-22 14:50:09 -08:00
Mike Sawka
84d4191a9d
ctrl-shift state fix + add new keybindings to docs (#1792) 2025-01-22 09:53:18 -08:00
Sylvie Crowe
8a853ded56
fix: connection status map wrapped in atom (#1783)
This wraps the connection status map in an atom so it properly updates
when an individual connection status changes.
2025-01-20 21:45:45 -08:00
Sylvie Crowe
5f65d85d00
fix: shrink the ssh connection box when no error (#1781)
This removes the rendering of the overlay scrollbars component when
there are no error messages to scroll.
2025-01-20 19:33:28 -08:00
Evan Simkowitz
900f4a3ff7
Add tab bar instructions to docsite (#1779)
Adds instructions for using the tab bar, moves tab layout docs to new
location with redirect, adds instructions for magnifying a block, cleans
up intro text.
2025-01-20 15:29:23 -08:00
Sylvie Crowe
4ad7b99251
Known Hosts User Input Fix (#1778)
This handles ambiguous cases where the context that determines the block
id of a command is not provided.
2025-01-20 14:38:40 -08:00
Sylvie Crowe
42766d096a
fix: wsh error copy rewrite (#1770)
The previous version of this was giving undefined values for some users.
This rewrites it and removes an unnecessary memo that may have been
causing the issue.
2025-01-17 19:19:56 -08:00
Sylvie Crowe
618f5f879c
Add a Scrollbar to the SSH Error Popup (#1741)
This modifies the SSH error popup in the following ways:
- adds a scrollbar to the error message so it is easily viewed
- overlays a copy button so it's easy to copy
2025-01-16 18:33:50 -08:00
Mike Sawka
9dc9066a81
conn updates 5 (#1755)
* token swap
* setting environment variables for different local/remote shells
* bug fixes for init scripts
* more logging
* update connserver startup flow
2025-01-16 11:17:29 -08:00
Sylvie Crowe
e555eaa765
Limit User Input Modal to One Window (#1730)
When a connection request is made from a block, only ask for user input
in the window that made the request.
2025-01-15 18:55:12 -08:00
Sylvie Crowe
309571e288
fix: yvalMeta .name null check (#1740)
While it is rare, we have had users report an error where the access of
`.name` in SingleLinePlot causes a bug. The only time this could happen
would be a null `yvalMeta`. This makes it so the .name check is skipped
if yvalMeta is null. Addresses #1724.
2025-01-15 18:54:15 -08:00
Evan Simkowitz
8cf0b31858
Fix dir preview table header width so it still expands to fill whole view (#1737)
My last fix to set `width: fit-content` for the dir preview table header
ended up meaning that if the widget is wider than the table, the header
wouldn't extend to the full width of the widget. Now it will.
2025-01-14 22:52:57 -08:00
Mike Sawka
a24fe750c5
conn updates 4 (#1726) 2025-01-14 14:09:26 -08:00
Sylvie Crowe
a44a1a4b4b
Remove Old Prototype Plot (#1721)
Removes obsolete plot widget from a prototype version of the app.
2025-01-13 11:55:04 -08:00
Sylvie Crowe
99e122d724
RcFileInstall RPC Command (#1720)
Creates an RPC command for installing shell rcfiles instead of relying
on a separate installation session.
2025-01-12 16:31:00 -08:00
Sylvie Crowe
0174e7cd07
RemoteInfo Rpc (#1719)
Adds an Rpc Command for getting RemoteInfo. This is used to replace the
session that was used to determine the shell on remote machines.
2025-01-12 15:22:07 -08:00
Sylvie Crowe
5a7771bf40
Update Wsh Command (#1715)
This adds an RPC command for updating wsh on a remote machine without
starting a new session. It is not being used yet, but will be used for
connections using a single server in the future.
2025-01-10 21:29:06 -08:00
Mike Sawka
ba5f929b3f
conn updates 3 (#1711)
lots of misc connection refactoring / fixes:

* adds blocklogger as a way to writing logging information from the backend directly to the a terminal block
* use blocklogger in conncontroller
* use blocklogger in sshclient
* fix remote name in password prompt
* use sh -c to get around shell weirdness
* remove cmd.exe special cases
* use GetWatcher().GetFullConfig() rather than re-reading the config file
* change order of things we do when establishing a connection.  ask for wsh up front.  then do domain socket, then connserver
* reduce number of sessions required in the common case when wsh is already installed.  running the connserver is now a "multi-command" which checks if it is installed, then asks for the version
* send jwt token over stdin instead of in initial command string
* fix focus bug for frontend conn modal
* track more information in connstatus
* simplify wshinstall function
* add nowshreason
* other misc cleanup
2025-01-10 14:09:32 -08:00
Sylvie Crowe
a3cbcc5a77
Widget Config Magnify (#1689)
Introduces a configuration option to widgets to allow them to magnify on
startup.
2025-01-08 15:02:55 -08:00
Evan Simkowitz
5c3eba2644
Fix directory preview head width (#1691)
The head was set to `100%`, which meant that it only was as wide as the
viewport, rather than its contents, which can overflow. Now, the width
is `fit-content`, which allows it to overflow with its contents so that
the background and border extend the full width.
2025-01-07 17:17:28 -08:00
Mike Sawka
55f03730bc
add term:allowbracketedpaste, default false (#1688) 2025-01-07 10:55:26 -08:00