feat: stream list view and tasks (#279)
* first attempt at stream sidebar, tasks, and events * fix folder from root * cleanup folders and events, and condense changes * cleanup and add toggle for sidebar * cleanup * fix nits
This commit was merged in pull request #279.
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
parseVisibleTo,
|
||||
} from '@/lib/stream-visibility';
|
||||
import { updateParticleVisibleTo } from '@/lib/firestore-particles';
|
||||
import { particlePath, toFirestoreDocPath } from '@/lib/particle-path';
|
||||
import { toFirestoreDocPath, type ParticlePath } from '@/lib/particle-path';
|
||||
import { useNetwork } from '@/hooks/use-networks';
|
||||
import { cn, getInitials } from '@/lib/utils';
|
||||
import { resolveHumanDisplay } from '@/lib/humans';
|
||||
@@ -19,6 +19,7 @@ import { useSuspendPlayback } from '@/hooks/use-suspend-playback';
|
||||
|
||||
interface StreamMembersOverlayProps {
|
||||
networkId: string;
|
||||
streamPath: ParticlePath;
|
||||
streamParticle: Particle & { type: 'stream' };
|
||||
isCreator: boolean;
|
||||
onClose: () => void;
|
||||
@@ -26,6 +27,7 @@ interface StreamMembersOverlayProps {
|
||||
|
||||
export function StreamMembersOverlay({
|
||||
networkId,
|
||||
streamPath,
|
||||
streamParticle,
|
||||
isCreator,
|
||||
onClose,
|
||||
@@ -40,10 +42,7 @@ export function StreamMembersOverlay({
|
||||
[streamParticle.visible_to, networkId],
|
||||
);
|
||||
|
||||
const docPath = useMemo(
|
||||
() => toFirestoreDocPath(particlePath(networkId, [streamParticle.id])),
|
||||
[networkId, streamParticle.id],
|
||||
);
|
||||
const docPath = useMemo(() => toFirestoreDocPath(streamPath), [streamPath]);
|
||||
|
||||
const memberIds =
|
||||
visibility.mode === 'network'
|
||||
|
||||
Reference in New Issue
Block a user