Commit Graph
86 Commits
Author SHA1 Message Date
Mike SawkaandGitHub 174cf3d39d flash error messages (#369) 2024-09-12 16:02:18 -07:00
Evan SimkowitzandGitHub 936d4bfb30 Migrate websocket eventbus messages to wps (#367)
This migrates all remaining eventbus events sent over the websocket to
use the wps interface. WPS is more flexible for registering events and
callbacks and provides support for more reliable unsubscribes and
resubscribes.
2024-09-11 18:03:55 -07:00
Evan SimkowitzandGitHub afe73c3e85 Make the debounced node inner rect hook more reliable (#350)
Rather than try to track the transition state, which was proving
unreliable, I am just directly tracking the node state and determining
whether to debounce the inner rect based on whether the user has the
prefers-reduced-motion setting or query, whether the node is resizing,
and whether it's currently magnified. I'm then using the actual
animation time setting to determine how long to debounce.
2024-09-06 16:20:27 -07:00
sawka f51678415c fix ts errors 2024-09-06 11:13:55 -07:00
Mike SawkaandGitHub acae25f6e3 connmodal updates. connection colors, conn status in modal (#335) 2024-09-05 23:09:30 -07:00
sawka 98a55b2290 updates for local 2024-09-05 18:54:12 -07:00
Mike SawkaandGitHub 3e0ca6b41e connection handling / block controller handling (#326) 2024-09-05 00:21:08 -07:00
Evan SimkowitzandGitHub 74c8044c73 Add gap size setting (#325)
Adds a new setting for the gap size between tiles in a layout. Also
updates the resize handle calculations so they are dynamically generated
based on the gap size. Also updates the styling for the resize handles
to be more robust.

This also updates the default gap size to 3px.

This also slims out the Block Frame padding so it is just enough that
the blocks don't overlap when there's no gap.
2024-09-04 22:07:47 -07:00
Evan SimkowitzandGitHub 74612c7e62 Add user setting for the editor minimap (#321) 2024-09-04 14:00:29 -07:00
Mike SawkaandGitHub 7bc154771a implement wsh conn commands (#319) 2024-09-03 23:04:19 -07:00
Mike SawkaandGitHub e3b7ab73c0 preview refactor for keyboard/focus (#303) 2024-09-02 16:48:10 -07:00
sawka 74f551b212 connstatus fix, update connection icons appropriately for status 2024-08-30 13:56:53 -07:00
Mike SawkaandGitHub a104a6e446 new focus system part 1 (#290) 2024-08-29 16:06:15 -07:00
Evan SimkowitzandGitHub 637eaa4206 Use webview's built-in history for navigation (#232) 2024-08-29 13:37:05 -07:00
Evan SimkowitzandGitHub fb65ec1e23 Explicitly set focus on insert (#285)
Adds a flag to the insert layout action to explicitly set the focus of a
newly inserted node. This also adds a flag in the starter layout to
focus on the terminal block.
2024-08-27 23:16:07 -07:00
Mike SawkaandGitHub 8630e23239 new config system (#283) 2024-08-27 18:49:49 -07:00
Evan SimkowitzandGitHub c9c555452a Establish wlayout for coordinating backend layout actions (#282) 2024-08-27 18:38:57 -07:00
Mike SawkaandGitHub f28bdccb5d move CreateX functions to wcore (#275) 2024-08-26 15:17:37 -07:00
164afeeb66 Unified node model to pass data from layout to blocks (#259)
This adds a new NodeModel, which can be passed from the TileLayout to
contained blocks. It contains all the layout data that the block should
care about, including focus status, whether a drag operation is
underway, whether the node is magnified, etc.

This also adds a focus stack for the layout, which will let the focus
switch to the last-focused node when the currently-focused one is
closed.

This also addresses a regression in the resize handles that caused them
to be offset from the cursor when dragged.

---------

Co-authored-by: sawka <mike.sawka@gmail.com>
2024-08-26 11:56:00 -07:00
Sylvia Crowe fe8b1c1924 fix: correct ConnStatus uninitialized field 2024-08-24 15:27:14 -07:00
636d71e652 Change Connection UI (#269)
This allows the user to select different connections from the terminal
block. Some features include:
- a status bar at the top of the term block that shows your current
connection
- an icon next to the status bar that shows whether the connection is
currently connected
- the ability to click the status bar and type in a new connection in
order to change the current connection

---------

Co-authored-by: sawka <mike.sawka@gmail.com>
2024-08-23 18:12:40 -07:00
Red J AdayaandGitHub c1684d28d1 suggestions modal (#260) 2024-08-23 00:18:49 -07:00
Mike SawkaandGitHub dedfc31344 implement Cmd-I and restructure block viewmodels (#257) 2024-08-21 15:49:23 -07:00
Evan SimkowitzandGitHub e527e2ab77 Add authkey header for requests to the backend (#256)
With this PR, Electron will generate a new authorization key that the Go
backend will look for in any incoming requests. The Electron backend
will inject this header with all requests to the backend to ensure no
additional work is required on the frontend.

This also adds a `fetchutil` abstraction that will use the Electron
`net` module when calls are made from the Electron backend to the Go
backend. When using the `node:fetch` module, Electron can't inject
headers to requests. The Electron `net` module is also faster than the
Node module.

This also breaks out platform functions in emain into their own file so
other emain modules can import them.
2024-08-21 15:04:39 -07:00
Evan SimkowitzandGitHub 23261a7a98 Add flag for specifying a new node as magnified on insert (#253) 2024-08-20 20:14:14 -07:00