-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3211 from KBVE/dev
Preparing Alpha Branch
- Loading branch information
Showing
20 changed files
with
912 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ jobs: | |
atlas: ${{ steps.delta.outputs.atlas_any_changed }} | ||
rustapiprofile: ${{ steps.delta.outputs.rustapiprofile_any_changed }} | ||
expolcagents: ${{ steps.delta.outputs.expolcagents_any_changed }} | ||
kilonet: ${{ steps.delta.outputs.kilonet_any_changed }} | ||
|
||
steps: | ||
- name: Checkout the repository using git | ||
|
@@ -97,6 +98,8 @@ jobs: | |
- 'apps/rust_api_profile/**' | ||
expolcagents: | ||
- 'apps/expo-lcagents/**' | ||
kilonet: | ||
- 'packages/kilonet/README.md' | ||
expo-lcagents-web-build: | ||
needs: ['alter', 'globals'] | ||
|
@@ -174,6 +177,29 @@ jobs: | |
commit_message: ${{ github.event.head_commit.message }} | ||
rsync_option: '-avrh --delete' | ||
|
||
kilonet-rareicon-build: | ||
needs: ['alter', 'globals'] | ||
name: Kilonet RareIcon | ||
runs-on: ubuntu-latest | ||
if: needs.alter.outputs.kilonet == 'true' | ||
steps: | ||
- name: Checkout this repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Pull RareIcon Kilonet Repo | ||
env: | ||
AZURE_PAT: ${{ secrets.AZURE_NOV2025_TOKEN_SECRET }} | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git clone https://kbve:${AZURE_PAT}@dev.azure.com/kbve/rareicon/_git/rareicon azure-rareicon | ||
cd azure-rareicon | ||
echo "Current working directory: $(pwd)" | ||
echo "Listing all files in the repository:" | ||
find . -type f | ||
echo "Listing all contents (including hidden files):" | ||
ls -la | ||
# Alpha Builds | ||
|
||
# buildSaber: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
import React, { useMemo, useCallback, useEffect } from 'react'; | ||
import { YStack, XStack, SizableText, Separator, ScrollView } from 'tamagui'; | ||
import { | ||
TamaUserCard, | ||
LottieAnimation, | ||
createSupabaseClient, | ||
TamaProfileContainer, | ||
} from '@kbve/expo-bbq'; | ||
import { useNavigation, useLocalSearchParams } from 'expo-router'; | ||
|
||
const Users = () => { | ||
const navigation = useNavigation(); | ||
|
||
const { username = 'h0lybyte' } = useLocalSearchParams<{ | ||
username?: string; | ||
}>(); | ||
|
||
const supabaseUrl = 'https://supabase.kbve.com'; | ||
const supabaseAnonKey = | ||
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.ewogICJyb2xlIjogImFub24iLAogICJpc3MiOiAic3VwYWJhc2UiLAogICJpYXQiOiAxNzI0NTM2ODAwLAogICJleHAiOiAxODgyMzAzMjAwCn0._fmEmblm0afeLoPXxt8wP2mYpa9gzU-ufx3v8oRTFGg'; | ||
|
||
const supabase = useMemo( | ||
() => createSupabaseClient(supabaseUrl, supabaseAnonKey), | ||
[supabaseUrl, supabaseAnonKey], | ||
); | ||
|
||
const lottieProfileAnimation = useMemo( | ||
() => require('../../assets/json/profile.json'), | ||
[], | ||
); | ||
|
||
const updateNavigationOptions = useCallback(() => { | ||
navigation.setOptions({ | ||
title: 'KBVE Users', | ||
headerBackTitle: 'Back', | ||
}); | ||
}, [navigation]); | ||
|
||
useEffect(() => { | ||
updateNavigationOptions(); | ||
}, [updateNavigationOptions]); | ||
|
||
const MemoizedLottieAnimation = React.memo(LottieAnimation); | ||
|
||
return ( | ||
<ScrollView contentContainerStyle={{ flexGrow: 1 }}> | ||
<XStack | ||
f={1} | ||
jc="center" | ||
ai="center" | ||
padding="$1" | ||
flexDirection="column" | ||
$gtMd={{ | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
maxWidth: '90%', | ||
gap: '$6', | ||
}} | ||
$gtLg={{ | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
maxWidth: '80%', | ||
gap: '$8', | ||
}}> | ||
<YStack | ||
jc="center" | ||
ai="center" | ||
$sm={{ width: '50%', display: 'block' }} | ||
$gtLg={{ | ||
flex: 1, | ||
maxWidth: '100%', | ||
}}> | ||
<MemoizedLottieAnimation | ||
lottieJSON={lottieProfileAnimation} | ||
style={{ | ||
width: '100%', | ||
height: 'auto', | ||
aspectRatio: 1, | ||
maxWidth: 800, | ||
}} | ||
/> | ||
</YStack> | ||
|
||
<YStack | ||
jc="center" | ||
ai="center" | ||
$sm={{ width: '100%' }} | ||
$gtLg={{ | ||
flex: 1, | ||
maxWidth: '40%', | ||
paddingLeft: '$8', | ||
}}> | ||
<SizableText size="$4" theme="alt1" $gtLg={{ size: '$6' }}> | ||
KBVE Users | ||
</SizableText> | ||
<Separator | ||
borderColor="cyan" | ||
paddingVertical="$2" | ||
alignSelf="stretch" | ||
$gtLg={{ | ||
paddingVertical: '$5', | ||
}} | ||
/> | ||
|
||
<TamaProfileContainer | ||
username={username} | ||
supabase={supabase} | ||
/> | ||
</YStack> | ||
</XStack> | ||
</ScrollView> | ||
); | ||
}; | ||
|
||
export default Users; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: 'November: 12th' | ||
category: Daily | ||
date: 2024-11-12 12:00:00 | ||
client: Self | ||
unsplash: 1729691692870-a957012d616a | ||
img: https://images.unsplash.com/photo-1729691692870-a957012d616a?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85 | ||
description: November 12th. | ||
tags: | ||
- daily | ||
--- | ||
|
||
import { Adsense, Tasks } from '@kbve/astropad'; | ||
|
||
## 2024 | ||
|
||
- 05:15AM | ||
|
||
**Early** | ||
|
||
Nothing feels so great like a great new day! | ||
Today is going to be a big day, I am going to go ham with the publishing and see if I can resolve a bunch of abstract bugs. | ||
Ugh, I went to check if I had react hook form and the resolves installed and I completely forgot that I did! | ||
We really need to make sure our package json is cleaned up and ready for these future updates. | ||
|
||
Let me start by making more issue tickets with things that I need to resolve. | ||
The joys of waking up early and running the greatest command. | ||
|
||
```shell | ||
|
||
./kbve.sh -nx expo-lcagents:start | ||
|
||
``` | ||
|
||
- 06:28PM | ||
|
||
**EXPO** | ||
|
||
The next plan is to adjust the error situation because it seems that the error is not passing up. | ||
Which means that we have two additional options, one being using an event system and the other using a worklet, hmm, maybe a combo of both? | ||
Lets go ahead and tackle this right now before I forgot. | ||
|
||
There are six areas that we need to test out, the first is improving the memo utilization and memory usage. | ||
React should be able to handle the memory management, but we should look at maybe adding our own ways to make this easier, hmm. | ||
The second part was the `React.lazy` and having it help us offset some of the loading of the more complex animations and components, I suppose that can be used with our offscreen objects. | ||
The third part would be the `React Context API` but that might be too much of an issue for us to utilize right now, but it does make sense to have it pass some objects. | ||
The fourth part will be having the useTransitions to help smooth out the hicups and then there are the other additional libraries, ugh! | ||
I need to becareful not to bloat up the application as well, maybe we can keep these noted and tackle the optimization later on. | ||
|
||
So the goal would be to build these components out: | ||
|
||
- `useIdleCallback` | ||
- `useCache` | ||
- `useMemory` | ||
- `useLazyMemory` | ||
- `useOffScreen` | ||
- `useVirtual` | ||
|
||
All of them can then be placed into the `core` of our expo package, making it so that we can use them in the future to help us handle some of the future issues that will require optimization. | ||
|
||
|
||
<Adsense /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: 'November: 13th' | ||
category: Daily | ||
date: 2024-11-13 12:00:00 | ||
client: Self | ||
unsplash: 1729691692870-a957012d616a | ||
img: https://images.unsplash.com/photo-1729691692870-a957012d616a?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85 | ||
description: November 13th. | ||
tags: | ||
- daily | ||
--- | ||
|
||
import { Adsense, Tasks } from '@kbve/astropad'; | ||
|
||
## 2024 | ||
|
||
- 06:15AM | ||
|
||
**Hooks** | ||
|
||
We are going to migrate in the different hooks to help streamline the app development. | ||
Here is the list again of the new hooks that we want to add: | ||
|
||
- `useIdleCallback` | ||
- `useCache` | ||
- `useMemory` | ||
- `useLazyMemory` | ||
- `useOffScreen` | ||
- `useVirtual` | ||
|
||
These hooks can then be used in the [Register/Onboard page](https://github.com/KBVE/kbve/issues/2212). | ||
|
||
All of these hooks have to be built in a way that will ensure that they can work in both mobile and web, so there might be a bit of a nested ifs to handle the different platforms. | ||
This feels like we are moving closer to our own useless million concept, but its okay, that is part of the learning process. | ||
|
||
Okay let me first tackle the `useCache` and the `useIdleCallback` for the `expo-bbq`. | ||
We will create both files under the `/packages/expo-bbq/src/core` | ||
|
||
- 04:00PM | ||
|
||
**SpaceEngineer** | ||
|
||
Playing a bunch of Space Engineer with the boys, while trying to get a better understanding of custom hooks within the React/ReactNative realm. | ||
My goal will be to eventually get to `useWASM()` hook, that would automatically wrap a wasm with the right parameters to be used for both web and mobile. | ||
However there will be a long time until I get to a working demo of the hook. | ||
|
||
- 11:50PM | ||
|
||
**TrueDetective** | ||
|
||
The first season of true detective, oh man is it so good! | ||
I forgot how amazing this season was, it is a master piece of art. |
Oops, something went wrong.