Commit Graph
181 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš cb12d8eeab Remove deprecated Gnosis org functionality
This functionality is deprecated and the dependencies prevent us from
upgrading our stack.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-11 15:36:01 +02:00
Rūdolfs Ošiņš aae40b0b32 Remove deprecated the Graph queries
We have run out of funds on the Graph and the org functionality in its
current form is deprecated.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-10 17:26:59 +02:00
Sebastian Martinez b65399f9b4 Handle subgraph API quota exhaustion
We had to improve the logic when the subgraph API quota has been exhausted.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-23 15:10:28 +02:00
Sebastian Martinez 271fcde43f Remove deprecated org parts
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-13 10:31:28 +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
Sebastian Martinez b1e0c7a1b5 Add loading more projects
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-09-09 11:42:41 +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ņš 0200fad482 Inline .notice
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 11:21:13 +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ņš 853ed5c053 Require using const for variables that are never modified
And disallow modifying variables that are declared using `const`.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Sebastian Martinez 694bb38b8a Add caching
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-08-18 16:31:09 +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
Alexis Sellier 896372cd09 Some visual improvements to projects view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-04-05 17:04:57 +02:00
Sebastian Martinez 5384556f14 Add code activity graph to project widget
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-04-04 21:32:25 +02:00
Alexis Sellier 0a830432f7 Make project head optional
This is useful since some seeds may not have delegates synced.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-02 14:41:04 +01:00
Alexis Sellier c58db9d278 Implement more simplifications
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-12 00:37:00 +01:00
Alexis Sellier b9c4cda4cf Refactor project reactivity
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-11 16:21:03 +01:00
Alexis Sellier 88cc74dc02 Add orgs v1 deprecation notice
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-10 14:06:19 +01:00
Alexis Sellier 217bd814a6 Query delegate projects if radicle.id is set
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-10 13:23:41 +01:00
Sebastian Martinez f92dcbf06d Use Projects component in Seed View
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-09 17:45:38 +01:00
Sebastian Martinez 1e827eb458 Update OpenGraph metadata in subpages
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-09 16:07:10 +01:00
Alexis Sellier b2efbacb7e Fix 'any' type
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 14:42:29 +01:00
Alexis Sellier e6f4441be7 Revise seed config
No longer use `Config` to store the seed config.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 13:27:12 +01:00
Alexis Sellier 3fcbffe307 Don't query seed if no seed configured
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 12:22:46 +01:00
Alexis Sellier b26192f933 Start re-imagining anchors
* Anchors are loaded alongside projects, but project listings always
  come from seeds now
* Removing project info loading from `Widget`
* Start unifying anchor handling
* Rename "Project*" to "Anchor*" when appropriate
* Move to new project api with embedded metadata

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 10:36:03 +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 0263a5f032 Catch Seed class construction errors
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-07 11:35:54 +01:00
Sebastian Martinez aad01f74b4 Improve reactivity and UX of pending anchors
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-02 15:39:57 +01:00
Sebastian Martinez 321252592a Fix Org.get method
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-02 15:39:57 +01:00
Sebastian Martinez ea0e8bd3d3 Fix type errors
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-02 12:29:20 +01:00
Sebastian Martinez 0a2481792c Add unit & integration testing
* Add Cypress component testing
* Add SeedAddress component testing
* Add Error component test
* Add Search component test
* Add code coverage instrumentation
* Add BranchSelector component testing
* Add coverage check to CI
* Require node version 14

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-31 16:05:23 +01:00
Alexis Sellier 6b84e519d3 Make icon filling optional
We give the option to fill icons when needed, otherwise
the SVG is rendered "as-is".

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-18 11:01:58 +01:00
Sebastian Martinez 7cbdbd5944 Fix Org Treasury token balances
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-17 22:56:48 +01:00
Sebastian Martinez debf82ef36 Add error clause when fetching org members or orgs
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-17 13:19:39 +01:00
Sebastian Martinez 8b18e80068 Add SeedAddress to user page
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-14 12:01:54 +01:00
Sebastian Martinez 521a2bbf60 Refactor SeedAddress into separate component
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-14 12:01:40 +01:00
Alexis Sellier ce8db417ae Fix seed address spacing
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-22 11:27:04 +01:00
Alexis Sellier 41f8e27e9f Set org page width to 720px
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-07 13:30:48 +01:00
Alexis Sellier 05f47af8a2 Fix header link alignment and orgs
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-07 13:26:48 +01:00
Sebastian Martinez 72d5b3b34c Add seeds page
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-07 11:11:34 +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
Alexis Sellier a2a99140b8 Pass seed info to Projects widget
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-11-29 17:48:14 +01:00
Sebastian Martinez 97a8897d87 Add pending projects and anchor signing
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-11-26 13:18:17 +01:00
Sebastian Martinez 6588ccafff Add setOwner safe tx proposal creation
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-11-25 15:11:54 +01:00
Sebastian Martinez 7c3cfcac28 Remove org owner fallback in getProfile
Removes also some getProfile functions that were only used once.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-11-24 16:22:21 +01:00
Alexis Sellier 7398fa1e87 Only show treasury if there are balances
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-11-23 14:06:11 +01:00