100 Commits
Author SHA1 Message Date
Tobias Järvelöv 5949744613 Merge branch 'replace-raw-values-with-constants' 2026-10-09 16:14:28 +02:00
Tobias Järvelöv 19c987314b Replace static values for dimensions with the dimensions constants 2026-10-09 16:13:37 +02:00
Tobias Järvelöv 6378233858 Add constants for dimensions used in the app 2026-10-09 16:13:37 +02:00
Tobias Järvelöv e95b959842 Merge branch 'use-locationselector-in-select-location-view-des-2995' 2026-10-09 15:19:12 +02:00
Tobias Järvelöv 8ea4fe509c Merge branch 'npm-update-dependencies' 2026-10-09 14:28:14 +02:00
Tobias Järvelöv 1e85f9d40e Update source-map-js to 1.2.2
Fixes:

- GHSA-68fv-2mgg-jv7q
2026-10-09 14:27:25 +02:00
Tobias Järvelöv b01a655a50 Update handlebars to 4.7.10
Fixes:

- GHSA-8r5x-fm3f-whwj
- GHSA-p8wg-vrv2-v86f
- GHSA-xw65-4hp5-5hc7
2026-10-09 14:27:12 +02:00
Tobias Järvelöv 8b3edeed11 Update npm to 12.2.0 2026-10-09 14:26:56 +02:00
Tobias Järvelöv d1801292bf Merge branch 'upgrade-electron-to-44-des-3239' 2026-10-07 15:58:46 +02:00
Tobias Järvelöv 6c36650c47 Reduce initial map from 493 px to 488 px
The `493` value is most likely an arbitrary picked one. The `488`
value is based on the app window height minus the header app.
2026-10-07 15:49:38 +02:00
Tobias Järvelöv 742f465cc6 Increase initial map height when app window is pinned on Windows
The app window size is 8px taller when the app is pinned on Windows,
this is an earlier hack we still have to do as otherwise the app
window is not the desired height of 568px.

However, with a recent upgrade to Electron 44 we noticed the map did
not render correctly and a black bar was seen on top of the map canvas.
This happened because the height of the initial render does not account
for the 8px added to the window size, as the initial render uses a
static value of 493px for the map, which does not correctly account for
the entire height that the map should be and the problem does not get
resolved by subsequent renders where we dynamically adjust the canvas
height.

Adding an extra 8px to the static value of 493px when the app is pinned
on Windows fixes this issue.

