Browse Source

add Discover query param searchPeople to go straight to people map

master 0.4.3
Trent Larson 4 days ago
parent
commit
1e9c3f3101
  1. 27
      BUILDING.md
  2. 18
      CHANGELOG.md
  3. 4
      package-lock.json
  4. 2
      package.json
  5. 39
      src/views/DiscoverView.vue

27
BUILDING.md

@ -259,13 +259,23 @@ See `.env.*` files for configuration.
## Deployment ## Deployment
### Version Management
1. Update CHANGELOG.md with new changes
2. Update version in package.json
3. Commit changes and tag release:
```bash
git tag <VERSION_TAG>
git push origin <VERSION_TAG>
```
4. After deployment, update package.json with next version + "-beta"
### Test Server ### Test Server
```bash ```bash
# Build using staging environment # Build using staging environment
npm run build -- --mode staging npm run build -- --mode staging
# Deploy to test server # Deploy to test server
rsync -azvu -e "ssh -i ~/.ssh/your_key" dist ubuntutest@test.timesafari.app:time-safari/ rsync -azvu -e "ssh -i ~/.ssh/<YOUR_KEY>" dist ubuntutest@test.timesafari.app:time-safari/
``` ```
### Production Server ### Production Server
@ -274,26 +284,15 @@ rsync -azvu -e "ssh -i ~/.ssh/your_key" dist ubuntutest@test.timesafari.app:time
pkgx +npm sh pkgx +npm sh
cd crowd-funder-for-time-pwa cd crowd-funder-for-time-pwa
git checkout master && git pull git checkout master && git pull
git checkout <version_tag> git checkout <VERSION_TAG>
npm install npm install
npm run build npm run build
cd - cd -
# Backup and deploy # Backup and deploy
mv time-safari/dist time-safari-dist-prev.0 mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist time-safari/
mv crowd-funder-for-time-pwa/dist time-safari/
``` ```
### Version Management
1. Update CHANGELOG.md with new changes
2. Update version in package.json
3. Commit changes and tag release:
```bash
git tag <version>
git push origin <version>
```
4. After deployment, update package.json with next version + "-beta"
## Troubleshooting ## Troubleshooting
### Common Build Issues ### Common Build Issues

18
CHANGELOG.md

@ -6,12 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
== [0.4.2] - 2025.02.17 ## [0.4.3] - 2025.02.17
### Merged ### Added
- Master to split_process_build - Discover query parameter searchPeople to go directly to the people map
- fixed path issues
- all tests passing
- capacitor build to Android working ## [0.4.2] - 2025.02.17
### Added
- Capacitor build to Android
### Fixed
- Path issues
## [0.4.1] - 2025.02.16 ## [0.4.1] - 2025.02.16
### Fixed ### Fixed
@ -23,7 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Images in the home feed now take up the full width of the card. - Images in the home feed now take up the full width of the card.
- Clicking the image previously, would open the image in a new tab. Now, clicking the image opens the image in a lightbox view. - Clicking the image previously, would open the image in a new tab. Now, clicking the image opens the image in a lightbox view.
### Added ### Added
- Clicking an image also now displays an in-app lightbox view of the image. - Clicking an image also now displays an in-app lightbox view of the image.
- The lightbox view includes a download button for the image in mobile view. - The lightbox view includes a download button for the image in mobile view.

4
package-lock.json

@ -1,12 +1,12 @@
{ {
"name": "timesafari", "name": "timesafari",
"version": "0.4.2-beta", "version": "0.4.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "timesafari", "name": "timesafari",
"version": "0.4.2-beta", "version": "0.4.3",
"dependencies": { "dependencies": {
"@capacitor/android": "^6.2.0", "@capacitor/android": "^6.2.0",
"@capacitor/cli": "^6.2.0", "@capacitor/cli": "^6.2.0",

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "timesafari", "name": "timesafari",
"version": "0.4.2-beta", "version": "0.4.3",
"description": "TimeSafari Desktop Application", "description": "TimeSafari Desktop Application",
"author": { "author": {
"name": "TimeSafari Team" "name": "TimeSafari Team"

39
src/views/DiscoverView.vue

@ -352,9 +352,9 @@ export default class DiscoverView extends Vue {
allMyDids: Array<string> = []; allMyDids: Array<string> = [];
apiServer = ""; apiServer = "";
isLoading = false; isLoading = false;
isLocalActive = true; isLocalActive = false;
isMappedActive = false; isMappedActive = false;
isAnywhereActive = false; isAnywhereActive = true;
isProjectsActive = true; isProjectsActive = true;
isPeopleActive = false; isPeopleActive = false;
isSearchVisible = true; isSearchVisible = true;
@ -375,6 +375,11 @@ export default class DiscoverView extends Vue {
didInfo = didInfo; didInfo = didInfo;
async mounted() { async mounted() {
this.searchTerms = this.$route.query["searchText"]?.toString() || "";
const searchPeople = !!this.$route.query["searchPeople"];
const settings = await retrieveSettingsForActiveAccount(); const settings = await retrieveSettingsForActiveAccount();
this.activeDid = (settings.activeDid as string) || ""; this.activeDid = (settings.activeDid as string) || "";
this.apiServer = (settings.apiServer as string) || ""; this.apiServer = (settings.apiServer as string) || "";
@ -386,26 +391,30 @@ export default class DiscoverView extends Vue {
this.allMyDids = await retrieveAccountDids(); this.allMyDids = await retrieveAccountDids();
this.searchTerms = this.$route.query["searchText"]?.toString() || "";
if (!settings.finishedOnboarding) { if (!settings.finishedOnboarding) {
(this.$refs.onboardingDialog as OnboardingDialog).open( (this.$refs.onboardingDialog as OnboardingDialog).open(
OnboardPage.Discover, OnboardPage.Discover,
); );
} }
if (this.searchBox) { // Someday we'll have enough people that we can default to their local area.
await this.searchLocal(); // if (this.searchBox) {
// this.isLocalActive = true;
const bbox = this.searchBox.bbox; // this.isAnywhereActive = false;
this.localCenterLat = (bbox.maxLat + bbox.minLat) / 2; // await this.searchLocal();
this.localCenterLong = (bbox.eastLong + bbox.westLong) / 2; //
} else { // const bbox = this.searchBox.bbox;
this.isLocalActive = false; // this.localCenterLat = (bbox.maxLat + bbox.minLat) / 2;
this.isMappedActive = false; // this.localCenterLong = (bbox.eastLong + bbox.westLong) / 2;
this.isAnywhereActive = true; // } else {
await this.searchAll();
if (searchPeople) {
this.isPeopleActive = true;
this.isProjectsActive = false;
this.isMappedActive = true;
this.isAnywhereActive = false;
} }
await this.searchAll();
} }
public resetCounts() { public resetCounts() {

Loading…
Cancel
Save