Commit Graph
66 Commits
Author SHA1 Message Date
Sebastian Martinez a41c3cd293 Add link to code line numbers
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-25 16:03:13 +01:00
Sebastian Martinez ee507215fb Refactor projects
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-21 22:42:52 -03:00
Sebastian Martinez 935044ac4c Move ProjectContentRoutes into View
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-21 22:42:44 -03:00
Sebastian Martinez cca38c8e27 Refetch remote branches when changing peer
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-12 07:08:12 -03: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 27895b7d0c Simplify project view by splitting components
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-11 16:54:30 +01:00
Alexis Sellier b9c4cda4cf Refactor project reactivity
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-11 16:21:03 +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 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 2fc2639b49 Fix anchor lookup in project view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 10:36: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 82a2ac6f64 Allow users to pass project names into URL
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-07 12:20:25 +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
Alexis Sellier 07e6a62f4a Fix project description on mobile
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-05 21:20:41 +01:00
Sebastian Martinez 7ba5ce0f60 Refactor source params into separate object
We had a lot variables that we had to pass down from the project view,
and only very few where important to the reactivity of the components.

By using the resolved Promise from `getProject` as transport we can use
now the `source` variable and get the required params by destructuring
it.

In short we can pack now the following params:
```
urn, org, user, seed, peer, project, branches, peers, config, anchors
```

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-26 10:03:26 +01:00
Sebastian Martinez 34673adf4d Show project with anchor when no commit hash passed
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-18 20:47:22 +01:00
Alexis Sellier 2836397883 Make seed stat link to seed page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-18 11:01:58 +01:00
Alexis Sellier 1e470f9530 Fix project root link to include seed
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-18 11:01:58 +01:00
Sebastian Martinez 83373ca507 Add peer selector
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-17 13:08:36 +01:00
Alexis Sellier 05ed8e15a0 Support for browsing seed projects
Eg. /seeds/seed.cloudhead.io/projects/:urn

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-14 12:23:34 +01:00
Alexis Sellier 298fe26e76 Replace event dispatching with bindings
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-13 16:33:56 +01:00
Alexis Sellier 5ec1654676 Fix reactivity when browsing source
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-13 12:42:22 +01:00
Sebastian Martinez ddf7b27f55 Add branch browsing and selector
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-13 10:37:01 +01:00
Alexis Sellier 8ecc15e808 Update URL when anchor toggle is used
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-22 11:02:54 +01:00
Sebastian Martinez 02eb4463c1 Add commits listing
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-20 13:39:05 +01:00
Sebastian Martinez 4b2c14e42e Refactor project browser
Extracts the header part of the project browser into a separate
component, some props and functions not necessary anymore in `Browser`
are passed into `Header` or into the superior project `View` and the
clickable parts of the header part are managed by Svelte Events.

This prepares the stage for commit listing and commit details.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-17 22:42:30 +01:00
Alexis Sellier 721ccff81b Improve code browsing text on mobile
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-07 13:48:19 +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 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 1b7a259515 Allow overriding eth.radicle.seed.host record
Adds two new records:

* eth.radicle.seed.api
* eth.radicle.seed.git

When specified, these override `eth.radicle.seed.host` for Git
and the HTTP API, respectively.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-11-23 13:06:39 +01:00
Sebastian Martinez 2c3f6c3238 Add toggle function to project anchor label
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-10-29 08:52:12 +02:00
Alexis Sellier b644a6e8b2 Use CAIP-10 to specify anchors account
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-12 16:21:07 +02:00
Alexis Sellier 1bd2c6d23f Fix centering of modals and a few other styles
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-12 16:09:47 +02:00
Alexis Sellier 3a327f8087 Fix page title and root path
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-11 18:50:38 +02:00
Alexis Sellier 18b28010bb Users can specify anchors address in ENS
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-11 18:42:33 +02:00
Alexis Sellier 08d7ee6a29 Fix parent link in project view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-11 17:23:19 +02:00
Alexis Sellier 398f5c8d09 Get anchors work in user projects
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-11 16:02:55 +02: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 db878546a0 Fix org avatar when none is set
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-22 18:15:37 +02:00
Alexis Sellier 2821409418 Show Seed ID on project page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-22 18:14:21 +02:00
Alexis Sellier 5647050b80 Give all pages a title
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-22 13:50:03 +02:00
Alexis Sellier 1879f983bd Use org name when available, otherwise address
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-22 10:50:17 +02:00
Alexis Sellier 287e56153a Improve project view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-16 14:32:01 +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 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 f8c99994d7 Use org seed if available in project view 2021-07-19 17:13:30 +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 c47a6d07d4 Make some improvements with small windows 2021-06-20 18:14:43 +02:00
Alexis Sellier 6bf8ba4a02 Fix content-width on project browser 2021-06-20 17:21:09 +02:00