Relevant comments have been added in the code to clarify the
relationship between the map height and the app window height.
2026-10-07 15:49:38 +02:00
Tobias Järvelöv 46dc786a3a Remove extra padding of width for pinned window on Windows
This issue is no longer present in Electron 44+.
2026-10-07 15:49:38 +02:00
Tobias Järvelöv 0fdbbea8f6 Update @types/node to 24.13.6 2026-10-07 15:49:28 +02:00
Tobias Järvelöv 5ddbd78340 Update node to 24.17.0 to match electron version 2026-10-07 15:49:21 +02:00
Tobias Järvelöv b368ed12e9 Update electron to 44.5.1 2026-10-07 15:49:13 +02:00
Tobias Järvelöv cb9d77fdcd Merge branch 'aria-hide-location-selector-icon' 2026-10-02 10:52:28 +02:00
Tobias Järvelöv 238ef1a454 Merge branch 'remove-animation-from-locationselectorclearbutton-des-3252' 2026-10-02 10:50:22 +02:00
Tobias Järvelöv 7ef68ad6a7 Merge branch 'hide-location-selector-input-from-screen-readers-until-des-3251' 2026-10-02 10:00:52 +02:00
Tobias Järvelöv 7d73e506c4 Merge branch 'improve-divider-accessibility-des-3250' 2026-10-02 09:38:40 +02:00
Tobias Järvelöv fc009320ec Merge branch 'add-mode-prop-to-animated-list' 2026-10-02 09:23:28 +02:00
Tobias Järvelöv d67c185ba4 Merge branch 'add-height-and-min-height-styles-to-gallery-component' 2026-10-02 08:52:33 +02:00
Tobias Järvelöv 2afcddb8c4 Merge branch 'fix-npm-vulnerabilities' 2026-10-01 16:29:17 +02:00
Tobias Järvelöv 2766f09b50 Update fast-uri to 3.1.8
Fixes:
- GHSA-58mr-gqgx-xq4g
- GHSA-hrr3-gc8f-f4qj
- GHSA-qw65-cvwx-89v3
2026-10-01 16:28:47 +02:00
Tobias Järvelöv 0604c4f9be Update brace-expansion
Fixes:
- GHSA-6j4f-fj2g-mc7p
- GHSA-q2hr-2g5m-vwhr
- GHSA-qhr7-859c-m2p7
- GHSA-6j4f-fj2g-mc7p
- GHSA-q2hr-2g5m-vwhr
- GHSA-qhr7-859c-m2p7
- GHSA-6j4f-fj2g-mc7p
- GHSA-q2hr-2g5m-vwhr
- GHSA-qhr7-859c-m2p7
2026-10-01 16:28:42 +02:00
Tobias Järvelöv 0827ef753d Update undici
Fixes:
- GHSA-2gqq-gqf2-x968
- GHSA-2jfj-6hjv-fm6j
- GHSA-3wwx-pv8p-q78v
- GHSA-3xpg-4rpp-hhhm
- GHSA-8436-99hf-9mmv
- GHSA-pmjh-fq2x-6v4x
- GHSA-r53p-7pc4-xj5r
- GHSA-rfgv-xxqx-mfg5
- GHSA-rx4f-c7p8-82vq
- GHSA-w293-vg96-wgc3
2026-10-01 16:28:37 +02:00
Tobias Järvelöv 765c12152a Update @grpc/grpc-js to 1.14.5
Fixes:
- GHSA-f596-whhp-79r4
- GHSA-m9gg-hp2v-232j
2026-10-01 16:28:29 +02:00
Tobias Järvelöv 6d761b8109 Merge branch 'add-onscroll-prop-to-navigationscrollbars-des-3249' 2026-10-01 16:27:21 +02:00
Tobias Järvelöv bb7d800a3d Merge branch 'add-trigger-component' 2026-10-01 16:06:15 +02:00
Tobias Järvelöv d526fb57df Merge branch 'add-delay-and-touched-props-to-text-field-hook-des-3248' 2026-10-01 16:04:14 +02:00
Tobias Järvelöv 23b8cd3dce Merge branch 'update-carousel' 2026-10-01 15:09:00 +02:00
Tobias Järvelöv c35cb5de9e Merge branch 'update-scrollbar' 2026-10-01 14:15:58 +02:00
Tobias Järvelöv 182a03e07d Merge branch 'local-network-sharing-guide-button-should-be-of-secondary-des-3218' 2026-09-28 11:17:21 +02:00
Tobias Järvelöv 52b600b0b4 Merge branch 'make-buttons-fully-rounded-des-3209' 2026-09-28 10:46:38 +02:00
Tobias Järvelöv 0e64c4735b Merge branch 'handle-regression-of-start-minimized-setting-disappearing-on-des-3219' 2026-09-22 16:34:40 +02:00
Tobias Järvelöv f83b649947 Re-enable test of "Start minimized" setting on Linux 2026-09-22 16:33:24 +02:00
Tobias Järvelöv 0ca784dd81 Add back "Start minimized" setting on Linux 2026-09-22 16:33:24 +02:00
Tobias Järvelöv 8baa1078aa Merge branch 'use-react-compiler-in-app-des-2998' 2026-09-18 14:33:23 +02:00
Tobias Järvelöv 2ac0fb6866 Refactor memoized functions recursively calling themselves
It is not currently supported by React compiler to have a function
that is memoized be calling itself recursively.

To work around this limitation we declare a non-memoized function
within the memoized function which can recursively call itself instead.

With this change, the original `render` function in the `Map`
component did nothing more than calling `animationFrameCallback`, as
such the `animationFrameCallback` and `render` function has now been
merged.

