From 1bbc2ea25da21daab0e3c34ef6d1122a2a52d11b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?= Date: Wed, 27 May 2026 21:28:49 +0200 Subject: [PATCH 01/24] Remove Gittensor labeling --- .github/workflows/label-not-gittensor.yml | 60 ----------------------- 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/label-not-gittensor.yml diff --git a/.github/workflows/label-not-gittensor.yml b/.github/workflows/label-not-gittensor.yml deleted file mode 100644 index 7b846e8f7..000000000 --- a/.github/workflows/label-not-gittensor.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: Label non-Gittensor PRs - -on: - pull_request_target: - types: - - opened - - reopened - -permissions: - pull-requests: write - -jobs: - label-pr: - runs-on: ubuntu-latest - steps: - - name: Add not-gittensor label for matched authors - uses: actions/github-script@v7 - env: - GITTENSOR_USERS: ${{ vars.GITTENSOR_USERS || '[]' }} - GITTENSOR_EXCEPTIONS: ${{ vars.GITTENSOR_EXCEPTIONS || '[]' }} - TARGET_LABEL: not-gittensor - with: - script: | - const parseList = (raw, name) => { - try { - const parsed = JSON.parse(raw || '[]'); - if (!Array.isArray(parsed)) { - core.setFailed(`${name} must be a JSON array.`); - return []; - } - return parsed.map((value) => String(value).toLowerCase()); - } catch (error) { - core.setFailed(`Failed to parse ${name}: ${error.message}`); - return []; - } - }; - - const author = context.payload.pull_request.user.login.toLowerCase(); - const users = new Set(parseList(process.env.GITTENSOR_USERS, 'GITTENSOR_USERS')); - const exceptions = new Set(parseList(process.env.GITTENSOR_EXCEPTIONS, 'GITTENSOR_EXCEPTIONS')); - - if (users.has(author) || exceptions.has(author)) { - core.info(`No label needed for @${author}.`); - return; - } - - const existingLabels = context.payload.pull_request.labels.map((label) => label.name); - if (existingLabels.includes(process.env.TARGET_LABEL)) { - core.info(`Label ${process.env.TARGET_LABEL} already present.`); - return; - } - - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: [process.env.TARGET_LABEL], - }); - - core.info(`Added ${process.env.TARGET_LABEL} to PR #${context.payload.pull_request.number}.`); From 326595ad715134540fd66571622116aa63893257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Dular?= <22869613+xBlaz3kx@users.noreply.github.com> Date: Wed, 27 May 2026 23:04:42 +0200 Subject: [PATCH 02/24] fix(accounts): show activity label instead of category for accounts supporting trades (#1993) --- app/components/UI/account/chart.html.erb | 4 ++-- app/views/transactions/_transaction.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/UI/account/chart.html.erb b/app/components/UI/account/chart.html.erb index 91fb0b69c..c14627575 100644 --- a/app/components/UI/account/chart.html.erb +++ b/app/components/UI/account/chart.html.erb @@ -4,7 +4,7 @@
<%= tag.p title, class: "text-sm font-medium text-secondary" %> - <% if account.investment? %> + <% if account.supports_trades? %> <%= render "investments/value_tooltip", balance: account.balance_money, holdings: holdings_value_money, cash: account.cash_balance_money %> <% end %>
@@ -19,7 +19,7 @@ <%= form_with url: account_path(account), method: :get, data: { controller: "auto-submit-form" } do |form| %>
- <% if account.investment? %> + <% if account.supports_trades? %> <%= form.select :chart_view, [[t(".views.total_value"), "balance"], [t(".views.holdings"), "holdings_balance"], [t(".views.cash"), "cash_balance"]], { selected: view }, diff --git a/app/views/transactions/_transaction.html.erb b/app/views/transactions/_transaction.html.erb index 8bccd8b4e..9aff39d03 100644 --- a/app/views/transactions/_transaction.html.erb +++ b/app/views/transactions/_transaction.html.erb @@ -180,8 +180,8 @@