Extracts the validation message out of the `TextInput` component.
For a nice and flexible layout we should render the validation message
outside of the `TextInput` component and just do text input.
If a comment or an issue had at least one additional edit, we show a `edited` label,
which on hover shows the standard tooltip with more information on
who edited it and when.
We stop using the disabled `Popover` component. Instead of using the
disabled component it is simpler to just not use the component at all.
This also avoids issues where the toggle button of the `Popover` was
nested inside the button in `src/App/Header/Authenticate.svelte` which
in turn created problems with `.getByRole` selectors in tests.
Because of this change we can also drop the use of `NodeId` in places
where it simply displays the node ID and avatar.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Replaces `input type="checkbox"` elements in Markdown with our new custom
IconSmall webcomponent.
Doesn't support disabled checkboxes yet, since there is no way to define
them in markdown.
We currently use all three ways of importing lodash.
The one that provides us with the smalles bundle size is.
```
import isEqual from "lodash/isEqual";
```
So we should use that everywhere
The current Error that can be copied by users, isn't very helpful for
debugging.
We should stringify the entire error, with zodIssues, path, body, etc.
for useful debugging.
- simplify positioning
- make sure they expand depending on content, yet have a min width
- add a popover for the connected button state, move httpd info from the
authenticated button into this popover
- fix external link styling
- make the hover outline color pink
- use key icon in connect/authenticate modal
- use person without hat for contributors
- use +- icon for diffs
- use color to distinguish between track/tracking states
We elminitate the element with the “button” role that wrapped the
Popover toggle slot. The element rendered into the slot is in all cases
already a button. This prevents issues where `getByRole("button")` finds
_two_ buttons for popover toggles.
We take the opportunity to simplify the popover toggling by making the
slot responsible for the toggle. This has a couple of advantages:
* We don’t need a `disabled` property for Popover. This is handled by
the button. (This fixes a bug we did not disable the PeerSelector
Popover properly.)
* The popover is opened on key events
In the future this also gives us more flexibility in determining how to
toggle the Popover.
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>