Commit Graph
47 Commits
Author SHA1 Message Date
Sebastian MartinezandRūdolfs Ošiņš f8ddbbf5da Remove svelte-routing and add custom routing
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-07 08:57:37 +01:00
Rūdolfs Ošiņš d885b4076d Correctly detect custom HTTP API ports
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-11-03 09:37:27 +01:00
Rūdolfs Ošiņš ab59f11727 Clean up config
Move constants that are tightly coupled to the implementation of
features and unlikely to change or be user configurable out of `config.json`.
Decouple configuration from wallet state.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-21 09:08:10 +02:00
Rūdolfs Ošiņš afbcf8a72e Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 15:00:22 +02:00
Rūdolfs Ošiņš 8733636d6e Revert "Upgrade dependencies"
This reverts commit 885811eb9a.
2022-10-17 15:40:13 +02:00
Rūdolfs Ošiņš 885811eb9a Upgrade dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-17 10:19:32 +02:00
Rūdolfs Ošiņš f6165978f8 Remove remaining Gnosis safe code
This should have been removed in
cb12d8eeab.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-11 17:36:07 +02:00
Rūdolfs OšiņšandBrandon Oxendine b35d46752f Add theme switching button
Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-15 12:45:56 +02:00
Rūdolfs Ošiņš 591c19a256 Refactor typography styles
- Move all global typography styles to its own file. This makes it
  easier to find all the typography related definitions for newcomers.

- Prefix all typography related global CSS classes with a unique prefix
  `.txt-`. This allows us to grep the codebase and see exactly where
  they are applied. Another benefit of this convention is that it helps
  to avoid accidentally mixing global and local styles. Having global
  CSS classes that sometimes overlap with component CSS classes makes it
  very hard to reason about the resulting visuals and making changes
  unpredictable.

- Introduce CSS variables for standardised typography sizes and apply
  them to the whole codebase consistently. This way we can adjust the
  size in one place and it will be applied everywhere.

- Avoid using predefined HTML tags which might have differing styling
  from browser to browser, e.g. `<h1>`, `<strong>`. We should stick to
  applying styling either by adding a specific global CSS class or using
  the predefined CSS variables, this way we can be sure that the styles
  won't be overridden by browser defaults.

- Have a minimal set of modifiers `.txt-monospace` and `.txt-bold` and
  apply them consistently. Since `.txt-monospace` is defined via a CSS
  variable, we'll be able to switch out fonts via a user setting in the
  future.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-09 14:50:26 +02:00
Rūdolfs Ošiņš b3cec1f314 Format *.ts, *.js, *.css, *.html, *.json and *.svelte
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 17:47:07 +02:00
Rūdolfs Ošiņš 93b7b6b2a0 Extract global .badge class into a component
By encapsulating the global `.badge` class into a component we make reasoning
about how badges look a bit easier, because now there's a single place
where it is defined. Otherwise it is not guaranteed that the class is
going to be applied to the correct html tag. This also makes combining
global CSS classes that don't make sense from a design perspective
impossible.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:12:19 +02:00
Sebastian Martinez c5d5053f0c Add patches
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-01 13:06:30 +02:00
Sebastian Martinez ab7ba33182 Change Avatar address prop to title
We wont have always an address available to be passed as title for the Avatar
component, e.g. when working with URNs.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-06-03 16:56:40 +02:00
Alexis Sellier d1994fa310 Show avatar in sign in button
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-05-18 15:45:47 +02:00
Sebastian Martinez 9cd353282b Fix nameOrAddress resolution to be more specific
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-03-30 17:22:04 +02:00
Alexis Sellier ff94d8867c Fix address showing avatar/name without resolve
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 13:57:45 +01:00
Sebastian Martinez a43ac33ddc Refactor org and user routes
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-08 10:16:45 +01:00
Sebastian Martinez 04ec3319e4 Add Responsive Layout
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-04 12:39:41 +01:00
Alexis Sellier b422550035 Use ENS-based path when available
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-11-23 13:53:44 +01:00
Sebastian Martinez fe54bcacdc Show blockies when avatar image is missing
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-10-07 13:31:07 +02:00
Alexis Sellier ff1a2fc87a Always show an address while loading
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-21 18:06:03 +02:00
Alexis Sellier 5226591a63 Reduce number of requests for profiles
Introduce two types of profile: a 'full' and a 'minimal'.
The minimal is used when only the avatar is required, which
is in most places. Requests for an org view is reduced by 3x.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-02 11:52:54 +02:00
Alexis Sellier 4cb4be4e6b Don't use _blank for internal link 2021-07-21 17:25:27 +02:00
Alexis Sellier 2928e2fe14 Implement org profile fallback
When an org doesn't have its own profile, but its owner does,
we fallback on that profile.

This allows for "user" orgs, where a user keeps his projects
anchored under an org, but all profile information under the user.
2021-07-21 16:39:58 +02:00
Alexis Sellier d8a3779293 Improve org page loading visuals 2021-07-20 15:21:25 +02:00
Sebastian Martinez 19c4f2625f Add user identities to components
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-07-19 08:06:30 -03:00
Alexis Sellier 0220f96947 Address links to explorer when contract 2021-07-13 13:26:00 +02:00
Alexis Sellier 9034a60afd Improve copy for multisig 'SetName' flow
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-06-22 13:07:03 +02:00
Sebastian Martinez 1960c4fe79 Change script lang to ts
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-18 09:21:42 -03:00
Alexis Sellier 044ec510b8 Don't lookup registration if there is none 2021-06-16 17:14:16 +02:00
Sebastian Martinez 5c63c1da1b Remove await in user view and address for now
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-16 11:16:38 -03:00
Sebastian Martinez 7a42d7271c Check AddressType of EOA
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-16 11:16:38 -03:00
Sebastian Martinez b74943609d Refactor await in Userview and Address
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-16 11:16:37 -03:00
Sebastian Martinez 488b5b9136 Use new avatar in User View
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-16 11:16:37 -03:00
Sebastian Martinez a9eebfa033 Resolve ENS name in Address component
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-16 11:16:36 -03:00
Sebastian Martinez baa77d4269 Add User View Route
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-06-16 11:16:34 -03:00
Alexis Sellier e7ef9e7ad9 Show anchor state in project view 2021-06-11 18:30:26 +02:00
Alexis Sellier 00a0df938c Remove default underline for anchor tags 2021-06-11 12:00:16 +02:00
Alexis Sellier 36196ed7fc Color "safe" badge differently 2021-06-03 16:07:02 +02:00
Alexis Sellier 8f9efa51be Link to safes 2021-06-03 16:03:35 +02:00
Alexis Sellier ef1c285712 Identify Safe addresses 2021-06-03 15:42:28 +02:00
Alexis Sellier 86368b3b8a Resolve ENS names 2021-06-03 14:20:23 +02:00
Alexis Sellier 86df6db88e Cleanup address identification 2021-06-03 11:56:53 +02:00
Alexis Sellier ddd1fa8097 Show loader when loading address type 2021-06-01 18:01:31 +02:00
Alexis Sellier 8817d63d41 Link to org if org 2021-05-31 19:01:55 +02:00
Alexis Sellier 7e30182478 Detect org addresses 2021-05-31 18:56:41 +02:00
Alexis Sellier b49699dfe0 Improve address rendering 2021-05-31 18:32:19 +02:00