-
Notifications
You must be signed in to change notification settings - Fork 0
Render transclude blocks in MemoDetailViewer #574
Conversation
xcode/Subconscious/Shared/Components/Detail/MemoViewerDetailView.swift
Outdated
Show resolved
Hide resolved
xcode/Subconscious/Shared/Components/Detail/MemoViewerDetailView.swift
Outdated
Show resolved
Hide resolved
00b4fdb
to
a99e25c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Will need to update DB query to match new schema introduced in #561.
ed0b8a4
to
14f4d3e
Compare
Waiting for #627 to continue pushing this along |
14f4d3e
to
75c56c7
Compare
Unsure if this works for 3P, gateways aren't working
bbaca87
to
94c15a9
Compare
xcode/Subconscious/Shared/Components/Detail/MemoViewerDetailView.swift
Outdated
Show resolved
Hide resolved
) | ||
sleep(seconds) | ||
try await Task.sleep(for: .seconds(seconds)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR but I realised this was causing blocking issues while waiting for the gateway to provision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Namely, it was causing this issue #710
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
func relativizeIfNeeded(petname base: Petname?) -> Slashlink { | ||
switch self.peer { | ||
case .petname(let name) where name == base: | ||
return Slashlink(slug: self.slug) | ||
default: | ||
return self | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the DID version, drop the peer from the address if it matches the base.
kind = upToNextMajorVersion; | ||
minimumVersion = 2.0.0; | ||
kind = exactVersion; | ||
version = 2.3.2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinned to exact version to stop the churning on Package.resolved
case you | ||
case ourself |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the noise on this, I think it's better to match the general convention of "ours" instead of "you"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I like it.
0ddab7f
to
8b8fd25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve!
Nothing hard blocking. One comment about owner
not being used that is worth addressing.
case you | ||
case ourself |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I like it.
) | ||
sleep(seconds) | ||
try await Task.sleep(for: .seconds(seconds)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
Since we merged #574 for playtesting this PR addresses the formatting and small fixups from @gordonbrander's review.
Related to #328
Resolves #324
Fixes #710
This approach is based on my experiments with rendering in the editor: #428
Changes
Own content, own slashlink
3P Content, their own slashlink
TODO
.fetchTranscludes
with expected links.findAndPushDetail