Commit Graph
71 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš d0edc52831 Refactor search logic
- type events that are handed between components
- simplify the `resolve` function interface
  - before we had return values and exceptions, now just a single union
    type as return value
  - move navigation to the Search component to reduce its
    responsibilities
  - flatten and simplify multi-level branching
- shuffle around code
  - move the `resolve` function to the `Search` component module,
    because it's only used there

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-29 14:50:13 +02:00
Rūdolfs Ošiņš 251f9681bc Fix mobile context menu
Refactor and inline the MobileNavbar component into Header. This fixes a
bug where it wasn't possible to close the context menu once it was open.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:39:01 +02:00
Rūdolfs Ošiņš b8e7239ba4 Extract <TextInput /> component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-21 11:19:30 +02:00
Sebastian Martinez 138603ffd9 Improve search
Improve search heuristic and refactor search results to modal.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-15 13:06:34 +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ņš 81b60ab229 Move register button to the right side in the header
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-13 10:28:59 +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ņš dc8a8f883c Extract Button component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-06 11:36:31 +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ņš 94329d612f Require === and !== comparisons
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Rūdolfs Ošiņš c4769c8127 Refactor icon component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-24 09:17:11 +02:00
Rūdolfs Ošiņš 65bf2ae386 Refactor project header modals
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-12 16:23:59 +02:00
Brandon Oxendine 6edbd37c4c Unify border-radius
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-08-08 18:31:49 +02:00
Brandon Oxendine b687d37b03 Unify button heights
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
2022-07-13 13:51:32 +02:00
Alexis Sellier 4f86bf13a2 Remove orgs listing until it is redesigned
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-07-12 18:08:42 +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 60ac86c3d7 Improve seeds dropdown
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-05-18 15:45:47 +02:00
Sebastian Martinez 5ef2b7512c Add authentication with seed nodes
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-05-18 15:45:47 +02:00
Alexis Sellier 4835a7680a Fix header ellipsis fill
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-05 21:20:19 +01:00
Sebastian Martinez e3de337769 Move reactive config part into session state
This PR moves the signer "clones" the signer property from the `Config`
object into the `session` state, to allow Svelte reactivity, e.g. in the
Testnet Faucet, where we rely on `config.signer` but since it only
changes when the `Config` object in `App.svelte` changes we can't react
on it.

For now I only cloned the signer property, if we see in the future that
there are other properties that need to change with session we can add
them.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-02 15:25:58 +01:00
Sebastian Martinez 68395bceb2 Refactor responsive and fix mobile toggle nav
- Removes the base property from vite.config, until a better solution
  has been found, wasn't able to reproduce it locally in production
  build though.
- Moves desktop and mobile classes from components to index.css
- Used a own CSS hide mechanism for the ellipsis menu.
- Shortens the addresses in org and users view, and wraps orgs in user
  view

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-07 10:44:53 +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
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 e2cc61671b Show pinned orgs on the front page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-30 15:01:32 +02:00
Alexis Sellier 8493dfe52c Move orgs to home, and search to header
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-30 11:15:59 +02:00
Alexis Sellier a8fd990bfe Make sure address button doesn't overflow
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-16 20:59:08 +02:00
Alexis Sellier 3a5ee3f3d6 Display short addresses differently
Use an "en dash" instead of an ellipsis.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-16 14:31:54 +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 c90cf21952 Update svelte to v3.42.1 2021-08-20 10:54:41 +02:00
Alexis SellierandNjoku Emmanuel 400a2df0a4 Add WalletConnect support
Co-authored-by: Njoku Emmanuel <kalunjoku123@gmail.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-08-03 16:25:16 +02:00
Alexis Sellier 3bfb79dd47 Improve orgs list page and other UI elements 2021-07-28 11:19:45 +02:00
Alexis Sellier 8a6c2938a6 Remove ropsten network support 2021-07-20 14:41:20 +02:00
Alexis Sellier 1d7f48329b Fix indentation 2021-07-19 13:48:10 +02:00
Alexis Sellier 6aa4d4387d Adjust connect button width 2021-07-19 13:27:58 +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 28bfe1f81b Copy and UX fixes
Result of session with Abbey.
2021-07-13 13:22:59 +02:00
Alexis Sellier cb78b1f34f Don't display old balances
By storing the balance, we displayed stale data. This forces
the balance to be reloaded on refresh.
2021-06-26 10:41:25 +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 77b283c5d0 Don't let header wrap 2021-06-16 12:55:30 +02:00
Alexis Sellier 00a0df938c Remove default underline for anchor tags 2021-06-11 12:00:16 +02:00
Alexis Sellier 6d313a4d45 Implement project browsing 2021-06-09 20:53:35 +02:00
Alexis Sellier 08bf1e8dbb Improve app layout 2021-06-09 20:44:20 +02:00
Alexis Sellier 163e104068 Remove TODOs that have been done 2021-06-03 10:23:32 +02:00
Alexis Sellier 48eee6421d Improve small window rendering 2021-06-01 20:00:59 +02:00
Alexis Sellier 13c839c97b Always show orgs in header 2021-06-01 18:02:40 +02:00
Alexis Sellier baee4cea9f Fixes and improvements around org creation 2021-05-25 17:21:55 +02:00
Alexis Sellier b9ae147aea Remove redundant log 2021-05-21 18:41:29 +02:00
Alexis Sellier 34298a1081 Make sure we have a signer in some cases 2021-05-21 15:29:12 +02:00
Alexis Sellier 8e73432703 Use Alchemy as fallback provider 2021-05-21 15:06:14 +02:00
Alexis Sellier 0b4e009d89 Show network badge 2021-05-19 13:23:48 +02:00