Browse Source

various look-and-feel improvements

Trent Larson 4 weeks ago
parent
commit
63bd38766a
  1. 2
      package.json
  2. 6
      src/main.ts
  3. 5
      src/views/ClaimView.vue
  4. 7
      src/views/ConfirmGiftView.vue
  5. 2
      src/views/DIDView.vue
  6. 12
      src/views/DiscoverView.vue
  7. 61
      src/views/HomeView.vue
  8. 8
      src/views/SearchAreaView.vue

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "TimeSafari", "name": "TimeSafari",
"version": "0.3.31", "version": "0.3.31-beta",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"serve": "vite preview", "serve": "vite preview",

6
src/main.ts

@ -40,9 +40,11 @@ import {
faEllipsis, faEllipsis,
faEllipsisVertical, faEllipsisVertical,
faEnvelopeOpenText, faEnvelopeOpenText,
faEraser,
faEye, faEye,
faEyeSlash, faEyeSlash,
faFileLines, faFileLines,
faFilter,
faFloppyDisk, faFloppyDisk,
faFolderOpen, faFolderOpen,
faForward, faForward,
@ -55,6 +57,7 @@ import {
faHouseChimney, faHouseChimney,
faImagePortrait, faImagePortrait,
faLeftRight, faLeftRight,
faLightbulb,
faLocationDot, faLocationDot,
faLongArrowAltLeft, faLongArrowAltLeft,
faLongArrowAltRight, faLongArrowAltRight,
@ -111,9 +114,11 @@ library.add(
faEllipsis, faEllipsis,
faEllipsisVertical, faEllipsisVertical,
faEnvelopeOpenText, faEnvelopeOpenText,
faEraser,
faEye, faEye,
faEyeSlash, faEyeSlash,
faFileLines, faFileLines,
faFilter,
faFloppyDisk, faFloppyDisk,
faFolderOpen, faFolderOpen,
faForward, faForward,
@ -126,6 +131,7 @@ library.add(
faHouseChimney, faHouseChimney,
faImagePortrait, faImagePortrait,
faLeftRight, faLeftRight,
faLightbulb,
faLocationDot, faLocationDot,
faLongArrowAltLeft, faLongArrowAltLeft,
faLongArrowAltRight, faLongArrowAltRight,

5
src/views/ClaimView.vue

@ -317,6 +317,7 @@
</div> </div>
</div> </div>
<!-- Note that a similar section is found in ConfirmGiftView.vue -->
<div> <div>
<h2 class="font-bold uppercase text-xl mt-8 mb-2"> <h2 class="font-bold uppercase text-xl mt-8 mb-2">
{{ serverUtil.containsHiddenDid(veriClaim) ? "Visible " : "" }}Details {{ serverUtil.containsHiddenDid(veriClaim) ? "Visible " : "" }}Details
@ -344,7 +345,7 @@
If you'd like to ask any of your contacts to take a look and see if If you'd like to ask any of your contacts to take a look and see if
their contacts can see more details, their contacts can see more details,
<a <a
@click="copyToClipboard('This page location', windowLocation)" @click="copyToClipboard('A link to this page', windowLocation)"
class="text-blue-500" class="text-blue-500"
>share this page with them</a >share this page with them</a
> >
@ -365,7 +366,7 @@
<span v-else> <span v-else>
If you'd like an introduction, If you'd like an introduction,
<a <a
@click="copyToClipboard('Location', windowLocation)" @click="copyToClipboard('A link to this page', windowLocation)"
class="text-blue-500" class="text-blue-500"
>share this page with them and ask if they'll tell you more about >share this page with them and ask if they'll tell you more about
about the participants.</a about the participants.</a

7
src/views/ConfirmGiftView.vue

@ -25,7 +25,7 @@
> >
Do you agree? Do you agree?
</span> </span>
<span v-else> Details </span> <span v-else> Confirmation Details </span>
</h1> </h1>
</div> </div>
@ -257,10 +257,11 @@
count as confirming it. count as confirming it.
</div> </div>
<div v-else-if="serverUtil.containsHiddenDid(veriClaim.claim)"> <div v-else-if="serverUtil.containsHiddenDid(veriClaim.claim)">
You cannot confirm this because it contains hidden identifiers. You cannot confirm this because some people are hidden.
</div> </div>
</div> </div>
<!-- Note that a similar section is found in ClaimView.vue -->
<h2 <h2
class="font-bold uppercase text-xl text-blue-500 mt-8 mb-2 cursor-pointer" class="font-bold uppercase text-xl text-blue-500 mt-8 mb-2 cursor-pointer"
@click="showDetails = !showDetails" @click="showDetails = !showDetails"
@ -842,7 +843,7 @@ export default class ClaimView extends Vue {
group: "alert", group: "alert",
type: "info", type: "info",
title: "Cannot Confirm", title: "Cannot Confirm",
text: "You cannot confirm this because it contains hidden identifiers.", text: "You cannot confirm this because some people are hidden.",
}, },
3000, 3000,
); );

2
src/views/DIDView.vue

@ -200,7 +200,7 @@
</div> </div>
<!-- Results List --> <!-- Results List -->
<div v-if="claims.length > 0" class="mt-4"> <div v-if="claims.length > 0" class="mt-4">
<div class="text-l font-bold text-center">Claims That Involve Them</div> <div class="text-l font-bold text-center">Claims That Involve {{ isMyDid ? "You" : "Them" }}</div>
</div> </div>
<InfiniteScroll @reached-bottom="loadMoreData"> <InfiniteScroll @reached-bottom="loadMoreData">
<ul> <ul>

12
src/views/DiscoverView.vue

@ -78,11 +78,12 @@
</div> </div>
<div v-if="isLocalActive"> <div v-if="isLocalActive">
<div> <div class="text-center">
<button <button
class="ml-2 mt-2 px-4 py-2 rounded-md bg-blue-200 text-blue-500" class="ml-2 mt-2 px-4 py-2 rounded-md bg-blue-200 text-blue-500"
@click="$router.push({ name: 'search-area' })" @click="$router.push({ name: 'search-area' })"
> >
<fa icon="location-dot" class="fa-fw" />
Select a {{ searchBox ? "Different" : "" }} Location for Nearby Search Select a {{ searchBox ? "Different" : "" }} Location for Nearby Search
</button> </button>
</div> </div>
@ -97,8 +98,13 @@
</div> </div>
<div v-else-if="projects.length === 0" class="text-center mt-8"> <div v-else-if="projects.length === 0" class="text-center mt-8">
<p class="text-lg text-slate-500"> <p class="text-lg text-slate-500">
No projects were found with that search. <span v-if="isLocalActive">
<span v-if="isLocalActive">Try looking Anywhere.</span> <span v-if="searchBox">
None found in the selected area.
</span>
<!-- Otherwise there's no search area selected so we'll just leave the search box for them to click. -->
</span>
<span v-else>No projects were found with that search.</span>
</p> </p>
</div> </div>

61
src/views/HomeView.vue

@ -112,16 +112,16 @@
<!-- !isCreatingIdentifier && isRegistered --> <!-- !isCreatingIdentifier && isRegistered -->
<!-- show the actions for recognizing a give --> <!-- show the actions for recognizing a give -->
<div class="flex justify-between"> <div class="flex">
<h2 class="text-xl font-bold">Record Something Given By:</h2> <h2 class="text-xl font-bold">
<div class="flex justify-end"> What have you seen someone do?
<button </h2>
@click="openGiftedPrompts()" <button
class="block text-center text-md bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-4 py-2 rounded-md" @click="openGiftedPrompts()"
> class="ml-2 block text-xs text-center bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-1 rounded-md"
Ideas... >
</button> <fa icon="lightbulb" class="fa-fw" />
</div> </button>
</div> </div>
<ul <ul
@ -139,7 +139,7 @@
</h3> </h3>
</li> </li>
<li v-if="allContacts.length === 0" class="text-sm"> <li v-if="allContacts.length === 0" class="text-sm">
(Add contacts to see more people worthy of recognition.) (Add friends to see more people worthy of recognition.)
</li> </li>
<li <li
v-for="contact in allContacts.slice(0, 6)" v-for="contact in allContacts.slice(0, 6)"
@ -161,9 +161,9 @@
<router-link <router-link
v-if="allContacts.length >= 6" v-if="allContacts.length >= 6"
:to="{ name: 'contact-gift' }" :to="{ name: 'contact-gift' }"
class="block text-center text-md font-bold bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md" class="flex align-bottom text-xs text-blue-500 mt-12"
> >
Choose From All Contacts ... or someone else...
</router-link> </router-link>
</li> </li>
</ul> </ul>
@ -177,25 +177,24 @@
<FeedFilters ref="feedFilters" /> <FeedFilters ref="feedFilters" />
<!-- Results List --> <!-- Results List -->
<div class="bg-slate-100 rounded-md overflow-hidden px-4 py-3 mt-4 mb-4"> <div class="bg-slate-100 rounded-md px-4 py-3 mt-4 mb-4">
<div class="flex items-center mb-4"> <div class="flex items-center mb-4">
<h2 class="text-xl font-bold">Latest Activity</h2> <h2 class="text-xl font-bold">Latest Activity
<button @click="openFeedFilters()" class="block text-center ml-auto"> <button @click="openFeedFilters()">
<span class="text-sm text-white"> <span class="text-xs text-white">
<span <fa
v-if="resultsAreFiltered()" v-if="resultsAreFiltered()"
class="bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-3 py-1.5 rounded-md" icon="filter"
> class="bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-1 py-1.5 rounded-md"
Filtered />
</span> <fa
<span v-else
v-else icon="filter"
class="bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-3 py-1.5 rounded-md" class="bg-gradient-to-b from-slate-400 to-slate-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] px-1 py-1.5 rounded-md"
> />
Unfiltered
</span> </span>
</span> </button>
</button> </h2>
</div> </div>
<InfiniteScroll @reached-bottom="loadMoreGives"> <InfiniteScroll @reached-bottom="loadMoreGives">
<ul id="listLatestActivity" class="border-t border-slate-300"> <ul id="listLatestActivity" class="border-t border-slate-300">
@ -270,7 +269,7 @@
<a @click="onClickLoadClaim(record.jwtId)"> <a @click="onClickLoadClaim(record.jwtId)">
<fa <fa
icon="file-lines" icon="file-lines"
class="pl-2 text-blue-500 cursor-pointer" class="pl-2 text-slate-500 cursor-pointer"
/> />
</a> </a>
</span> </span>

8
src/views/SearchAreaView.vue

@ -26,7 +26,7 @@
your device to run searches but it is not stored on our servers. your device to run searches but it is not stored on our servers.
</div> </div>
<div> <div class="text-center">
<button v-if="!searchBox && !isNewMarkerSet" class="m-4 px-4 py-2"> <button v-if="!searchBox && !isNewMarkerSet" class="m-4 px-4 py-2">
Click to Choose a Location for Nearby Search Click to Choose a Location for Nearby Search
</button> </button>
@ -35,6 +35,7 @@
class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500" class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500"
@click="storeSearchBox" @click="storeSearchBox"
> >
<fa icon="save" class="fa-fw" />
Store This Location for Nearby Search Store This Location for Nearby Search
</button> </button>
<button <button
@ -42,6 +43,7 @@
class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500" class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500"
@click="forgetSearchBox" @click="forgetSearchBox"
> >
<fa icon="trash-can" class="fa-fw" />
Delete Stored Location Delete Stored Location
</button> </button>
<button <button
@ -49,13 +51,15 @@
class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500" class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500"
@click="resetLatLong" @click="resetLatLong"
> >
Reset Marker <fa icon="rotate" class="fa-fw" />
Reset To Original
</button> </button>
<button <button
v-if="isNewMarkerSet" v-if="isNewMarkerSet"
class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500" class="m-4 px-4 py-2 rounded-md bg-blue-200 text-blue-500"
@click="isNewMarkerSet = false" @click="isNewMarkerSet = false"
> >
<fa icon="eraser" class="fa-fw" />
Erase Marker Erase Marker
</button> </button>
<div v-if="isNewMarkerSet"> <div v-if="isNewMarkerSet">

Loading…
Cancel
Save