Browse Source

chore: commentary and verbiage and one stray unnecessary check

pull/151/head
Trent Larson 3 days ago
parent
commit
9562d3aa32
  1. 2
      src/components/OnboardingDialog.vue
  2. 2
      src/components/UsageLimitsSection.vue
  3. 4
      src/db/tables/contacts.ts
  4. 1
      src/libs/util.ts
  5. 1
      src/views/HomeView.vue

2
src/components/OnboardingDialog.vue

@ -180,7 +180,7 @@
> >
Let's go! Let's go!
<br /> <br />
See & record gratitude. See & record things you've received.
</button> </button>
<button <button
type="button" type="button"

2
src/components/UsageLimitsSection.vue

@ -67,7 +67,7 @@
out of <b>{{ imageLimits?.maxImagesPerWeek ?? "?" }}</b> for this week. out of <b>{{ imageLimits?.maxImagesPerWeek ?? "?" }}</b> for this week.
Your image counter resets at Your image counter resets at
<b class="whitespace-nowrap">{{ <b class="whitespace-nowrap">{{
readableDate(imageLimits?.nextWeekBeginDateTime || "") readableDate(imageLimits?.nextWeekBeginDateTime)
}}</b> }}</b>
</p> </p>
</div> </div>

4
src/db/tables/contacts.ts

@ -6,7 +6,9 @@ export type ContactMethod = {
export type Contact = { export type Contact = {
// //
// When adding a property, consider whether it should be added when exporting & sharing contacts, eg. DataExportSection // When adding a property:
// - Consider whether it should be added when exporting & sharing contacts, eg. DataExportSection
// - If it's a boolean, it should be converted from a 0/1 integer in PlatformServiceMixin._mapColumnsToValues
did: string; did: string;
contactMethods?: Array<ContactMethod>; contactMethods?: Array<ContactMethod>;

1
src/libs/util.ts

@ -34,6 +34,7 @@ import { PlatformServiceFactory } from "../services/PlatformServiceFactory";
import { IIdentifier } from "@veramo/core"; import { IIdentifier } from "@veramo/core";
import { DEFAULT_ROOT_DERIVATION_PATH } from "./crypto"; import { DEFAULT_ROOT_DERIVATION_PATH } from "./crypto";
// Consolidate this with src/utils/PlatformServiceMixin._parseJsonField
function parseJsonField<T>(value: unknown, defaultValue: T): T { function parseJsonField<T>(value: unknown, defaultValue: T): T {
if (typeof value === "string") { if (typeof value === "string") {
try { try {

1
src/views/HomeView.vue

@ -314,6 +314,7 @@ import {
} from "@/constants/notifications"; } from "@/constants/notifications";
import * as Package from "../../package.json"; import * as Package from "../../package.json";
// consolidate this with GiveActionClaim in src/interfaces/claims.ts
interface Claim { interface Claim {
claim?: Claim; // For nested claims in Verifiable Credentials claim?: Claim; // For nested claims in Verifiable Credentials
agent?: { agent?: {

Loading…
Cancel
Save