With this function merge, the resulting function was memoized using
`useCallback` instead of `useEffectEvent` as the latter is only able
to be called from a `useEffect`, but we need to call it from other
`useCallback` functions as well.
2026-09-18 14:28:57 +02:00
Tobias Järvelöv 8547550383 Refactor to only call useEffectEvent callback from a useEffect 2026-09-18 14:28:57 +02:00
Tobias Järvelöv 359f1716a8 Refactor to remove use of ref in render
Use of `ref` during rendering is not supported by React compiler.
2026-09-18 14:28:57 +02:00
Tobias Järvelöv 60f356c2e4 Refactor to derive value for featureIndicators instead of useRef
We don't need the `useRef` as we can just derive the data from the
`tunnelState` directly.
2026-09-18 14:28:57 +02:00
Tobias Järvelöv 3291e11d0a Refactor code to remove use of try/finally
React compiler does not support the try/finally statements.
2026-09-18 14:28:57 +02:00
Tobias Järvelöv bb35605e30 Refactor code where destructuring is used to omit an object key
React compiler does not support that and will throw an error.
2026-09-18 14:28:57 +02:00
Tobias Järvelöv 5fd0a8c75b Refactor to use useEffectEvent when setting state in a useEffect 2026-09-18 14:28:57 +02:00
Tobias Järvelöv da67cdac98 Remove comments disabling React ESLint rules which are no longer needed 2026-09-18 14:28:57 +02:00
Tobias Järvelöv f7027b0675 Use React compiler 2026-09-18 14:28:57 +02:00
Tobias Järvelöv d9b2cb7165 Use recommended React hooks ESLint rules 2026-09-18 14:28:57 +02:00
Tobias Järvelöv f659259ed7 Update eslint-plugin-react-hooks in order to configure compiler rules
Remove the `eslint-plugin-react-compiler` dependency as it has been
merged into the `eslint-plugin-react-hooks` package.
2026-09-18 14:28:52 +02:00
Tobias Järvelöv 1ac36c56c8 Add oxc-transform-react to enable React compiler 2026-09-18 14:28:42 +02:00
Tobias Järvelöv ffbf91e5d1 Merge branch 'fix-custom-list-typo-click-on-a-location-to-add-it-to-a-list-des-3205' 2026-09-17 16:35:49 +02:00
Tobias Järvelöv 2b0825399c Update translations 2026-09-17 16:04:34 +02:00
Tobias Järvelöv a85f777f7e Update custom list usage hint message to use ... instead of + 2026-09-17 16:04:34 +02:00
Tobias Järvelöv c49303863c Replace use of nseventforwarder for macOS >= 27
Electron's native event handlers now fire properly for the blur event
and we do not need the `nseventforwarder` workaround anymore.
2026-08-25 09:19:35 +02:00
Tobias Järvelöv 12f80c3a05 Merge branch 'fetch-and-store-splitfiltermigration-in-redux-des-3053' 2026-08-19 14:46:34 +02:00
Tobias Järvelöv 9005914b38 Merge branch 'add-ability-for-button-component-to-handle-transitional-des-3059' 2026-08-19 13:57:17 +02:00
Tobias Järvelöv ebc02badc2 Merge branch 'add-wizard-components-des-3056' 2026-08-12 11:22:17 +02:00
Tobias Järvelöv c5fd016580 Merge branch 'add-type-prop-for-button-component-des-3050' 2026-08-12 11:12:56 +02:00
Tobias Järvelöv 1dfdd1cdbf Merge branch 'update-js-yaml-and-nanoid' 2026-08-11 15:49:45 +02:00
Tobias Järvelöv a4162e540f Merge branch 'fix-ui-e2e-tests' 2026-08-06 14:21:51 +02:00
Tobias Järvelöv bbfc8f516c Update "Tunnel state" E2E test to handle multihop tristate mode 2026-08-06 14:21:25 +02:00
Tobias Järvelöv 6efb5db3c3 Update "Multihop settings" E2E test to handle multihop tristate mode 2026-08-06 14:21:25 +02:00
Tobias Järvelöv 8ed182cd6e Merge branch 'update-npm-deps' 2026-08-05 10:58:08 +02:00
Tobias Järvelöv aad413150a Show only "Set as entry" menu option for Always multihop mode 2026-08-04 14:28:21 +02:00
Tobias Järvelöv 8872bdbfb7 Change SelectLocation view to exit when changing multihop mode 2026-08-04 14:27:00 +02:00
Tobias Järvelöv b0d639c8a0 Update translations 2026-07-17 15:16:16 +02:00
Tobias Järvelöv 59be44ba30 Merge branch 'update-local-network-sharing-info-popup-message-with-des-2968' 2026-07-13 18:52:52 +02:00
Tobias Järvelöv dac6760fc6 Update translations 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 3951bd934b Update label copy for SetAs*MenuOption to conform to Figma design 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 1606a6bbfa Use hook to determine if Daita is enabled without Direct only 2026-07-07 15:41:12 +02:00
Tobias Järvelöv fb422994f8 Add hook to return if Daita is used without Direct only 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 3424d90ba4 Extract logic for when to show "Set Entry/Exit" menu options into hooks 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 9401050578 Remove message in Daita settings view informing of Multihop being used
The "Daita multihop" feature indicator has been removed in favor of the
"Automatic multihop" feature indicator. A message in the Multihop view
will be shown when that feature indicator is present.
2026-07-07 15:41:12 +02:00
Tobias Järvelöv f26354868f Update Header menu to handle Multihop tristate
- Replace enable/disable multihop with menu items for each of the three
  setting options
