Skip to content

Commit

Permalink
Merge pull request #3211 from KBVE/dev
Browse files Browse the repository at this point in the history
Preparing Alpha Branch
  • Loading branch information
h0lybyte authored Nov 15, 2024
2 parents 1852a9f + 5bac55d commit 0c57c8a
Show file tree
Hide file tree
Showing 20 changed files with 912 additions and 138 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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']
Expand Down Expand Up @@ -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:
Expand Down
10 changes: 4 additions & 6 deletions apps/expo-lcagents/src/app/(tabs)/services.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React from 'react';
import { View, Text, XStack, ScrollView } from 'tamagui';
import { TamaHero, TamaCard } from '@kbve/expo-bbq';
import { TamaHero, TamaCard, useBBQ } from '@kbve/expo-bbq';
import { Platform, Linking } from 'react-native';

import { useNavigation, useRouter } from 'expo-router';



function ServiceSection() {
return (
<XStack $sm={{ flexDirection: 'column' }} paddingHorizontal="$4" space>
Expand All @@ -20,14 +18,14 @@ function ServiceSection() {
}

const ServiceScreen = () => {
const router = useRouter();
const router = useBBQ();

const handleButtonOnePress = () => {
router.navigate('/contact');
router.go('/contact');
};

const handleButtonTwoPress = () => {
router.navigate('/support');
router.go('/support');
};

return (
Expand Down
2 changes: 1 addition & 1 deletion apps/expo-lcagents/src/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function RootLayoutNav() {
<Stack.Screen name="login" options={{ animation: 'fade' }} />
<Stack.Screen name="profile" options={{ animation: 'fade' }} />
<Stack.Screen name="onboard" options={{ animation: 'fade' }} />

<Stack.Screen name="users" options={{ animation: 'fade'}} />

</Stack>

Expand Down
115 changes: 115 additions & 0 deletions apps/expo-lcagents/src/app/users.tsx
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;
40 changes: 37 additions & 3 deletions apps/kbve.com/src/content/journal/11-11.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ title: 'November: 11th'
category: Daily
date: 2024-11-11 12:00:00
client: Self
unsplash: 1721332154373-17e78d19b4a4
img: https://images.unsplash.com/photo-1721332154373-17e78d19b4a4?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
unsplash: 1729508895264-d61e3f6587
img: https://images.unsplash.com/photo-1729508895264-d61e3f6587?crop=entropy&cs=srgb&fm=jpg&ixid=MnwzNjM5Nzd8MHwxfHJhbmRvbXx8fHx8fHx8fDE2ODE3NDg2ODY&ixlib=rb-4.0.3&q=85
description: November 11th.
tags:
- daily
Expand All @@ -19,4 +19,38 @@ import { Adsense, Tasks } from '@kbve/astropad';
**Screen**

Forgot to add the screen for the `onboard` section.
Let me go ahead and push that up.
Let me go ahead and push that up.

- 09:45AM

**TSLA**

The stock is sky rocketing in value and these calls are going to take away 500 shares, which is going to be rough for me.
Those taxes are going to be brutal.

- 06:37PM

**Realtime**

The real time supabase is the next challenge that I been working through, however there are some issues with the RLS.
The issue that we will first reference is the 7630 discussion on the Supabase but I believe we did not setup the RLS perfectly for the realtime, thus we can start from that area tonight.

Full error below:

```
Failed to connect to the channel test: This may be due to restrictive RLS policies. Check your role and try again.
```

- 09:14PM

**Kill Tony**

Another wonderful session of kill tony, I am actually pretty excited for it!
Ari getting his seat on the panel, oh yessir.

While watching the killing of our great tony, I am going to finish up some more of the SQL changes for onboarding.


<Adsense />
62 changes: 62 additions & 0 deletions apps/kbve.com/src/content/journal/11-12.mdx
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 />
52 changes: 52 additions & 0 deletions apps/kbve.com/src/content/journal/11-13.mdx
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.
Loading

0 comments on commit 0c57c8a

Please sign in to comment.