back interdiff of round #3 and #2

appview: allows a default knot to be configured #858

open
opened by willdot.net targeting master from willdot.net/tangled-core: master

This follows on from the work carried out in #836

I've added a select box in the Knots settings page which pulls in the users knots and also adds in knot1.tangled.sh. When the user selects one of these options, it will save to their profile in the database. NOTE: I haven't yet implemented adding that to the AT record because I'm not sure on how the lexicon setup works yet!

Then when users go to create a new repo / fork, if there is a value in their profile for the default knot, then that will pre select the knot to use for the new repo / fork.

ERROR
appview/db/db.go

Failed to calculate interdiff for this file.

ERROR
appview/db/profile.go

Failed to calculate interdiff for this file.

ERROR
appview/knots/knots.go

Failed to calculate interdiff for this file.

ERROR
appview/models/profile.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/pages.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/knots/index.html

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/repo/fork.html

Failed to calculate interdiff for this file.

REVERTED
appview/pages/templates/repo/index.html
··· 47 47 <div class="px-4 py-2 border-b border-gray-200 dark:border-gray-600 flex items-center gap-4 flex-wrap"> 48 48 {{ range $value := .Languages }} 49 49 <div 50 + class="flex items-center gap-2 text-xs align-items-center justify-center" 50 - class="flex flex-grow items-center gap-2 text-xs align-items-center justify-center" 51 51 > 52 52 {{ template "repo/fragments/colorBall" (dict "color" (langColor $value.Name)) }} 53 53 <div>{{ or $value.Name "Other" }}
ERROR
appview/pages/templates/repo/new.html

Failed to calculate interdiff for this file.

REVERTED
appview/pages/templates/user/followers.html
··· 19 19 "FollowersCount" .FollowersCount 20 20 "FollowingCount" .FollowingCount) }} 21 21 {{ else }} 22 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 23 + <span>This user does not have any followers yet.</span> 24 + </div> 22 - <p class="px-6 dark:text-white">This user does not have any followers yet.</p> 23 25 {{ end }} 24 26 </div> 25 27 {{ end }}
REVERTED
appview/pages/templates/user/following.html
··· 19 19 "FollowersCount" .FollowersCount 20 20 "FollowingCount" .FollowingCount) }} 21 21 {{ else }} 22 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 23 + <span>This user does not follow anyone yet.</span> 24 + </div> 22 - <p class="px-6 dark:text-white">This user does not follow anyone yet.</p> 23 25 {{ end }} 24 26 </div> 25 27 {{ end }}
REVERTED
appview/pages/templates/user/overview.html
··· 16 16 <p class="text-sm font-bold px-2 pb-4 dark:text-white">ACTIVITY</p> 17 17 <div class="flex flex-col gap-4 relative"> 18 18 {{ if .ProfileTimeline.IsEmpty }} 19 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 20 + <span class="flex items-center gap-2"> 21 + This user does not have any activity yet. 22 + </span> 23 + </div> 19 - <p class="dark:text-white">This user does not have any activity yet.</p> 20 24 {{ end }} 21 25 22 26 {{ with .ProfileTimeline }} ··· 254 258 {{ template "user/fragments/repoCard" (list $ . false) }} 255 259 </div> 256 260 {{ else }} 261 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 262 + <span class="flex items-center gap-2"> 263 + This user does not have any pinned repos. 264 + </span> 265 + </div> 257 - <p class="dark:text-white">This user does not have any pinned repos.</p> 258 266 {{ end }} 259 267 </div> 260 268 </div>
REVERTED
appview/pages/templates/user/repos.html
··· 13 13 {{ template "user/fragments/repoCard" (list $ . false) }} 14 14 </div> 15 15 {{ else }} 16 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 17 + <span>This user does not have any repos yet.</span> 18 + </div> 16 - <p class="px-6 dark:text-white">This user does not have any repos yet.</p> 17 19 {{ end }} 18 20 </div> 19 21 {{ end }}
REVERTED
appview/pages/templates/user/starred.html
··· 13 13 {{ template "user/fragments/repoCard" (list $ . true) }} 14 14 </div> 15 15 {{ else }} 16 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 17 + <span>This user does not have any starred repos yet.</span> 18 + </div> 16 - <p class="px-6 dark:text-white">This user does not have any starred repos yet.</p> 17 19 {{ end }} 18 20 </div> 19 21 {{ end }}
REVERTED
appview/pages/templates/user/strings.html
··· 13 13 {{ template "singleString" (list $ .) }} 14 14 </div> 15 15 {{ else }} 16 + <div class="text-base text-gray-500 flex items-center justify-center italic p-12 border border-gray-200 dark:border-gray-700 rounded"> 17 + <span>This user does not have any strings yet.</span> 18 + </div> 16 - <p class="px-6 dark:text-white">This user does not have any strings yet.</p> 17 19 {{ end }} 18 20 </div> 19 21 {{ end }}
ERROR
appview/repo/repo.go

Failed to calculate interdiff for this file.

ERROR
appview/state/profile.go

Failed to calculate interdiff for this file.

ERROR
appview/state/router.go

Failed to calculate interdiff for this file.

ERROR
appview/state/state.go

Failed to calculate interdiff for this file.