fix: make edit button always visible
This commit is contained in:
parent
8697707fe2
commit
4721846c8f
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
---
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue