Commit Graph
142 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš 00ff5c1c38 Simplify authentication logic 2024-03-15 13:13:13 +01:00
Rūdolfs Ošiņš a1db517346 Disable authentication in read-only mode
Tell the user how to enable experimental mode where authentication
works.
2024-03-14 16:57:36 +01:00
Sebastian Martinez d7521a4608 Don't store the entire node config in the httpd state
This should also fix the race condition, since we don't compare it for
running the checkState fn
2024-03-14 11:07:21 +01:00
Sebastian Martinez 0918d38be9 Add title attribute to anchor tags 2024-03-13 17:11:58 +01:00
Rūdolfs Ošiņš ad1fdca446 Show RID on ProjectCard 2024-03-13 10:39:59 +01:00
Sebastian Martinez 192524fe90 Add experimental switch in settings
Hide all read/write functionality behind this setting.
2024-03-07 10:35:21 +01:00
Sebastian Martinez 273dff2da4 Add target="_blank" attribute to external markdown links 2024-03-06 15:34:22 +01:00
Thomas Scholtes 67e16ea7dd Consolidate and optimize data fetching for ProjectCard
We consolidate the code that fetches the data for `ProjectCard` in one
module, adjacent to the `ProjectCard` component. We also consolidate all
the data into one interface to simplify the component API.

With the data loading in one place we can eliminate duplicate code and a
handful of helper functions.

The consolidation also allows us to discover some optimizations to
fetching: We parallelize requests and we use the commit detail endpoint
instead of the commit list endpoint. For the latter to pay off, we need
to deploy caching to the API.
2024-03-05 10:49:25 +01:00
Sebastian Martinez 16e858bd7a Update footnote regex to handle footnotes with spaces 2024-03-04 16:35:22 +01:00
Sebastian Martinez 4bb0e72841 Remove hash routing
Since we don't have or want any deployments on IPFS, and we don't have
much use for hash routing else, we can clean up some code and remove
some tests.
2024-03-04 14:39:36 +01:00
Thomas Scholtes 69429cb08f Re-use project-level data when browsing source code
We make source code browsing faster by re-using project-level data when
navigating between files. This comes at a cost: Project info (like the
issue counter), remotes and branches are only updated when the page is
hard-refreshed or the user navigates away from the source code view.
2024-02-28 14:15:58 +00:00
Sebastian Martinez add8a9ad94 Display images in source browser and diffs, enable preview for svgs 2024-02-27 16:59:07 +00:00
Rūdolfs Ošiņš 4a5e67dd2b Improve authentication error modal
We tell users to check their firewall and ad blocker settings in case
they bump into authentication problems. This also separates out the
modal to be only used by the session view.
2024-02-26 13:03:44 +00:00
Rūdolfs Ošiņš 41435951c1 Refactor BaseUrl string conversion
We're only using this as a string, so no need to convert it to an URL.
2024-02-23 15:46:28 +00:00
Rūdolfs Ošiņš 3cfddf8647 Show seed policy and scope in "online" button 2024-02-23 11:37:01 +00:00
Sebastian Martinez 1471fb1709 Add edited label to patches 2024-02-23 07:53:48 -03:00
Rūdolfs Ošiņš 975d1823a2 Show only pinned projects on node view
And style them visually similar to the landing page.
2024-02-22 05:33:36 +00:00
Sebastian Martinez dbfb56f37b Remove node config from httpdStore and poll only active tab and browser 2024-02-20 12:02:41 +00:00
dnlklmn 0bee4f1e03 Show absolute timestamps on edited markers 2024-02-19 22:26:11 +01:00
Rūdolfs Ošiņš f833fc506e Improve error message when local project is unavailable 2024-02-16 16:38:18 +00:00
Sebastian Martinez d216caec7d Improve catching of errors when loading routes
- Handle ResponseParseErros, ResponseErrors and normal errors
  differently.
- Show them all in the same `LoadError` view
- Add a subtitle to give users some more information on what could have
  gone wrong.
- Add more properties to the copyable error message to make debugging
  easier.
