commits
Don't pass resolved user handles from http handlers. The page renderer
is capable of resolving DIDs and we are using redis cache, so the
performance won't matter much either.
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Thomas Karpiniec <tkarpiniec@icloud.com>
Signed-off-by: Thomas Karpiniec <tkarpiniec@icloud.com>
Introduces framework-provided TANGLED_* environment variables
(repo info, ref/SHA, trigger-specific data) that are injected
into workflow steps.
Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
Signed-off-by: 5jiji <git@5jiji.com>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
seems to break on certain events
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: afterlifepro <vielle.dev@proton.me>
this requires a bare clone; which could take time depending on the size
of the repo.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: Jordan Reger <jordan@reger.co>
Signed-off-by: oppiliappan <me@oppi.li>
On timeline, if there is multiple cards for same repository including a
star button, when user star/unstar the repository, only first `#starBtn`
is swapped with new button.
This can be fixed by adding `data-star-subject-at` attr to identify all
star buttons related to same repository and use `hx-swap-oob` to replace
all of them.
Signed-off-by: Seongmin Lee <git@boltless.me>
Not sending "XXX starred your string" notif yet.
Close: <https://tangled.org/tangled.org/core/issues/296>
Signed-off-by: Seongmin Lee <git@boltless.me>
- rename `starred_by_did` column to `did`
- rename `repo_at` column to `subject_at` and removed foreign key
constraints.
- rename `RepoAt` field to `SubjectAt`
- remove `Repo` field and split `models.Star` to `RepoStar` and
`StringStar` as now there can be two kinds of reverse mappings.
Signed-off-by: Seongmin Lee <git@boltless.me>
Easier to spot.
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
Mobile need a dedicated search button to submit the form.
Also applied correct focus-ring for input tag
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Runxi Yu <me@runxiyu.org>
Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
Signed-off-by: Catherine <whitequark@whitequark.org>
Signed-off-by: oppiliappan <me@oppi.li>
this changes the routing logic slightly to allow non-path escaped refs
in compare urls that use the `...` syntax:
previously only this worked:
/compare/master/sl%2Fuvpzuszrulvq
/compare/master...sl%2Fuvpzuszrulvq
with this patch:
/compare/master/sl%2Fuvpzuszrulvq
/compare/master...sl%2Fuvpzuszrulvq
/compare/master...sl/uvpzuszrulvq (new)
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: Seongmin Lee <git@boltless.me>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: Will Andrews <did:plc:dadhhalkfcq3gucaq25hjqon>
older knots return a full modestring for each file. use some primitive
parsing to extract a filemode in these scenarios.
Signed-off-by: oppiliappan <me@oppi.li>
both spellings are supported.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
helps forcing consistent indent sizes. especially html files
Signed-off-by: Seongmin Lee <git@boltless.me>
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>
encapsulates all the structure necessary to translate the knot's blob
response into a renderable component on the appview. this makes it
extensible for other types in the future too (CSV, Jupyter etc.)
Signed-off-by: oppiliappan <me@oppi.li>
we can now differentiate between regular directories and submodules in
filetree walkers. this fixes things like broken commit info and language
detection in submodules.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
the blob response will additionally include submodule information if the
file is a git-submodule file.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
- allow repo website to be empty when editing base settings
- fix spindle hostname in nix vim
- fix default PLC url in spindles
Signed-off-by: oppiliappan <me@oppi.li>
this unecessary div causes an error where the div is duplicated when
multiple htmx requests are made.
the diff might tell a lot, but all I'm doing here is just merging
`div.relative` and `div#actions-%d` with some indent changes.
also, I removed the `w-fit` style to give pull comments full width like
issue comments have.
Signed-off-by: Seongmin Lee <git@boltless.me>
the appview rewrites urls of the form:
host.com/did-plc-foo/repo => host.com/did:plc:foo/repo
host.com/@handle.com/repo => host.com/handle.com/repo
however, the rewriter did not preserve query parameters or fragments:
host.com/@handle.com/repo?foo=bar => host.com/handle.com/repo?
this resulted in url rewrites being broken for git clones, which usees
the "service" query parameter:
../repo/info/refs?service=git-upload-pack => ../repo/info/refs?
the new url rewriter simply takes the existing url and replaces the path
component, thus preserving all other bits of the url.
Signed-off-by: oppiliappan <me@oppi.li>
instead of rewriting, simply accept .git suffixes in the ResolveRepo
middleware.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
On timeline, if there is multiple cards for same repository including a
star button, when user star/unstar the repository, only first `#starBtn`
is swapped with new button.
This can be fixed by adding `data-star-subject-at` attr to identify all
star buttons related to same repository and use `hx-swap-oob` to replace
all of them.
Signed-off-by: Seongmin Lee <git@boltless.me>
- rename `starred_by_did` column to `did`
- rename `repo_at` column to `subject_at` and removed foreign key
constraints.
- rename `RepoAt` field to `SubjectAt`
- remove `Repo` field and split `models.Star` to `RepoStar` and
`StringStar` as now there can be two kinds of reverse mappings.
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: oppiliappan <me@oppi.li>
this changes the routing logic slightly to allow non-path escaped refs
in compare urls that use the `...` syntax:
previously only this worked:
/compare/master/sl%2Fuvpzuszrulvq
/compare/master...sl%2Fuvpzuszrulvq
with this patch:
/compare/master/sl%2Fuvpzuszrulvq
/compare/master...sl%2Fuvpzuszrulvq
/compare/master...sl/uvpzuszrulvq (new)
Signed-off-by: oppiliappan <me@oppi.li>
this unecessary div causes an error where the div is duplicated when
multiple htmx requests are made.
the diff might tell a lot, but all I'm doing here is just merging
`div.relative` and `div#actions-%d` with some indent changes.
also, I removed the `w-fit` style to give pull comments full width like
issue comments have.
Signed-off-by: Seongmin Lee <git@boltless.me>
the appview rewrites urls of the form:
host.com/did-plc-foo/repo => host.com/did:plc:foo/repo
host.com/@handle.com/repo => host.com/handle.com/repo
however, the rewriter did not preserve query parameters or fragments:
host.com/@handle.com/repo?foo=bar => host.com/handle.com/repo?
this resulted in url rewrites being broken for git clones, which usees
the "service" query parameter:
../repo/info/refs?service=git-upload-pack => ../repo/info/refs?
the new url rewriter simply takes the existing url and replaces the path
component, thus preserving all other bits of the url.
Signed-off-by: oppiliappan <me@oppi.li>