miscellany: save name if set during meeting setup, bump up meeting refresh, edit docs

This commit is contained in:
2026-01-26 08:58:00 -07:00
parent df61e899da
commit 8991b29705
4 changed files with 19 additions and 11 deletions

View File

@@ -15,7 +15,7 @@ Quick start:
```bash ```bash
npm install npm install
npm run build:web:serve -- --test npm run build:web:dev
``` ```
To be able to take action on the platform: go to [the test page](http://localhost:8080/test) and click "Become User 0". To be able to take action on the platform: go to [the test page](http://localhost:8080/test) and click "Become User 0".

View File

@@ -251,6 +251,8 @@ import { PlatformServiceMixin } from "@/utils/PlatformServiceMixin";
import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify"; import { createNotifyHelpers, TIMEOUTS } from "@/utils/notify";
import BulkMembersDialog from "./BulkMembersDialog.vue"; import BulkMembersDialog from "./BulkMembersDialog.vue";
const AUTO_REFRESH_INTERVAL = 15;
interface Member { interface Member {
admitted: boolean; admitted: boolean;
content: string; content: string;
@@ -296,7 +298,7 @@ export default class MembersList extends Vue {
apiServer = ""; apiServer = "";
// Auto-refresh functionality // Auto-refresh functionality
countdownTimer = 10; countdownTimer = AUTO_REFRESH_INTERVAL;
autoRefreshInterval: NodeJS.Timeout | null = null; autoRefreshInterval: NodeJS.Timeout | null = null;
lastRefreshTime = 0; lastRefreshTime = 0;
previousMemberDidsIgnored: string[] = []; previousMemberDidsIgnored: string[] = [];
@@ -727,22 +729,22 @@ export default class MembersList extends Vue {
startAutoRefresh() { startAutoRefresh() {
this.stopAutoRefresh(); this.stopAutoRefresh();
this.lastRefreshTime = Date.now(); this.lastRefreshTime = Date.now();
this.countdownTimer = 10; this.countdownTimer = AUTO_REFRESH_INTERVAL;
this.autoRefreshInterval = setInterval(() => { this.autoRefreshInterval = setInterval(() => {
const now = Date.now(); const now = Date.now();
const timeSinceLastRefresh = (now - this.lastRefreshTime) / 1000; const timeSinceLastRefresh = (now - this.lastRefreshTime) / 1000;
if (timeSinceLastRefresh >= 10) { if (timeSinceLastRefresh >= AUTO_REFRESH_INTERVAL) {
// Time to refresh // Time to refresh
this.refreshData(); this.refreshData();
this.lastRefreshTime = now; this.lastRefreshTime = now;
this.countdownTimer = 10; this.countdownTimer = AUTO_REFRESH_INTERVAL;
} else { } else {
// Update countdown // Update countdown
this.countdownTimer = Math.max( this.countdownTimer = Math.max(
0, 0,
Math.round(10 - timeSinceLastRefresh), Math.round(AUTO_REFRESH_INTERVAL - timeSinceLastRefresh),
); );
} }
}, 1000); // Update every second }, 1000); // Update every second

View File

@@ -1115,8 +1115,8 @@ export const PlatformServiceMixin = {
// ================================================= // =================================================
/** /**
* Save default settings - $saveSettings() * Save settings for currently active DID
* Ultra-concise shortcut for updateDefaultSettings * May be consolidated with $saveUserSettings()
* *
* ✅ KEEP: This method will be the primary settings save method after consolidation * ✅ KEEP: This method will be the primary settings save method after consolidation
* *
@@ -1204,8 +1204,8 @@ export const PlatformServiceMixin = {
}, },
/** /**
* Save user-specific settings - $saveUserSettings() * Save DID-specific settings - $saveUserSettings()
* Ultra-concise shortcut for updateDidSpecificSettings *
* @param did DID identifier * @param did DID identifier
* @param changes Settings changes to save * @param changes Settings changes to save
* @returns Promise<boolean> Success status * @returns Promise<boolean> Success status

View File

@@ -7,7 +7,7 @@
<!-- Sub View Heading --> <!-- Sub View Heading -->
<div id="SubViewHeading" class="flex gap-4 items-start mb-8"> <div id="SubViewHeading" class="flex gap-4 items-start mb-8">
<h1 class="grow text-xl text-center font-semibold leading-tight"> <h1 class="grow text-xl text-center font-semibold leading-tight">
Onboarding Meeting Onboarding Meeting Admin
</h1> </h1>
<!-- Spacer (no Back button) --> <!-- Spacer (no Back button) -->
@@ -589,6 +589,12 @@ export default class OnboardMeetingView extends Vue {
); );
return; return;
} }
if (!this.fullName) {
this.$saveSettings({
firstName: this.newOrUpdatedMeetingInputs.userFullName,
});
}
if (!this.newOrUpdatedMeetingInputs.password) { if (!this.newOrUpdatedMeetingInputs.password) {
this.notify.warning( this.notify.warning(
NOTIFY_MEETING_PASSWORD_REQUIRED.message, NOTIFY_MEETING_PASSWORD_REQUIRED.message,