Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
d3a2435
init vendor/user mobile
ChrisCanaday Feb 25, 2025
82c2fc1
Fixing script for windows
CalebKornegay Feb 25, 2025
c63c5cf
Adding export to check for ci, updated git ignore for build files
CalebKornegay Feb 25, 2025
8272b6c
Merge branch 'main' into mobile-dev
ChrisCanaday Mar 3, 2025
c4008cb
Merge branch 'main' into mobile-dev
ChrisCanaday Mar 4, 2025
1600ad9
fixed package conflicts
ChrisCanaday Mar 4, 2025
6c0e1f5
usermobile login via email works now. Can't log in with google. Event…
ChrisCanaday Mar 4, 2025
297a811
this is just to trigger CI to test new runners
ChrisCanaday Mar 5, 2025
82dd046
hopefully fix merge conflict
ChrisCanaday Mar 5, 2025
aa39b56
debugging new runners
ChrisCanaday Mar 5, 2025
df82abb
debug ci
ChrisCanaday Mar 5, 2025
1055395
testing caching
ChrisCanaday Mar 5, 2025
3122ba9
New workers work great now :D. userweb and vendorweb fail to build rn…
ChrisCanaday Mar 5, 2025
ad5f2ca
Merge branch 'main' of github.com:OpenTix/platform into mobile-dev
ChrisCanaday Mar 5, 2025
d39bf14
fixed userweb and vendorweb build issues. incompatible dynamic-labs v…
ChrisCanaday Mar 6, 2025
e370b82
testing merge fix
ChrisCanaday Mar 6, 2025
e27c6b9
Bringing remote up to date with in progress usermobile dev. This comm…
ChrisCanaday Mar 6, 2025
2067e84
Merge branch 'main' into mobile-dev
ChrisCanaday Mar 6, 2025
b37cf08
pulling in new ci changes
ChrisCanaday Mar 7, 2025
c3e12fd
Merge branch 'main' into mobile-dev
ChrisCanaday Mar 7, 2025
7b0e70f
Added basic login/logout/profile view functionality. Now has an prope…
ChrisCanaday Mar 7, 2025
c133ac2
The home page now has a button that lets you query OkLink for your wa…
ChrisCanaday Mar 8, 2025
fe4ce5e
Merge branch 'main' into mobile-dev
ChrisCanaday Mar 8, 2025
9d35578
restructure needed to make it work display events properly. However i…
ChrisCanaday Mar 8, 2025
07dbb29
You can now view the tickets you own on the home screen! Format is ba…
ChrisCanaday Mar 9, 2025
7b1ff5d
Added message for when you don't have any tickets
ChrisCanaday Mar 10, 2025
3e8cdb1
update displayed name for home. Future commit will clean up stuff.
ChrisCanaday Mar 11, 2025
a68b4c4
Usermobile is ready for check in implementation now. UI still very ea…
ChrisCanaday Mar 11, 2025
b3c7a88
Can view venues and links to events per venue now
CalebKornegay Mar 11, 2025
00e6e7e
idk if this did anything, but tried to remove vulnerabilities
ChrisCanaday Mar 12, 2025
b8cd7d8
Cleanup and vendormobiledev npm command
ChrisCanaday Mar 12, 2025
1510f90
Fixed naming for vendormobile since I copied files
CalebKornegay Mar 12, 2025
1865f7e
updating with main changes
ChrisCanaday Mar 13, 2025
12e88f4
Native builds for usermobile and vendormobile now work on ios
Mar 15, 2025
b36cfc2
maybe fix
ChrisCanaday Mar 15, 2025
a7934fe
Adding EventDetails screen for check-in purposes later using NFC
CalebKornegay Mar 16, 2025
4462972
Hope this doesn't break yours @chris
CalebKornegay Mar 16, 2025
bf4b89d
Merge branch 'mobile-dev' of https://github.com/OpenTix/platform into…
CalebKornegay Mar 16, 2025
01b7426
Bad ort package-lock
CalebKornegay Mar 16, 2025
2185ceb
Now can use npm scripts for eas builds, had to change ci from build t…
CalebKornegay Mar 16, 2025
33866ba
Now can use npm scripts for eas builds, had to change ci from build t…
CalebKornegay Mar 16, 2025
c71bf84
Lots of changes in this:
ChrisCanaday Mar 25, 2025
d3c1ed9
fixing merge conflict
ChrisCanaday Mar 25, 2025
3814e52
added android and ios build instructions
ChrisCanaday Mar 25, 2025
f8f534f
added checkin. Now vendor has same bug where profile pops up on launc…
ChrisCanaday Mar 31, 2025
1f0cb12
fix pop-up when already logged in, added logout without extra profile…
CalebKornegay Apr 1, 2025
d81816e
Rename so that it isn't named like an rfc
CalebKornegay Apr 1, 2025
c47a609
Remove unused code
CalebKornegay Apr 1, 2025
d57c476
Updating prebuild script to move the save files for the icon since fo…
CalebKornegay Apr 1, 2025
74dd14b
ci -> build to fix ci-pr.yml, fixed login popup on usermobile, fixed …
CalebKornegay Apr 1, 2025
0e6892f
ci -> build to fix ci-pr.yml, fixed login popup on usermobile, fixed …
CalebKornegay Apr 1, 2025
596a5ea
Merge branch 'main' into mobile-dev
ChrisCanaday Apr 3, 2025
b17dd27
Merge branch 'mobile-dev' of github.com:OpenTix/platform into mobile-dev
ChrisCanaday Apr 3, 2025
06d1284
Merge branch 'main' into mobile-dev
ChrisCanaday Apr 7, 2025
d53474d
Fix icon issue and deep linking works now yippie
CalebKornegay Apr 7, 2025
66059f4
Fix icon issue and deep linking works now yippie
CalebKornegay Apr 7, 2025
63c91c9
merged main and fixed conflict causing vendorweb and userweb to not b…
ChrisCanaday Apr 7, 2025
4676034
Add some packages
CalebKornegay Apr 8, 2025
edc64e2
remove some logs, increase timeout
CalebKornegay Apr 8, 2025
cc28aa3
remove some logs, increase timeout
CalebKornegay Apr 8, 2025
96ab41a
Complete redesign
CalebKornegay Apr 8, 2025
eacfb90
Remove console logs, update shown date
CalebKornegay Apr 8, 2025
94f81f1
Complete redesign
CalebKornegay Apr 8, 2025
a31fa63
Remove console logs, remove ts-expect-error and fixed types, removed …
CalebKornegay Apr 8, 2025
bf63ea6
Complete redesign
CalebKornegay Apr 8, 2025
073f3fb
merge main and update project.json with sh -c again so that it will b…
CalebKornegay Apr 8, 2025
165951a
CI-PR
CalebKornegay Apr 8, 2025
e4e3f16
adding appling associated domain
ChrisCanaday Apr 9, 2025
0ee4222
Add default image to EventDetails, get rid of ['Photo'] for .Photo
CalebKornegay Apr 9, 2025
d000eff
Merge branch 'mobile-dev' of https://github.com/opentix/platform into…
CalebKornegay Apr 9, 2025
bb78c78
Merge branch 'main' into mobile-dev
ChrisCanaday Apr 9, 2025
0dd7137
Added date parameter and updated message to no upcoming events
CalebKornegay Apr 11, 2025
cc243dc
Updated navigation and got rid of unused stuff
ChrisCanaday Apr 11, 2025
7ebb6d3
Removed OKLink api call and added api call to our backend for it.
ChrisCanaday Apr 11, 2025
e92445e
Changing to dark mode, could do system default if dynamic web view is…
CalebKornegay Apr 11, 2025
7f21961
System theme now
CalebKornegay Apr 11, 2025
aeeff6a
Add colors
CalebKornegay Apr 11, 2025
fe3d689
Add system default color scheme and don't provide check in button if …
CalebKornegay Apr 11, 2025
7f733ce
Merge branch 'mobile-dev' of https://github.com/opentix/platform into…
CalebKornegay Apr 11, 2025
6c48762
fixed the usermobile and vendormobile build issues. updating image-si…
ChrisCanaday Apr 12, 2025
cbc3dfd
merged main
ChrisCanaday Apr 12, 2025
4cc3cb9
Fixing ios build issues
ChrisCanaday Apr 12, 2025
a73ffb5
Fixing jest so our tests will work. For some reason when there are no…
ChrisCanaday Apr 12, 2025
1d536f0
Ticket transfer purchase is possible from mobile now
ChrisCanaday Apr 14, 2025
feb3a09
Should be more informative for qr check in. Images are now inset inst…
CalebKornegay Apr 14, 2025
a9047f0
Add margin on right arrow and add padding for the image (it had a ha…
CalebKornegay Apr 14, 2025
9988c91
Updated messages
CalebKornegay Apr 16, 2025
6d208ad
added transfer button. Does nothing right now
ChrisCanaday Apr 16, 2025
cdc187a
merged main
ChrisCanaday Apr 16, 2025
8983d55
Ticket Transfer setup now works.
ChrisCanaday Apr 16, 2025
cd5afb0
Fixing usermobile dependency issue
ChrisCanaday Apr 20, 2025
285aae9
Add tab icons
CalebKornegay Apr 21, 2025
7ff7db6
fixed weird left offset on event cards
ChrisCanaday Apr 21, 2025
5982199
updated usermobile cards to be same as vendormobile + ticket id (curr…
ChrisCanaday Apr 21, 2025
25810fb
Cards work properly now
ChrisCanaday Apr 21, 2025
9a20989
Redid EventView page. Transfer button now has modals for everything. …
ChrisCanaday Apr 23, 2025
5c5b615
Usermobile has different iOS and Android header style on the Ticckets…
ChrisCanaday Apr 23, 2025
29a2c8a
Auth flow still not perfect, but this seems to help
ChrisCanaday Apr 23, 2025
590c1d7
Added darkmode to usermobile. Vendormobile nav tab now changes depend…
ChrisCanaday Apr 23, 2025
da00322
Statusbar added. Removed unused code. Fixed modal styling
ChrisCanaday Apr 24, 2025
b5ff885
Fixed transfer button flow and made it update background color as soo…
ChrisCanaday Apr 24, 2025
31dc98c
Updated size and color of tab bar icons with the builtin handles
CalebKornegay Apr 24, 2025
2491b1a
Merge branch 'main' into mobile-dev
ChrisCanaday Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
EXPO_PUBLIC_DYNAMIC_ENVIRONMENT_ID=e332e4a7-4ed1-41ed-8ae9-7d7c462bf453
EXPO_PUBLIC_API_BASEURL=https://api.dev.opentix.co
23 changes: 22 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
.cdk.staging
cdk.out

# mobile output
**/dist
**/.expo
**/ios
**/android

# compiled output
dist
tmp
Expand Down Expand Up @@ -111,4 +117,19 @@ yarn-error.log
.metro-health-check*

# testing
/coverage
/coverage

# Expo
node_modules/
.expo/
.yarn/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
cache/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# OpenTix/platform

test

![We are limited by the technology of our time](https://i.imgflip.com/5qijoj.png?a482136)
9 changes: 9 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"expo": {
"plugins": [
"expo-secure-store",
"expo-router",
"react-native-nfc-manager"
]
}
}
6 changes: 3 additions & 3 deletions apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"build": {
"executor": "nx:run-commands",
"options": {
"command": "mkdir -p dist/apps/api && for f in apps/api/*.go; do go build -o dist/apps/api/$(basename \"$f\" .go) \"$f\"; done"
"command": "sh -c 'mkdir -p dist/apps/api; for f in apps/api/*.go; do go build -o dist/apps/api/$(basename \"$f\" .go) \"$f\"; done'"
}
},
"lint": {
"executor": "nx:run-commands",
"options": {
"command": "for f in apps/api/*.go; do go vet \"$f\"; done"
"command": "sh -c 'for f in apps/api/*.go; do go vet \"$f\"; done'"
}
},
"test": {
"executor": "nx:run-commands",
"options": {
"command": "for f in apps/api/*.go; do go test -v \"$f\"; done"
"command": "sh -c 'for f in apps/api/*.go; do go test -v \"$f\"; done'"
}
},
"tidy": {
Expand Down
6 changes: 3 additions & 3 deletions apps/eventhandlers/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
"build": {
"executor": "nx:run-commands",
"options": {
"command": "mkdir -p dist/apps/eventhandlers && for f in apps/eventhandlers/*.go; do go build -o dist/apps/eventhandlers/$(basename \"$f\" .go) \"$f\"; done"
"command": "sh -c 'mkdir -p dist/apps/eventhandlers; for f in apps/eventhandlers/*.go; do go build -o dist/apps/eventhandlers/$(basename \"$f\" .go) \"$f\"; done'"
}
},
"lint": {
"executor": "nx:run-commands",
"options": {
"command": "for f in apps/eventhandlers/*.go; do go vet \"$f\"; done"
"command": "sh -c 'for f in apps/eventhandlers/*.go; do go vet \"$f\"; done'"
}
},
"test": {
"executor": "nx:run-commands",
"options": {
"command": "for f in apps/eventhandlers/*.go; do go test -v \"$f\"; done"
"command": "sh -c 'for f in apps/eventhandlers/*.go; do go test -v \"$f\"; done'"
}
},
"tidy": {
Expand Down
7 changes: 7 additions & 0 deletions apps/usermobile/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin']
};
};
2 changes: 2 additions & 0 deletions apps/usermobile/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
EXPO_PUBLIC_DYNAMIC_ENVIRONMENT_ID=e332e4a7-4ed1-41ed-8ae9-7d7c462bf453
EXPO_PUBLIC_API_BASEURL=https://api.dev.opentix.co
35 changes: 35 additions & 0 deletions apps/usermobile/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# User Mobile App

This folder contains the code for the mobile version of the user application.

**_All commands should be ran from the platform directory_**

## Building

Before doing any of the following you should `npm i` in the platform directory.

Run `npx nx run usermobile:prebuild` to construct the ios and android directories.

### iOS

_A Mac with at least MacOS 14.5 with xcode fully installed is required_

Open `Usermobile.xcworkspace` in the ios directory.

If debuging you can just press the run button in Xcode. This will build and load the app on your phone and show changes in real time. However, this requires the computer to be running the app and the app will not work on its own.

If you wish to install the app on the phone and be able to use it while not connected to the computer then you need to change to a release build. This can be done in `Product > Scheme > Edit Scheme`. In the run section change it to release.

The above requires an Apple Developer Program membership ($100 a year) to build as you have to sign the application. When you press run in Xcode after switching to release it will load like debug and allow you to debug but when you kill the application it will remain on your phone and work without the computer.

### Android

_This should work on any system, but mileage may vary_

cd into the android directory and run `./gradlew app:assembleRelease`

This will build the .apk required for android devices and (like ios) will make the app remain on the phone. However there will be no debug session on the first run.

After the build finishes the result is locations in `android/app/build/outputs/apk/release/app-release.apk`

To load this apk onto the phone run `adb -d install app/build/outputs/apk/release/app-release.apk` from the android folder
47 changes: 47 additions & 0 deletions apps/usermobile/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"expo": {
"name": "Usermobile",
"slug": "usermobile",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.opentix.user",
"userInterfaceStyle": "automatic",
"infoPlist": {
"ITSAppUsesNonExemptEncryption": false,
"NSCameraUsageDescription": "Used to scan user ticket QR codes."
},
"associatedDomains": ["applinks:client.dev.opentix.co"],
"appleTeamId": "S726Z4H4Q3"
},
"android": {
"package": "com.opentix.usermobile",
"permissions": ["android.permission.NFC"],
"userInterfaceStyle": "automatic"
},
"web": {
"favicon": "./assets/favicon.png",
"bundler": "metro"
},
"plugins": ["react-native-nfc-manager"],
"extra": {
"eas": {
"projectId": "d55b9bab-7cae-4021-a54b-a35306ecd8d1"
}
},
"newArchEnabled": true,
"scheme": "opentixusermobile"
}
}
Binary file added apps/usermobile/assets/AnimationFail.lottie
Binary file not shown.
Binary file added apps/usermobile/assets/AnimationLoading.lottie
Binary file not shown.
Binary file added apps/usermobile/assets/AnimationSuccess.lottie
Binary file not shown.
Binary file added apps/usermobile/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/usermobile/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/usermobile/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/usermobile/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions apps/usermobile/components/DynamicSetup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { createClient } from '@dynamic-labs/client';
import { useReactiveClient } from '@dynamic-labs/react-hooks';
import { ReactNativeExtension } from '@dynamic-labs/react-native-extension';
import { ViemExtension } from '@dynamic-labs/viem-extension';

if (!process.env.EXPO_PUBLIC_DYNAMIC_ENVIRONMENT_ID) {
throw new Error('Missing Dynamic Environment ID');
}

export const dynamicClient = createClient({
environmentId: process.env.EXPO_PUBLIC_DYNAMIC_ENVIRONMENT_ID,

// Optional:
// // appLogoUrl: 'https://demo.dynamic.xyz/favicon-32x32.png',
appName: 'OpenTix User Mobile'
})
.extend(ReactNativeExtension())
.extend(ViemExtension());

export const useDynamic = () => useReactiveClient(dynamicClient);
Loading