NethServer / nethlink

https://nethesis.github.io/nethlink
0 stars 0 forks source link

bugs & features. improved data-sharing between windows #11

Closed therockerline closed 3 months ago

therockerline commented 4 months ago

Data Sharing

New way of sharing data between instantiated windows. The new mode involves the use of the Zustand library for the frontend part and a customised state management service in the backend part. Below is the operating diagram: data-sharing drawio

Usage of shared state in Frontend

The state shared between the various windows and the backend can be used via the appropriate hook:

const [getter, setter] = useStoreState<T>(selector: keyof LocalStorageData )

The syntax is deliberately similar to React's useState hook because it proposes a similar operation with the difference that the variable is not relegated to the component that defined it but is global and shared throughout the application (including the backend)

Usage of shared state in Backend

On the backend side, the status is also global and shared. The syntax for retrieving its value and updating it is as follows:

store.store[selector: keyof LocalStorageData] //for the getter
store.store[selector: keyof LocalStorageData] = value //for the setter

Also on the backend side there is a hook similar to React's useState but in this case the backend cannot handle the mutation of the value with a useEffect, for example. An example:

//\nethlink\src\main\classes\controllers\AccountController.ts
const [account, setAccount] = useStoreState<Account>('account')

Issues to solve before merge:

  1. [x] The cursor pointer disappears if I move to the bottom of the about section and then reposition myself on the Nethesis wording (adding underscore and cursor pointer)
  2. [x] When you switch to the last calls tab the margin-right of the side menu changes (set max-width for badge in queue calls)
  3. [x] Lack of translation of the label for the cellphone
  4. [x] In the presence if I put callforward or cellphone it always writes cellphone at the top
  5. [x] In the latest calls, if there is an unknown contact and the queue badge, the button (which appears on hover) for creating a new contact is positioned in an incorrect place
  6. [x] Improve management of the tel:// protocol (better regex to match also cmd: 'tel:')
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9677148217. Commit: cd481afec8fccb6e31ffba281cc81377ba9074aa

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9680576996. Commit: 5697345634ccf749061cc1232192a1704fac07f3

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9715688395. Commit: 57f636ce0def77fb050213769c7ec5fc34492993

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9716064579. Commit: 8c4b54d61cc0e82474c78ebd49fb53b9da7fd3e0

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9740197864. Commit: 003f783302ebacddd03d82eb9c7ccd5d2e6b99c8

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9740162505. Commit: 003f783302ebacddd03d82eb9c7ccd5d2e6b99c8

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9741450313. Commit: 210dca55493595a22c3d3acec27087d004e50b17

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9741589504. Commit: dc1032e25862ddf31b2a6d47f7b4c74658d6c61f

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9744106266. Commit: 796661e46857a891344c5f2db16d575bb026a0ac

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 4 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9790276487. Commit: d5715e9c67945788d32928cd2eaac5f400ed2596

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9836902599. Commit: eaf6e898681d5a123dcc43d5876852475b01bddf

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9839804812. Commit: 8e10388ddb72675f72517b7914d65e377f1c17d5

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9860352594. Commit: 661478f5e067c4dd8dc83b026442cf79d7cffe5e

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9860774599. Commit: be81bc3bcf610e8f8aa89e78fb783ea50907fee6

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9875315656. Commit: a7b29f4c76dd0f7bb5b1e7ebbd74dd73498b481f

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9875834195. Commit: cc90d83d7a64c7ebd6d9755b1300f6fe9e19b2e6

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9876045819. Commit: 8b4c4f27ba5bfb495a1884ac512bc6d819840686

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9876145362. Commit: c59c77bad46decdfa30a8c17771b8dc66130bf3a

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9888107235. Commit: ff375d1bf1be6a345fe502f9c03d03831bc4e7be

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9889979877. Commit: 02424c261d6de1da195168e78b06b8582bdb3c02

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9891739184. Commit: 82ec0e9e148c55031b687325971e86e9f8fb807b

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9940785551. Commit: 78f208a614a37681100ab6e1f7cca8b489f66590

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9941012397. Commit: fef03836c9a8e43d5353fbb33e9da29818831b69

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9941889779. Commit: 8298d1b2a3915aeb8c22704a515b873a1cd7c8d7

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9943074756. Commit: 7eb5abd7b45e56ec301519bc22f48c1388f22cdd

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9955355879. Commit: 2b72812a21dac91475b0739f67aed13bc8f27090

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9956976127. Commit: 29936223917835eb114941d275e179e72c0bf1e7

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9957848959. Commit: 453af636016b514208100c3c6257536202883d7b

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link
github-actions[bot] commented 3 months ago

Automatic builds from https://github.com/nethesis/nethlink/actions/runs/9958279252. Commit: 62545333225e45f21284bacaee837fc1d627e714

Name Platform Link
win-app.exe Windows Link
macos-app.dmg MacOS Link
linux-app.AppImage Linux Link