commits
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
these only worked because of a bug in loadAllTemplates. execute and
executeRepo always had access to the repoBase layout. this is no longer
the case.
Signed-off-by: oppiliappan <me@oppi.li>
instead of loading all templates at once and storing into a map, we now
memoize the results of `parse`. the first call to `parse` will require
calculation but subsequent calls will be cached.
this is simpler to reason about because the new execution model requires
us to parse differently for each "base" template that is being used:
- for timeline, it is necessary to parse with layouts/base
- for repo-index, it is necessary to parse with layouts/base and
layouts/repobase in that order
the previous approach to loading also had a latent bug: all layouts were
loaded atop each other in alphabetical order (order of iteration over
the filesystem), and therefore it was not possible to selectively parse
and execute templates on a subset of layouts.
Signed-off-by: oppiliappan <me@oppi.li>
this is a limitation of how fragments are loaded at the moment. multiple
definitions per file are unsupported.
Signed-off-by: oppiliappan <me@oppi.li>
this allows fragments to reference each other.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: noClaps <git@zerolimits.dev>
Signed-off-by: oppiliappan <me@oppi.li>
We've arrived at the "foopkg/barpkg: message here" format pretty
organically -- it reads better and uses fewer characters.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Show fork titles in owner/repo format, otherwise if you have collaborator
access to multiple forks of the same repo (in which the forks have the
same title) it may be hard to differentiate
Also update the underlying logic to use the option value instead of
checking against the currently logged in users DID
Co-Authored-By: oppiliappan <me@oppi.li>
Signed-off-by: Samuel Shuert <me@thecoded.prof>
Co-Authored-By: oppiliappan <me@oppi.li>
Signed-off-by: Samuel Shuert <me@thecoded.prof>
Signed-off-by: oppiliappan <me@oppi.li>
Broken down the nested object declarations into individual declarations since lexicon schemas forbid nested declarations, tested with atcute's lexicon codegen.
I changed the name of `pair` to `individualLanguageSize` as the previous name didn't make it obvious as for what the object was for, slight breaking change but it seems fine given that this lexicon schema wasn't working prior and that the object isn't being used in any unions.
Signed-off-by: mary.my.id <git@mary.my.id>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: nelind <nel.n.lindberg@gmail.com>
Signed-off-by: nelind <nel.n.lindberg@gmail.com>
Signed-off-by: nelind <nel.n.lindberg@gmail.com>
this is a regression from the v1.8.0 release
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
sort by most gained stars.
Signed-off-by: oppiliappan <me@oppi.li>
requires record deletion first
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
this will return in the future
Signed-off-by: oppiliappan <me@oppi.li>
This now covers: Fork, ForkSync, NewHiddenRef, Merge, MergeCheck,
and RepoCreate/Delete.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
The knot.member is only ingested for create/update ops but we can't
delete it yet. See comment.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
This is now identical to how we verify spindle registrations, and gets
rid of the registration key. This code is now deduplicated in the
serververify package (previously spindleverify).
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
This is now the same as what we do in spindle.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Preserves the routes, but borrows a similar style to that of repo
settings.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Adding the repo name there would've been useful but it's not readily
available within SetupWorkflow. We'll... figure out how to add that
later.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
- moves FollowStats type from timeline.go into follow.go
- makes existing GetFollowersFollowingCount also use FollowStats
Signed-off-by: dusk <y.bera003.06@protonmail.com>
- rename existing ProfilePage to ProfileHomePage
Signed-off-by: dusk <y.bera003.06@protonmail.com>
- rename Followers/Following from ProfileCard to FollowersCount/FollowingCount
- in profileCard, define a single $userIdent to use instead of duplicating the didOrHandle expression
fixes https://tangled.sh/@tangled.sh/core/issues/169
Signed-off-by: dusk <y.bera003.06@protonmail.com>
Signed-off-by: dusk <y.bera003.06@protonmail.com>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Signed-off-by: oppiliappan <me@oppi.li>
instead of loading all templates at once and storing into a map, we now
memoize the results of `parse`. the first call to `parse` will require
calculation but subsequent calls will be cached.
this is simpler to reason about because the new execution model requires
us to parse differently for each "base" template that is being used:
- for timeline, it is necessary to parse with layouts/base
- for repo-index, it is necessary to parse with layouts/base and
layouts/repobase in that order
the previous approach to loading also had a latent bug: all layouts were
loaded atop each other in alphabetical order (order of iteration over
the filesystem), and therefore it was not possible to selectively parse
and execute templates on a subset of layouts.
Signed-off-by: oppiliappan <me@oppi.li>
Show fork titles in owner/repo format, otherwise if you have collaborator
access to multiple forks of the same repo (in which the forks have the
same title) it may be hard to differentiate
Also update the underlying logic to use the option value instead of
checking against the currently logged in users DID
Co-Authored-By: oppiliappan <me@oppi.li>
Signed-off-by: Samuel Shuert <me@thecoded.prof>
Broken down the nested object declarations into individual declarations since lexicon schemas forbid nested declarations, tested with atcute's lexicon codegen.
I changed the name of `pair` to `individualLanguageSize` as the previous name didn't make it obvious as for what the object was for, slight breaking change but it seems fine given that this lexicon schema wasn't working prior and that the object isn't being used in any unions.
Signed-off-by: mary.my.id <git@mary.my.id>
this is a regression from the v1.8.0 release
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
requires record deletion first
Signed-off-by: oppiliappan <me@oppi.li>