- Add title for multihop menu items
- Add a divider between menu items for multihop and recents toggle
2026-07-07 15:41:12 +02:00
Tobias Järvelöv fc89a7d3ca Update existing mocked E2E tests to handle Multihop tristate 2026-07-07 15:41:12 +02:00
Tobias Järvelöv c12ac65a30 Update type for disabledLocation to be the same for all hooks 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 17a45a4311 Update Icon component to add a "placeholder" component
This component serves the use case where we want to occupy the same
dimensions as if we were to render an icon, but we don't want to render
an actual icon.

Can be used to ensure that a sibling component preserves its offset even
when an icon should not be shown.
2026-07-07 15:41:12 +02:00
Tobias Järvelöv 1bc4063330 Handle Multihop tristate in conversion to Relay selector predicate 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 8a006c8988 Remove "Daita: Multihop" and add "Automatic multihop" feature indicator 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 6b6fd34555 Update handler for setting Entry/Exit relay to not alter Multihop mode
Previously we automatically switched on multihop mode when setting the
entry/exit relay from the menu option, but with the tristate we can
no longer make this decision.

Instead, the current multihop mode will be preserved when changing
entry/exit relay because these menu options will be updated to not
be shown when multihop mode is set to `never`.
2026-07-07 15:41:12 +02:00
Tobias Järvelöv 4bcc36fef7 Replace boolean Multihop option with appropriate tristate mode 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 03796a712f Remove MultihopSwitch component 2026-07-07 15:41:12 +02:00
Tobias Järvelöv e5e3870804 Update management-interface package to extend workspace volta conf 2026-07-07 15:41:12 +02:00
Tobias Järvelöv 1c279bf09a Merge branch 'improve-modal-navigation-des-3041' 2026-07-03 14:58:27 +02:00
Tobias Järvelöv 0a65720901 Add StatusDialog component 2026-07-03 14:58:14 +02:00
Tobias Järvelöv 09b14f96f8 Merge branch 'add-support-for-unpinned-window-on-macos-des-448' 2026-06-24 13:19:49 +02:00
Tobias Järvelöv 1b5f5e32fb Update translations 2026-06-24 13:19:34 +02:00
Tobias Järvelöv a763a6579e Handle updated translation string for tray icon 2026-06-24 13:19:34 +02:00
Tobias Järvelöv 0f4ee0868f Use "menu bar icon" on macOS and "tray icon" on Windows/Linux
Standardize how we refer to the icon by using platform naming
conventions.
2026-06-24 13:19:34 +02:00
Tobias Järvelöv 0cb3aebbec Set app window background color on macOS to dark blue
In order to prevent a white flash when opening the app. This flash is
only visible for a very short while when unpinning and pinning the app,
but the experience is especially unpleasant if the user is using dark
mode.
2026-06-24 13:19:34 +02:00
Tobias Järvelöv c6f31b8ba1 Remove behavior where right clicking the tray icon hides the window 2026-06-24 13:19:34 +02:00
Tobias Järvelöv d8f9bb4249 Add changelog entry for "Unpin app" setting on macOS 2026-06-24 13:19:34 +02:00
Tobias Järvelöv b3711f087e Update translations 2026-06-24 13:19:34 +02:00
Tobias Järvelöv 8e2b9e4714 Allow unpinned app to remain open when another window receives focus 2026-06-24 13:19:34 +02:00
Tobias Järvelöv e5929e1124 Stop nseventforwarder when window closes 2026-06-24 13:19:34 +02:00
Tobias Järvelöv 59f203171e Show unpinned window in dock only when in development mode 2026-06-24 13:19:34 +02:00
Tobias Järvelöv 4130021670 Make tests for "Unpinned window" and "Start minimized" run on macOS 2026-06-24 13:19:34 +02:00
Tobias Järvelöv d207dad736 Update the label for the unpin app switch to be platform specific
On macOS the bar is called "menu bar" and on Windows it is called
"taskbar".
2026-06-24 13:19:34 +02:00
Tobias Järvelöv 82df1c3bd1 Add "Unpin app" setting on macOS 2026-06-24 13:19:34 +02:00
Tobias Järvelöv 906854ea50 Merge branch 'npm-update-undici' 2026-06-22 14:26:40 +02:00
Tobias Järvelöv 5cad5e9c55 Update undici to 7.28.0
Fixes:
- GHSA-35p6-xmwp-9g52
- GHSA-g8m3-5g58-fq7m
- GHSA-hm92-r4w5-c3mj
- GHSA-p88m-4jfj-68fv
- GHSA-pr7r-676h-xcf6
- GHSA-vmh5-mc38-953g
- GHSA-vxpw-j846-p89q
2026-06-22 14:24:24 +02:00