From 540037851ce9bbfc8a8260d999e0c76eadeb4ddc Mon Sep 17 00:00:00 2001 From: Adam Dean Date: Tue, 18 Nov 2025 23:13:51 -0700 Subject: [PATCH 1/2] Add a workflow that can be manually triggered to generate API documentation. Less thrashing given the size of the API and the fact that it will likely rarely change, no need to have it regenerated every time we publish something to main. --- .github/workflows/publish-api.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish-api.yml diff --git a/.github/workflows/publish-api.yml b/.github/workflows/publish-api.yml new file mode 100644 index 0000000..4b0568a --- /dev/null +++ b/.github/workflows/publish-api.yml @@ -0,0 +1,23 @@ +name: Generate API Docs + +on: + workflow_dispatch: + +jobs: + build-docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Install dependencies + run: composer install --no-interaction --no-progress --prefer-dist + + - name: Generate Scribe docs + run: php artisan scribe:generate From 3122a7cf8786f52396ef4fbef4ab2f9f599f862d Mon Sep 17 00:00:00 2001 From: Adam Dean Date: Tue, 18 Nov 2025 23:18:47 -0700 Subject: [PATCH 2/2] Add automatic wallet reconnection to discover page as well to minimize the number of times users need to click "connect wallet" while browsing around the site. --- resources/js/Pages/Event/Discover.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/js/Pages/Event/Discover.vue b/resources/js/Pages/Event/Discover.vue index 9c54583..e1404ac 100644 --- a/resources/js/Pages/Event/Discover.vue +++ b/resources/js/Pages/Event/Discover.vue @@ -103,6 +103,7 @@ const format_wallet_name = (wallet) => { }; const find_wallets = () => { + const target_wallet = localStorage.getItem('connected_wallet'); let loop = setInterval(() => { if (cardano.value.attempts <= 0) { if (cardano.value.wallets.length) { @@ -118,12 +119,15 @@ const find_wallets = () => { if (window.cardano !== undefined) { cardano.value.hasCardano = true; - Object.keys(window.cardano).forEach((name) => { + Object.keys(window.cardano).forEach(async (name) => { if (!is_valid_wallet(name)) { return; } const wallet = window.cardano[name]; + if (wallet.name === target_wallet && !cardano.value.connected) { + await connect(wallet); + } if (!cardano.value.wallets.includes(wallet)) { cardano.value.wallets.push(wallet); @@ -143,6 +147,7 @@ const connect = async (wallet) => { wallet.busy = false; return; } + localStorage.setItem('connected_wallet', wallet.name); cardano.value.connected = wallet; wallet.busy = false; modal.value.connectWallet = false; @@ -156,7 +161,7 @@ const disconnect = () => { cardano.value.connection = null; cardano.value.network_mode = null; walletPolicies.value = []; - events.value = []; + localStorage.removeItem('connected_wallet'); }; const check_balance = async () => { @@ -257,7 +262,7 @@ onMounted(async () => {