Code Monkey home page Code Monkey logo

Comments (8)

mikedilger avatar mikedilger commented on September 28, 2024 1

Since 99% of this is done, let's close this and I'll open an issue for 'C' separately.

from gossip.

mikedilger avatar mikedilger commented on September 28, 2024

Branch for this work is 'auth'. WARNING: It will upgrade your LMDB in a way that makes it unusable back on unstable/master. Make a copy of your LMDB first in case you need to roll back.

Here is the work that is finished, and the work that is still needed:

  • Augment Relay record to remember if a relay is approved or denied for both connection and authentication b193445
  • Migrate to that new record b193445
  • When AUTH request comes in, honor the relay setting. If the relay setting is still None, store data in GLOBALS to signal the UI that the User needs to be asked, and provide ToOverlord message handlers to handle the user action by both storing the answer and signalling the relay to either AUTH or not. a0ef26d
  • When a connection to a new relay happens, honor the connection setting. If the connection setting is still None, store data in GLOBALS to signal the UI that the user needs to be asked, and provide ToOverlord message handlers to handle the user action by storing the answer and either starting the minion or not f0aad07
  • Settings for both connection and auth, off by default, turning them on engages the new logic and requires per-relay approvals
  • Relay pages in UI to offer switches for these two new settings
  • UI to interact with the user to handle pending approvals - there may be many at once.

from gossip.

mikedilger avatar mikedilger commented on September 28, 2024

This issue is ready for UI work now.

from gossip.

dtonon avatar dtonon commented on September 28, 2024

Final design after discussions on TM:

Screenshot 2024-03-12 alle 22 58 11

from gossip.

dtonon avatar dtonon commented on September 28, 2024

Notes about different and less intrusive approaches that can be evaluated for the future:

  • We can move the modal content to a standard view and show a new menu item, that display an alert dot when there are new elements to review;

  • We can show the permission request at the thread level (e.g., with an icon) so that the user knows that in order to view all the notes, he has to approve other relays;

from gossip.

bu5hm4nn avatar bu5hm4nn commented on September 28, 2024

@dtonon Mike has merged the branch into unstable. Can you review and see if what we have is good for a 0.10 release?

from gossip.

dtonon avatar dtonon commented on September 28, 2024

@bu5hm4nn it works well!
Some details:

image

  • A - In dark mode the Decline button should also have the Primary style (white)
  • B - Would be nice if the scrolling was "external" to the modal padding, so on the extreme right
  • C - The buttons on the backuground are still active to hover/press, even if the action is not triggered
  • D - If possibile would be nice to lengthen the line going down a little bit
  • E - The light box background should be darker, both on dark and light theme - Already fixed and pushed
  • F - Keep the alignment
  • G - Trim the final slash

I would also remove the "wss://" to improve readability, but I suppose protocol is an important element in the approval evaluation, right @mikedilger?
Since encrypted protocol should be the standard, maybe in the future we can globally introduce a new way to visualize the protocol, adding a warning icon near the relays that are ws://. I will open an issue to track this idea.

from gossip.

bu5hm4nn avatar bu5hm4nn commented on September 28, 2024

All are fixed on unstable, except for 'C'. That one is an egui bug I cannot easily fix. However once we use our own widgets, we can avoid doing the click ui action when disabled.

from gossip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.