Skip to content

Commit

Permalink
Updated people.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Jun 11, 2024
1 parent de1a065 commit 9162323
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/data/People.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const People: readonly Person[] = [
{
id: 'camilo',
name: 'Camilo Montes de Haro',
active: true,
active: false,
advised: true,
level: 'undergrad',
dept: 'The Information School',
Expand Down Expand Up @@ -242,7 +242,7 @@ export const People: readonly Person[] = [
{
id: 'kmack3',
name: 'Avery Mack',
active: true,
active: false,
advised: false,
level: 'phd',
dept: 'Computer Science & Engineering',
Expand All @@ -256,7 +256,7 @@ export const People: readonly Person[] = [
{
id: 'salac',
name: 'Jean Salac',
active: true,
active: false,
advised: true,
level: 'postdoc',
dept: 'The Information School',
Expand Down Expand Up @@ -356,7 +356,7 @@ export const People: readonly Person[] = [
{
id: 'latoza',
name: 'Thomas D. LaToza',
active: true,
active: false,
advised: false,
level: 'faculty',
dept: 'Computer Science',
Expand Down
18 changes: 13 additions & 5 deletions src/routes/(app)/lab/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
window.location.hash.substring(1) === id
);
}
$: affiliated = $profile.getPeople(
(person) =>
person.active && !person.advised && person.level !== 'faculty',
(person) => -person.startdate
);
</script>

<Title text="Lab" />
Expand Down Expand Up @@ -125,13 +131,15 @@
<Person {person} highlight={isPersonHighlighted(person.id)} />
{/each}

<Linkable id="affiliate-phd">Affiliated Ph.D. students</Linkable>
{#if affiliated.length > 0}
<Linkable id="affiliate-phd">Affiliated Ph.D. students</Linkable>

{#each $profile.getPeople( (person) => person.active && !person.advised && person.level !== 'faculty', (person) => -person.startdate ) as person}
<Person {person} highlight={isPersonHighlighted(person.id)} />
{/each}
{#each affiliated as person}
<Person {person} highlight={isPersonHighlighted(person.id)} />
{/each}
{/if}

<Linkable id="collaborators">Faculty Collaborators</Linkable>
<Linkable id="collaborators">Active Faculty Collaborators</Linkable>

<p
><em
Expand Down

0 comments on commit 9162323

Please sign in to comment.