Select which relays requests to this DVM should be sent to.
{#each dvmItem.tags || [] as [type, value], i (i + key)}
diff --git a/src/app/shared/FeedCard.svelte b/src/app/shared/FeedCard.svelte
new file mode 100644
index 00000000..58f42e6d
--- /dev/null
+++ b/src/app/shared/FeedCard.svelte
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+ {displayFeed(feed)}
+
+
+
+
+ {#if feed.description}
+ {feed.description}
+ {/if}
+
+
+
diff --git a/src/app/shared/FeedControls.svelte b/src/app/shared/FeedControls.svelte
index 23986e4e..128be82a 100644
--- a/src/app/shared/FeedControls.svelte
+++ b/src/app/shared/FeedControls.svelte
@@ -1,32 +1,21 @@
+
+
- {#if !hideType}
-
-
-
-
- {#if option === FormType.People}
-
- People
- {:else if option === FormType.Topics}
-
-
-
- Topics
- {:else if option === FormType.Relays}
-
- Relays
- {:else if option === FormType.DVMs}
-
- DVMs
- {/if}
-
-
-
-
-
onFormTypeChange(FormType.Advanced)}
- >Advanced mode
-
-
- {/if}
- {#if formType === FormType.People}
-
- {:else if formType === FormType.Topics}
-
- {:else if formType === FormType.Relays}
-
- {:else if formType === FormType.DVMs}
-
- {:else if formType === FormType.Advanced}
-
- {/if}
+
+
+ Choose a feed type
+
+
+ {#if option === FormType.People}
+
+ People
+ {:else if option === FormType.Topics}
+
+
+
+ Topics
+ {:else if option === FormType.Relays}
+
+ Relays
+ {:else if option === FormType.DVMs}
+
+ DVMs
+ {:else if option === FormType.Advanced}
+
+
+
+ Advanced
+ {/if}
+
+
+
+
+
+ {#if formType === FormType.Advanced}
+
+ {:else}
+
+ {/if}
+
diff --git a/src/app/shared/FeedForm.svelte b/src/app/shared/FeedForm.svelte
new file mode 100644
index 00000000..5cef2d2f
--- /dev/null
+++ b/src/app/shared/FeedForm.svelte
@@ -0,0 +1,96 @@
+
+
+
+{#if isEdit}
+
+ You are currently editing your {displayFeed(feed)} feed.
+
+ Create a new feed instead
+
+
+{:else if saveIsOpen}
+
+
+
+
+
+
+
+
+
+{/if}
+
+{#if deleteIsOpen}
+
+ Confirm deletion
+
+ Are you sure you want to delete your {displayFeed(feed)} feed?
+
+
+
+{/if}
diff --git a/src/app/shared/FeedFormAdvanced.svelte b/src/app/shared/FeedFormAdvanced.svelte
index 47a6c65f..415467f2 100644
--- a/src/app/shared/FeedFormAdvanced.svelte
+++ b/src/app/shared/FeedFormAdvanced.svelte
@@ -1,5 +1,6 @@
-
-
-
-{#if !isValid && !isFocused}
-
-
- Your feed is currently invalid. Please double check that it is valid JSON.
-
-{/if}
+
+
+
+
+ {#if !isValid && !isFocused}
+
+
+ Your feed is currently invalid. Please double check that it is valid JSON.
+
+ {/if}
+
diff --git a/src/app/shared/FeedFormDVMs.svelte b/src/app/shared/FeedFormDVMs.svelte
deleted file mode 100644
index f6ea14ec..00000000
--- a/src/app/shared/FeedFormDVMs.svelte
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
diff --git a/src/app/shared/FeedFormFilters.svelte b/src/app/shared/FeedFormFilters.svelte
index 385b70df..bda5c3ae 100644
--- a/src/app/shared/FeedFormFilters.svelte
+++ b/src/app/shared/FeedFormFilters.svelte
@@ -19,6 +19,7 @@
import Card from "src/partials/Card.svelte"
import Menu from "src/partials/Menu.svelte"
import MenuItem from "src/partials/MenuItem.svelte"
+ import FlexColumn from "src/partials/FlexColumn.svelte"
import Anchor from "src/partials/Anchor.svelte"
import Popover2 from "src/partials/Popover2.svelte"
import FeedFormSectionPeople from "src/app/shared/FeedFormSectionPeople.svelte"
@@ -68,23 +69,25 @@
{#each subFeeds as subFeed, i}
{@const change = f => onSubFeedChange(i + 1, f)}
- {#if isPeopleFeed(subFeed)}
-
- {:else if isRelayFeed(subFeed)}
-
- {:else if isTopicFeed(subFeed)}
-
- {:else if isMentionFeed(subFeed)}
-
- {:else if isKindFeed(subFeed)}
-
- {:else if isCreatedAtFeed(subFeed)}
-
- {:else if isDVMFeed(subFeed)}
-
- {:else}
- No support for editing {toTitle(subFeed[0])} filters. Click "Advanced" to edit manually.
- {/if}
+
+ {#if isPeopleFeed(subFeed)}
+
+ {:else if isRelayFeed(subFeed)}
+
+ {:else if isTopicFeed(subFeed)}
+
+ {:else if isMentionFeed(subFeed)}
+
+ {:else if isKindFeed(subFeed)}
+
+ {:else if isCreatedAtFeed(subFeed)}
+
+ {:else if isDVMFeed(subFeed)}
+
+ {:else}
+ No support for editing {toTitle(subFeed[0])} filters. Click "Advanced" to edit manually.
+ {/if}
+
{#if i > 0}
- import {partition, identity} from "ramda"
- import {FeedType, Scope, getFeedArgs, isAuthorFeed, isScopeFeed} from "@welshman/feeds"
- import FeedFormFilters from "src/app/shared/FeedFormFilters.svelte"
-
- export let feed
- export let onChange
-
- const isPeopleFeed = f => isAuthorFeed(f) || isScopeFeed(f)
-
- if (!getFeedArgs(feed).some(isPeopleFeed)) {
- onChange([...feed, [FeedType.Scope, Scope.Follows]])
- }
-
- $: sorted = [feed[0], ...partition(isPeopleFeed, feed.slice(1)).flatMap(identity)]
-
-
-
diff --git a/src/app/shared/FeedFormRelays.svelte b/src/app/shared/FeedFormRelays.svelte
deleted file mode 100644
index a2855538..00000000
--- a/src/app/shared/FeedFormRelays.svelte
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
diff --git a/src/app/shared/FeedFormSectionCreatedAt.svelte b/src/app/shared/FeedFormSectionCreatedAt.svelte
index 2c0f951f..95ccf3d4 100644
--- a/src/app/shared/FeedFormSectionCreatedAt.svelte
+++ b/src/app/shared/FeedFormSectionCreatedAt.svelte
@@ -2,7 +2,6 @@
import {omit} from "ramda"
import {FeedType} from "@welshman/feeds"
import {createLocalDate, dateToSeconds, formatTimestampAsDate} from "src/util/misc"
- import Field from "src/partials/Field.svelte"
import DateInput from "src/partials/DateInput.svelte"
export let feed
@@ -25,15 +24,14 @@
}
-
-
-
-
-
-
+
What time range would you like to consider?
+
+
+
+
diff --git a/src/app/shared/FeedFormSectionDVM.svelte b/src/app/shared/FeedFormSectionDVM.svelte
index f6fc90bd..7ffb619e 100644
--- a/src/app/shared/FeedFormSectionDVM.svelte
+++ b/src/app/shared/FeedFormSectionDVM.svelte
@@ -1,14 +1,12 @@
-
- {#each getFeedArgs(feed) as dvmItem, i}
- onChange(feed.toSpliced(i + 1, 1, it))} />
- {/each}
-
+
What options should be sent to the DVM?
+{#each getFeedArgs(feed) as dvmItem, i}
+
onChange(feed.toSpliced(i + 1, 1, it))} />
+{/each}
diff --git a/src/app/shared/FeedFormSectionKinds.svelte b/src/app/shared/FeedFormSectionKinds.svelte
index 9adb9926..89bd0b5d 100644
--- a/src/app/shared/FeedFormSectionKinds.svelte
+++ b/src/app/shared/FeedFormSectionKinds.svelte
@@ -2,7 +2,6 @@
import {pluck} from "ramda"
import {FeedType} from "@welshman/feeds"
import {fuzzy} from "src/util/misc"
- import Field from "src/partials/Field.svelte"
import SearchSelect from "src/partials/SearchSelect.svelte"
export let feed
@@ -47,8 +46,7 @@
}
-
-
- {displayKind(item)}
-
-
+What kind of content do you want to see?
+
+ {displayKind(item)}
+
diff --git a/src/app/shared/FeedFormSectionMentions.svelte b/src/app/shared/FeedFormSectionMentions.svelte
index 1ca90ca5..3012dae0 100644
--- a/src/app/shared/FeedFormSectionMentions.svelte
+++ b/src/app/shared/FeedFormSectionMentions.svelte
@@ -1,6 +1,5 @@
-
- onChange([FeedType.Tag, "#p", ...pubkeys])}>
-
- {#if context === "value"}
-
- {displayPubkey(item)}
-
- {:else}
-
- {/if}
-
-
-
+Which mentions would you like to see?
+ onChange([FeedType.Tag, "#p", ...pubkeys])}>
+
+ {#if context === "value"}
+
+ {displayPubkey(item)}
+
+ {:else}
+
+ {/if}
+
+
diff --git a/src/app/shared/FeedFormSectionPeople.svelte b/src/app/shared/FeedFormSectionPeople.svelte
index ed7f8eb8..1a23eb0a 100644
--- a/src/app/shared/FeedFormSectionPeople.svelte
+++ b/src/app/shared/FeedFormSectionPeople.svelte
@@ -2,7 +2,6 @@
import {toTitle} from "hurdak"
import {without} from "ramda"
import {FeedType, Scope, isScopeFeed, isAuthorFeed} from "@welshman/feeds"
- import Field from "src/partials/Field.svelte"
import Anchor from "src/partials/Anchor.svelte"
import SelectButton from "src/partials/SelectButton.svelte"
import SearchSelect from "src/partials/SearchSelect.svelte"
@@ -26,28 +25,28 @@
$: scopes = isScopeFeed(feed) ? feed.slice(1) : ["custom"]
-
- Which authors would you like to see?
+
+{#if isAuthorFeed(feed)}
+
+
- {#if isAuthorFeed(feed)}
- onChange([FeedType.Author, ...pubkeys])}>
-
- {#if context === "value"}
-
- {displayPubkey(item)}
-
- {:else}
-
- {/if}
-
-
- {/if}
-
+ value={feed.slice(1)}
+ search={$searchPubkeys}
+ onChange={pubkeys => onChange([FeedType.Author, ...pubkeys])}>
+
+ {#if context === "value"}
+
+ {displayPubkey(item)}
+
+ {:else}
+
+ {/if}
+
+
+{/if}
diff --git a/src/app/shared/FeedFormSectionRelays.svelte b/src/app/shared/FeedFormSectionRelays.svelte
index 50c25612..615a282f 100644
--- a/src/app/shared/FeedFormSectionRelays.svelte
+++ b/src/app/shared/FeedFormSectionRelays.svelte
@@ -1,19 +1,17 @@
-
- onChange([FeedType.Relay, ...urls])}>
- {displayRelayUrl(item)}
-
-
+Which relays would you like to use?
+ onChange([FeedType.Relay, ...urls])}>
+ {displayRelayUrl(item)}
+
diff --git a/src/app/shared/FeedFormSectionTopics.svelte b/src/app/shared/FeedFormSectionTopics.svelte
index 6009f7aa..f2c974e6 100644
--- a/src/app/shared/FeedFormSectionTopics.svelte
+++ b/src/app/shared/FeedFormSectionTopics.svelte
@@ -1,19 +1,17 @@
-
- onChange([FeedType.Tag, "#t", ...topics])}>
- #{item}
-
-
+Which topics do you want to see?
+ onChange([FeedType.Tag, "#t", ...topics])}>
+ #{item}
+
diff --git a/src/app/shared/FeedFormTopics.svelte b/src/app/shared/FeedFormTopics.svelte
deleted file mode 100644
index b9339744..00000000
--- a/src/app/shared/FeedFormTopics.svelte
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
diff --git a/src/app/views/FeedCreate.svelte b/src/app/views/FeedCreate.svelte
new file mode 100644
index 00000000..bdd382ed
--- /dev/null
+++ b/src/app/views/FeedCreate.svelte
@@ -0,0 +1,18 @@
+
+
+
+
+
diff --git a/src/app/views/FeedEdit.svelte b/src/app/views/FeedEdit.svelte
new file mode 100644
index 00000000..df7da529
--- /dev/null
+++ b/src/app/views/FeedEdit.svelte
@@ -0,0 +1,30 @@
+
+
+{#if feed}
+
+
+
+{:else}
+ Sorry, we weren't able to find that feed.
+{/if}
diff --git a/src/app/views/FeedForm.svelte b/src/app/views/FeedForm.svelte
deleted file mode 100644
index 2f2ce289..00000000
--- a/src/app/views/FeedForm.svelte
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
Discard
-
- {#if values.event}
-
Delete
- {/if}
-
Save
-
-
-
-{#if deleteIsOpen}
-
- Confirm deletion
-
- Are you sure you want to delete your "{values.name}" feed?
-
-
-
-{/if}
diff --git a/src/app/views/FeedList.svelte b/src/app/views/FeedList.svelte
index 51a23183..943e7fe6 100644
--- a/src/app/views/FeedList.svelte
+++ b/src/app/views/FeedList.svelte
@@ -1,13 +1,11 @@
-
-
-
+
+
+
{displayOption(option)}
diff --git a/src/partials/SelectTiles.svelte b/src/partials/SelectTiles.svelte
index 7ed6e7b8..e5c36aa7 100644
--- a/src/partials/SelectTiles.svelte
+++ b/src/partials/SelectTiles.svelte
@@ -10,7 +10,7 @@
})
-
+
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index cabc2571..0da1b929 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -6,6 +6,7 @@ const colors = {
transparent: "transparent",
accent: "var(--accent)",
warning: "var(--warning)",
+ danger: "var(--danger)",
success: "var(--success)",
}