better system messages, display name relocation
linter / quality (push) Failing after 1m6s
tests / ci (8.3) (push) Failing after 54s
tests / ci (8.4) (push) Failing after 1m8s
tests / ci (8.5) (push) Failing after 1m13s

This commit is contained in:
Daan Meijer
2026-06-17 11:00:35 +02:00
parent 0fee3c1972
commit c6d482e3de
22 changed files with 689 additions and 204 deletions
+2 -18
View File
@@ -2,10 +2,8 @@
import Chat from '@/components/Chat.vue';
import ParticipantsList from '@/components/ParticipantsList.vue';
import LedgerList from '@/components/LedgerList.vue';
import DisplayNameForm from '@/components/DisplayNameForm.vue';
import { Head, Link as InertiaLink, usePage } from '@inertiajs/vue3';
import { Head, Link as InertiaLink } from '@inertiajs/vue3';
import { route } from 'ziggy-js';
import { computed } from 'vue';
const props = defineProps<{
dynamic: {
@@ -25,17 +23,6 @@ const props = defineProps<{
isOwner: boolean;
}>();
const currentUser = computed(() => {
const page = usePage();
const authUser = page.props.auth.user;
const participant = props.dynamic.participants.find(p => p.id === authUser.id);
return {
id: authUser.id,
name: authUser.name,
display_name: participant?.pivot?.display_name ?? null,
};
});
const breadcrumbs = [
{
@@ -71,7 +58,7 @@ const breadcrumbs = [
</div>
<!-- Dynamic Chat -->
<Chat :chat="dynamic.chat" />
<Chat :chat="dynamic.chat" :participants="dynamic.participants" :dynamic-id="dynamic.id" />
<!-- Participants Component -->
<ParticipantsList :participants="dynamic.participants" />
@@ -79,9 +66,6 @@ const breadcrumbs = [
<!-- Ledgers List Component -->
<LedgerList :dynamic-id="dynamic.id" :ledgers="dynamic.ledgers" />
<!-- Display Name Form -->
<DisplayNameForm :dynamic-id="dynamic.id" :participant="currentUser" />
<div v-if="isOwner" class="mt-8 flex gap-4">
<InertiaLink :href="route('dynamics.invitations.create', dynamic.id)" class="c-dynamic-show__action-btn">
Invite User