fix(mentors): retain inactive refactor profiles

Keep Karina Reisel’s exact refactor profile in the shared mentor dataset while marking it inactive. Filter inactive records in Vue so master’s current public roster remains authoritative without deleting historical profile data.
This commit is contained in:
topsinoty
2026-07-04 16:54:36 +03:00
parent a40dee8364
commit a65d5c665d
2 changed files with 24 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<script setup>
import { Section, Container } from "../components/index.js";
import { onMounted, ref } from 'vue';
import { computed, onMounted, ref } from 'vue';
import { loadYaml } from '../lib/yaml.js';
import { currentLang, getLangText, usePageText } from "../lib/index.js";
import { getOptimisedImagePath, getOptimisedImageFallback } from "../lib/imageHelpers.js";
@@ -11,6 +11,7 @@
import { User } from "@lucide/vue";
const mentors = ref([]);
const activeMentors = computed(() => mentors.value.filter((mentor) => mentor.active !== false));
const text = usePageText("Mentors");
@@ -72,7 +73,7 @@
<!-- Mentors Grid -->
<Section>
<div class="flex flex-col gap-8">
<template v-for="mentor in mentors">
<template v-for="mentor in activeMentors" :key="mentor.name">
<div>
<div class="flex flex-col md:flex-row gap-6 m-3">
<!-- Mentor Photo -->