2024-02-15 13:26:11 -03:00
Sebastian Martinez 389ecc95ba Fix prefferedSeeds typo 2024-02-15 09:38:28 -03:00
Sebastian Martinez 0cd667c925 Add supportWebsite config param 2024-02-15 09:38:28 -03:00
Sebastian Martinez 364844f47f Remove unused error.ts file 2024-02-15 09:38:28 -03:00
Rūdolfs Ošiņš b5977588ae Show correct meta key on Linux/macOS in hotkeys modal 2024-02-13 13:53:58 +00:00
Sebastian Martinez 90de4d538c Open same page when clicking on make changes on local machine 2024-02-13 06:57:24 +00:00
Sebastian Martinez 76ed6399c4 Remove caching projects found status 2024-02-08 12:45:58 -03:00
Georgios Jason Efstathiou beb74abec3 Load home page sections asynchronously 2024-02-07 13:33:16 +00:00
Sebastian Martinez 2b3b8bc0de Add redirection to project depending on rad-web cwd 2024-02-07 11:47:08 +00:00
Sebastian Martinez f0758de9f3 Add reactions to patch revisions
- Also adapts to the new reactions API schema everywhere.
2024-02-02 13:33:07 +01:00
Georgios Jason Efstathiou b1411ae4a5 Implement new landing page 2024-02-01 17:29:40 +00:00
Sebastian Martinez ef7a2659b5 Fixes e2e test suite relation with seed.radicle.garden
- Due to missing preferredSeed config option we where trying to connect to
seed.radicle.garden on the fixture creation.
- This commit also starts first nodes before httpds due to the config
being updated by the node.
2024-01-29 17:17:03 +01:00
Sebastian Martinez 9ee2a4578f Add share button 2024-01-24 21:58:18 +01:00
Sebastian Martinez 196beca898 Change titles to font-weight semibold 2024-01-23 10:14:37 +01:00
Sebastian Martinez 10170d79e5 Add local switch and contextual help to sidebar 2024-01-19 17:01:01 +00:00
Rūdolfs Ošiņš b3e212ff5b Load theme in top-level App.svelte
Previously the theme was only loaded when the <ThemeSettings> component
was loaded in the footer. This stopped working since we removed the
layout around the loading spinner.
2024-01-02 14:25:59 +00:00
Rūdolfs Ošiņš 08d16dbbeb Implement two column layout 2024-01-02 11:48:19 +00:00
Thomas Scholtes 2b03aec645 Implement simplified authentication flow
We change the instructions to connect to a local node to use the
simplified authentication flow.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-12-19 13:49:53 +00:00
Sebastian Martinez 448c762831 Show edited label on edited comments and issues
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.
2023-12-15 07:10:14 +01:00
Sebastian Martinez 29a53f1ff6 Improve markdown footnotes 2023-12-11 15:00:50 +01:00
Sebastian Martinez 95ed1a0353 Adding embed editing in issues and patches 2023-11-28 10:59:55 +01:00
Sebastian Martinez b6ac9bd4a7 Improve handling of rawPath
Instead of computing it in multiple components, we should do it in
router.ts in the routes where we need it, and add the commit param when
we have it.
2023-11-27 14:12:24 +01:00
Sebastian Martinez eeba82017d Add permission checks for delegates and authors 2023-11-20 22:13:51 +01:00
Sebastian Martinez 54be2b78e4 Simplify nodeStore, and make it part of the httpdStore 2023-11-16 10:03:06 +01:00
Sebastian Martinez 84addf467d Show node state indicator 2023-11-15 16:21:47 +01:00
Sebastian Martinez 5742f15e28 Refactor Issue actions and related components 2023-11-15 09:32:10 +01:00
Sebastian Martinez 5e5f7fc12f Add editing to issue/patch descriptions, comments and replies
Also does some refactoring for `action`, `editable` and other variables
we were using which weren't very clear

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 16:27:54 +02:00
Sebastian Martinez 809daadd04 Remove search functionality
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 13:22:01 +02:00
Rūdolfs Ošiņšanddnlklmn d914710396 Implement new design
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-13 18:05:19 +02:00
Sebastian Martinez 1ef0f9dfd1 Add issue embeds
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 16:40:49 +02:00