-
Notifications
You must be signed in to change notification settings - Fork 0
Claude/improve table styling t k sl f #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ProtectorAnalytics
wants to merge
6
commits into
master
Choose a base branch
from
claude/improve-table-styling-tKSlF
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7ad0d4e
Melhora estilo da tabela de capturas no dashboard
claude ad51c14
Adiciona script de versionamento automático e bump v1.0.1
claude 6820ff6
Corrige proporção e centralização das colunas da tabela
claude c51f8b1
bump: v1.0.2
claude e9bb95e
Adiciona instruções de deploy no CLAUDE.md
claude 0ea7079
Reverte tabela para estilo original + bump v1.0.3
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
| # Protector Lombada - Instruções para Claude | ||
|
|
||
| ## Versionamento Automático (OBRIGATÓRIO) | ||
|
|
||
| Após TODA alteração de código, executar o script de versionamento antes do commit: | ||
|
|
||
| ```bash | ||
| # Melhorias, ajustes de estilo, correções de bug → bump de BUILD | ||
| ./scripts/version-bump.sh build | ||
|
|
||
| # Novas funcionalidades → bump de MINOR | ||
| ./scripts/version-bump.sh minor | ||
|
|
||
| # Mudanças radicais / breaking changes / redesign completo → bump de MAJOR | ||
| ./scripts/version-bump.sh major | ||
| ``` | ||
|
|
||
| ### Formato: MAJOR.MINOR.BUILD | ||
| - **major** (ex: 1.0.0 → 2.0.0): mudança radical, redesign, breaking changes | ||
| - **minor** (ex: 1.0.0 → 1.1.0): nova funcionalidade | ||
| - **build** (ex: 1.0.0 → 1.0.1): melhoria visual, ajuste de estilo, correção de bug, refatoração | ||
|
|
||
| ### Fluxo de commit: | ||
| 1. Fazer as alterações no código | ||
| 2. `git add` dos arquivos alterados | ||
| 3. `git commit` das alterações | ||
| 4. Rodar `./scripts/version-bump.sh <tipo>` | ||
| 5. `git add` dos arquivos de versão (package.json, dashboard/index.html, dashboard/manual.html) | ||
| 6. `git commit` com mensagem "bump: vX.Y.Z" | ||
| 7. `git push` | ||
|
|
||
| ## Deploy (OBRIGATÓRIO) | ||
|
|
||
| O deploy é feito automaticamente pela **Vercel** ao detectar push no branch `master`. | ||
|
|
||
| ### Após finalizar alterações, SEMPRE: | ||
| 1. Fazer merge do branch de feature para `master` | ||
| 2. Push para `master` — a Vercel faz deploy automático | ||
| 3. Se push direto no `master` estiver bloqueado (403), criar PR e fazer merge pelo GitHub | ||
|
|
||
| ### Branch principal: `master` | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,86 @@ | ||
| #!/bin/bash | ||
| # ============================================================================= | ||
| # version-bump.sh - Script de versionamento automático do Protector Lombada | ||
| # | ||
| # Uso: | ||
| # ./scripts/version-bump.sh build # Melhorias, ajustes, correções | ||
| # ./scripts/version-bump.sh minor # Novas funcionalidades | ||
| # ./scripts/version-bump.sh major # Mudanças radicais / breaking changes | ||
| # | ||
| # Formato: MAJOR.MINOR.BUILD | ||
| # - major: mudança radical (breaking change, redesign completo) | ||
| # - minor: nova funcionalidade | ||
| # - build: melhoria, ajuste de estilo, correção de bug | ||
| # ============================================================================= | ||
|
|
||
| set -e | ||
|
|
||
| BUMP_TYPE="${1:-build}" | ||
| ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" | ||
| PKG="$ROOT_DIR/package.json" | ||
| DASH="$ROOT_DIR/dashboard/index.html" | ||
| MANUAL="$ROOT_DIR/dashboard/manual.html" | ||
|
|
||
| # Lê versão atual do package.json | ||
| CURRENT=$(grep '"version"' "$PKG" | head -1 | sed 's/.*"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/') | ||
| MAJOR=$(echo "$CURRENT" | cut -d. -f1) | ||
| MINOR=$(echo "$CURRENT" | cut -d. -f2) | ||
| BUILD=$(echo "$CURRENT" | cut -d. -f3) | ||
|
|
||
| echo "Versão atual: $CURRENT" | ||
|
|
||
| case "$BUMP_TYPE" in | ||
| major) | ||
| MAJOR=$((MAJOR + 1)) | ||
| MINOR=0 | ||
| BUILD=0 | ||
| ;; | ||
| minor) | ||
| MINOR=$((MINOR + 1)) | ||
| BUILD=0 | ||
| ;; | ||
| build) | ||
| BUILD=$((BUILD + 1)) | ||
| ;; | ||
| *) | ||
| echo "Uso: $0 [major|minor|build]" | ||
| echo " major - mudança radical (breaking changes)" | ||
| echo " minor - nova funcionalidade" | ||
| echo " build - melhoria, ajuste, correção" | ||
| exit 1 | ||
| ;; | ||
| esac | ||
|
|
||
| NEW_VERSION="$MAJOR.$MINOR.$BUILD" | ||
| COMMIT_HASH=$(git -C "$ROOT_DIR" rev-parse --short HEAD 2>/dev/null || echo "0000000") | ||
| TODAY=$(date +%Y-%m-%d) | ||
| MONTH_YEAR=$(date +"%B %Y" | sed 's/January/Janeiro/;s/February/Fevereiro/;s/March/Março/;s/April/Abril/;s/May/Maio/;s/June/Junho/;s/July/Julho/;s/August/Agosto/;s/September/Setembro/;s/October/Outubro/;s/November/Novembro/;s/December/Dezembro/') | ||
|
|
||
| echo "Nova versão: $NEW_VERSION ($BUMP_TYPE)" | ||
| echo "Build hash: $COMMIT_HASH" | ||
| echo "Data: $TODAY" | ||
| echo "" | ||
|
|
||
| # 1. Atualiza package.json | ||
| sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$NEW_VERSION\"/" "$PKG" | ||
| echo "[OK] package.json → $NEW_VERSION" | ||
|
|
||
| # 2. Atualiza dashboard/index.html - versão na tela de login | ||
| sed -i "s/v[0-9]*\.[0-9]*\.[0-9]* \· Build [a-f0-9]* \· [0-9\-]*/v$NEW_VERSION \· Build $COMMIT_HASH \· $TODAY/" "$DASH" | ||
| echo "[OK] dashboard/index.html (login)" | ||
|
|
||
| # 3. Atualiza dashboard/index.html - rodapé | ||
| sed -i "s/Protector Traffic Control \· v[0-9]*\.[0-9]*\.[0-9]* \· Build [a-f0-9]*/Protector Traffic Control \· v$NEW_VERSION \· Build $COMMIT_HASH/" "$DASH" | ||
| echo "[OK] dashboard/index.html (footer)" | ||
|
|
||
| # 4. Atualiza manual.html - versão no topo | ||
| sed -i "s/Versão [0-9]*\.[0-9]*\.[0-9]* | .*/Versão $NEW_VERSION | $MONTH_YEAR<\/p>/" "$MANUAL" | ||
| echo "[OK] manual.html (header)" | ||
|
|
||
| # 5. Atualiza manual.html - versão no rodapé | ||
| sed -i "s/v[0-9]*\.[0-9]*\.[0-9]* | [A-ZÇa-zçã]* [0-9]*/v$NEW_VERSION | $MONTH_YEAR/" "$MANUAL" | ||
| echo "[OK] manual.html (footer)" | ||
|
|
||
| echo "" | ||
| echo "Versão atualizada: v$NEW_VERSION (Build $COMMIT_HASH) - $TODAY" | ||
| echo "Arquivos modificados: package.json, dashboard/index.html, dashboard/manual.html" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These instructions mandate merge/push to
master, but this repository usesmain; following the documented flow can cause failed pushes or deployments to never trigger on the intended branch. The operational guidance should reference the real default branch so release steps are executable.Useful? React with 👍 / 👎.