Commit Graph

770 Commits

Author SHA1 Message Date
Mike Sawka
e15d38a795
fix stream-file urls to use new remoteuri (#1984) 2025-02-17 17:55:57 -08:00
Mike Sawka
1929c70e04
add a key to specializedviewcomponent so that we don't get stale content displayed (#1981) 2025-02-17 14:37:09 -08:00
Evan Simkowitz
3c75d1314c
Revert replacehomedir (#1976)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: sawka <mike@commandline.dev>
Co-authored-by: Sylvia Crowe <software@oneirocosm.com>
2025-02-14 18:28:03 -08:00
Sylvie Crowe
6d7356fbf9
Drag and Drop Copy Sync or Replace UI (#1975)
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: sawka <mike@commandline.dev>
2025-02-14 17:41:29 -08:00
Evan Simkowitz
71e126072e
Add S3 fileshare implementation, improve cp behavior (#1896)
Adds the S3 `fileshare` implementation

This also updates `wsh file cp` so it behaves more like `cp` for things
like copying directories and directory entries. It's not meant to align
with `cp` on everything, though. Our `wsh cp` will be recursive and will
create intermediate directories by default.

This also adds new aliases for `wsh view`: `wsh preview` and `wsh open`

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: sawka <mike@commandline.dev>
Co-authored-by: Sylvia Crowe <software@oneirocosm.com>
2025-02-14 17:27:02 -08:00
Sylvie Crowe
eff01f0b98
feat: add an overlay to show general preview errs (#1974)
This adds an overlay much like the connection error and copy error ones,
but it is for general use in the various preview widgets.
2025-02-14 16:09:13 -08:00
Mike Sawka
c53c3d0f85
osc9283 and term bg (#1959) 2025-02-14 13:31:31 -08:00
Mike Sawka
e126463029
keyboard chord support, split up/down/left/right, and clear block (#1957) 2025-02-14 13:25:25 -08:00
Sylvie Crowe
2897053339
fix: remove final row during directory search (#1962)
A bug prevented the final row from being removed while searching for
directory files. Additionally, a console error would come up when the
directory was filtered far enough. This corrects a react dependency so
that is no longer an issue.
2025-02-14 01:12:41 -08:00
Sylvie Crowe
4978ea459f
fix: add tips widget to BlockRegistry (#1960)
A recent refactor introduced the BlockRegistry to add different types of
widgets. This was missing the tips widget, so it has been added to
correct that.
2025-02-14 00:20:51 -08:00
Mike Sawka
66249a0dc0
move viewprompt to the aiprompts dir (#1956) 2025-02-13 15:08:51 -08:00
Sylvie Crowe
075d3b1302
Shadcn Form and Label Components (#1958)
The first step in setting up the connmanager. Adds shadcn components for
form and label in addition to shadcn utils.
2025-02-13 15:07:08 -08:00
Sylvie Crowe
ef30221e0b
Allow AI Presets To Automatically Update Widgets (#1954)
This change makes it so changes to the presets file are no longer being
written to metadata. Instead, the preset data is read separately
(although it is still possible to override it with metadata if done
manually).

Because presets are being tracked separately, if the associated metadata
key is not set, changes to the `presets/ai.json` file will be applied
immediately without switching the preset choice. Note that `ai:preset`
is still used in metadata to associate a block with a preset.

Additionallly, this introduces a database migration to clear out the
metadata items starting with `ai:` except for `ai:preset`. This will
allow the change to apply to existing blocks in addition to new ones.
2025-02-13 13:38:12 -08:00
Mike Sawka
932376d8df
widgets context menu (#1955) 2025-02-12 14:29:59 -08:00
Mike Sawka
539559c603
launcher block (#1948) 2025-02-11 21:58:03 -08:00
Mike Sawka
af65c2cc8d
fix onFailLoad for helpview (#1951) 2025-02-11 17:20:45 -08:00
Mike Sawka
d36bd388e4
new replace, split-horizontal, and split-vertical layout actions... hook up cmd-d and cmd-shift-d... (#1931)
Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2025-02-10 16:32:23 -08:00
Mike Sawka
f0927879fd
quick refactor on viewmodels and components to make them more uniform (#1945) 2025-02-10 16:26:12 -08:00
Sylvie Crowe
2b060ebc98
File Drag and Drop Overwrite Prompt (#1932)
If a file drag and drop file fails because the file already exists, this
adds a popup to allow the operation to be retried with the overwrite
flag set. Additionally, it will make a similar dismissible popup to
cover other copy errors.
2025-02-10 15:21:52 -08:00
Mike Sawka
a73381296d
web bookmarks (#1930) 2025-02-07 16:11:40 -08:00
Sylvie Crowe
3e0712c55e
feat: add schema for widgets.json (#1929) 2025-02-07 15:39:57 -08:00
Sylvie Crowe
43a7451e8f
feat: add ai presets schema (#1928) 2025-02-07 14:56:11 -08:00
Mike Sawka
392fa508b1
new file typeahead control (#1913) 2025-02-06 18:02:16 -08:00
Sylvie Crowe
e018e7bb44
Drag and Drop File Copy (#1910)
Let's you drag and drop to copy files between preview widgets, even if
they use different connections.

---------

Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2025-02-06 15:31:45 -08:00
Mike Sawka
2aa3e4b6e6
fix crazy tab to 'preview' behavior (#1912) 2025-02-06 15:20:52 -08:00
Mike Sawka
6e2ff6c5fc
add tailwind to wave, support shadcn + donut chart as a POC (#1775) 2025-02-04 17:58:36 -08:00
Mike Sawka
3c5ff51cd0
fix directory scroll into view (#1901) 2025-02-04 17:49:27 -08:00
Sylvie Crowe
affd846388
feat: add connections schema (#1900)
This adds the schema needed for the connections.json file
2025-02-04 15:48:42 -08:00
Sylvie Crowe
6bcf65da56
feat: add read only marker and read only mode (#1899) 2025-02-04 12:11:42 -08:00
Mike Sawka
d7a9006f13
new tevents analytics framework (#1894) 2025-02-03 15:32:44 -08:00
Myles J.
cca18eefa4
Proposal: Add ability to hide widgets via config (#1864)
👋 Hello, I'm not sure if this warranted an Issue first but it seemed
small enough to just raise a PR. I'm happy to add something to the
documentation as well if you agree with the proposal.

There are some widgets that I'd rather not be displayed in the sidebar -
at the moment these are default widgets for which I cannot see any
existing means of omitting them via configuration. I'm proposing a
`display:hidden` field on the widget settings such that I can configure
the following:

```json
{
    "defwidget@ai": {
        "display:hidden": true
    }
}
```

I'm considering this option to be distinct from any means of outright
"disabling" the widget - that is to say that I've not chosen to filter
the widgets from the configuration because I'm not fully aware of the
project goals. Where for example I imagine that it might be useful to be
able to interact with a widget or it's config via the CLI or shortcut
regardless of visibility?

<img width="1421" alt="example"
src="https://github.com/user-attachments/assets/7cafa942-727d-4140-8940-38b4022f2ef0"
/>
2025-02-03 14:50:18 -08:00
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