fix: make edit button always visible
Build Newspaper Extractor Backend / build-newspaper-backend (push) Successful in 30m28s Details
Build Newspaper Extractor Frontend / build-newspaper-frontend (push) Successful in 3m6s Details

This commit is contained in:
Deep Koluguri 2026-07-09 00:05:02 -04:00
parent 8697707fe2
commit 4721846c8f
6 changed files with 37 additions and 4 deletions

View File

@ -16,7 +16,7 @@ spec:
containers:
- name: backend
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:latest
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
env:
- name: DATABASE_URL
value: "postgresql://myuser:mypassword@newspaper-db.ai-agents.svc.cluster.local:5432/mydatabase"

View File

@ -16,7 +16,7 @@ spec:
containers:
- name: frontend
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-frontend:latest
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
ports:
- containerPort: 3000
---

View File

@ -16,7 +16,7 @@ spec:
containers:
- name: worker
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:latest
imagePullPolicy: IfNotPresent
imagePullPolicy: Always
command: ["celery", "-A", "app.tasks.celery_app", "worker", "--loglevel=info", "-P", "solo"]
env:
- name: DATABASE_URL

33
kaniko-frontend.yaml Normal file
View File

@ -0,0 +1,33 @@
apiVersion: v1
kind: Pod
metadata:
name: kaniko-frontend
namespace: platform-data
spec:
restartPolicy: Never
volumes:
- name: workspace
emptyDir: {}
initContainers:
- name: clone-repo
image: alpine/git
command:
- /bin/sh
- -c
- "git clone http://gitea.gitea.svc.cluster.local:3000/deepkoluguri/agentic-os.git /workspace"
volumeMounts:
- name: workspace
mountPath: /workspace
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
args:
- "--context=dir:///workspace/newspaper-extractor/frontend"
- "--dockerfile=Dockerfile"
- "--destination=registry.platform-data.svc.cluster.local:5000/agentic-os/newspaper-extractor-frontend:latest"
- "--insecure"
- "--skip-tls-verify"
- "--cache=false"
volumeMounts:
- name: workspace
mountPath: /workspace

View File

@ -87,7 +87,7 @@ export function ArticleCard({ article: initialArticle }: ArticleCardProps) {
</button>
</div>
) : (
<button onClick={() => setIsEditing(true)} className="flex items-center gap-1 text-xs text-zinc-400 hover:text-indigo-400 transition-colors bg-zinc-800/50 hover:bg-zinc-800 px-2 py-1 rounded opacity-0 group-hover:opacity-100">
<button onClick={() => setIsEditing(true)} className="flex items-center gap-1 text-xs text-zinc-400 hover:text-indigo-400 transition-colors bg-zinc-800/50 hover:bg-zinc-800 px-2 py-1 rounded">
<Edit2 size={14} /> Edit
</button>
)}

BIN
patch.json Normal file

Binary file not shown.