Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,15 @@
"vite": "^5.0.8",
"vite-plugin-electron": "^0.15.4",
"vite-plugin-electron-renderer": "^0.14.5"
},
"build": {
"appId": "com.electron.git-watcher-pro",
"productName": "Git Watcher Pro",
"win": {
"target": "nsis"
},
"mac": {
"identity": null
}
}
}
22 changes: 11 additions & 11 deletions src/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Dashboard: React.FC<DashboardProps> = ({
}) => (
<div className="dashboard-container">
{/* Repos Section */}
<div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 }}>
<div className="repo-section">
<div className="section-header">
<h3 className="section-title">Watched Repositories ({repos.length})</h3>
<button className="btn-primary" onClick={onAddRepo}>+ Add Repository</button>
Expand All @@ -49,14 +49,14 @@ export const Dashboard: React.FC<DashboardProps> = ({

{/* Timeline Logs Section */}
<ResizablePanel>
<div className="logs-container" style={{ height: '100%' }}>
<div className="logs-container">
<div className="logs-header">
<span>Activity Timeline</span>
<span style={{ cursor: 'pointer', opacity: 0.7 }} onClick={onClearLogs}>Clear Logs</span>
<span className="clear-logs-btn" onClick={onClearLogs}>Clear Logs</span>
</div>
<div className="logs-scroll-area">
{logs.length === 0 && (
<div style={{ color: '#444', textAlign: 'center', marginTop: '40px', fontStyle: 'italic' }}>
<div className="logs-empty-state">
No activity recorded yet...
</div>
)}
Expand Down Expand Up @@ -106,16 +106,16 @@ const RepoCard = ({ repo, onToggle, onPull, onPush, onDelete }: { repo: Repo, on
</div>
</div>

<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-end', gap: '8px', textAlign: 'right' }}>
<button onClick={onDelete} className="delete-btn" title="Remove Repository">
🗑️
</button>
<label style={{ display: 'flex', alignItems: 'center', fontSize: '12px', cursor: 'pointer', color: '#ccc' }}>
<input type="checkbox" checked={repo.autoPull} onChange={onToggle} style={{ marginRight: '8px' }} />
<div className="repo-controls">
<label className="autopull-label">
<input type="checkbox" checked={repo.autoPull} onChange={onToggle} />
Auto-Pull
</label>
<ActionButton repo={repo} onPull={onPull} onPush={onPush} />
<div style={{ fontSize: '11px', color: '#666', marginTop: 'auto' }}>
<button onClick={onDelete} className="delete-btn" title="Remove Repository">
🗑️
</button>
<div className="repo-last-checked">
Last checked: {repo.lastCheck}
</div>
</div>
Expand Down
Loading