Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee
17
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: "dev mode" setting to allow copying AT URI from actions

+29
+14
internal/web/components/action_bar.templ
··· 158 158 <div class="action-menu-divider"></div> 159 159 } 160 160 } 161 + if props.SubjectURI != "" { 162 + <template x-if="localStorage.getItem('devMode') === 'true'"> 163 + <button 164 + type="button" 165 + @click={ fmt.Sprintf("navigator.clipboard.writeText('%s'); moreOpen = false; $dispatch('notify', {message: 'AT URI copied'})", props.SubjectURI) } 166 + class="action-menu-item" 167 + > 168 + <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"> 169 + <path stroke-linecap="round" stroke-linejoin="round" d="M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"></path> 170 + </svg> 171 + Copy AT URI 172 + </button> 173 + </template> 174 + } 161 175 <!-- Moderation actions (for moderators/admins) --> 162 176 if props.CanHideRecord && props.SubjectURI != "" { 163 177 if props.IsRecordHidden {
+15
internal/web/pages/settings.templ
··· 75 75 </div> 76 76 </form> 77 77 </div> 78 + <div class="card card-inner mt-4"> 79 + <h2 class="text-lg font-semibold mb-2" style="color: var(--text-primary);">Developer</h2> 80 + <p class="text-sm mb-4" style="color: var(--text-muted);">Tools for inspecting AT Protocol data.</p> 81 + <div x-data="{ devMode: localStorage.getItem('devMode') === 'true' }"> 82 + <label class="flex items-center gap-2 cursor-pointer"> 83 + <input 84 + type="checkbox" 85 + :checked="devMode" 86 + @change="devMode = !devMode; localStorage.setItem('devMode', devMode)" 87 + class="form-checkbox" 88 + /> 89 + <span class="text-sm" style="color: var(--text-primary);">Show "Copy AT URI" in action menus</span> 90 + </label> 91 + </div> 92 + </div> 78 93 </div> 79 94 } 80 95