mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Merge dev: STT feature, git date fixes, and session improvements (#82)
* fix session last active * Feature/sst (#81) * Use CSS field-sizing for textarea auto-height and abort STT recording on clear * Fix invalid date display in git commits * Use Unix timestamps for git log dates
This commit is contained in:
1 parent
21010956f7
commit
cb1714a4e0
17 files changed
+2475
-76
No files matched your search
@@ -35,7 +35,7 @@ export class GitLogService {
|
||||
`--all`,
|
||||
`-n`,
|
||||
String(limit),
|
||||
'--format=%H|%an|%ae|%ai|%s'
|
||||
'--format=%H|%an|%ae|%at|%s'
|
||||
]
|
||||
const logEnv = this.gitAuthService.getGitEnvironment(true)
|
||||
const output = await executeCommand(logArgs, { env: logEnv })
|
||||
@@ -47,7 +47,7 @@ export class GitLogService {
|
||||
if (!line.trim()) continue
|
||||
|
||||
const parts = line.split('|')
|
||||
const [hash, authorName, authorEmail, date, ...messageParts] = parts
|
||||
const [hash, authorName, authorEmail, timestamp, ...messageParts] = parts
|
||||
const message = messageParts.join('|')
|
||||
|
||||
if (hash) {
|
||||
@@ -55,7 +55,7 @@ export class GitLogService {
|
||||
hash,
|
||||
authorName: authorName || '',
|
||||
authorEmail: authorEmail || '',
|
||||
date: date || '',
|
||||
date: timestamp || '',
|
||||
message: message || ''
|
||||
})
|
||||
}
|
||||
@@ -99,7 +99,7 @@ export class GitLogService {
|
||||
'-C',
|
||||
repoPath,
|
||||
'log',
|
||||
'--format=%H|%an|%ae|%ai|%s',
|
||||
'--format=%H|%an|%ae|%at|%s',
|
||||
hash,
|
||||
'-1'
|
||||
]
|
||||
@@ -112,7 +112,7 @@ export class GitLogService {
|
||||
}
|
||||
|
||||
const parts = output.trim().split('|')
|
||||
const [commitHash, authorName, authorEmail, date, ...messageParts] = parts
|
||||
const [commitHash, authorName, authorEmail, timestamp, ...messageParts] = parts
|
||||
const message = messageParts.join('|')
|
||||
|
||||
if (!commitHash) {
|
||||
@@ -123,7 +123,7 @@ export class GitLogService {
|
||||
hash: commitHash,
|
||||
authorName: authorName || '',
|
||||
authorEmail: authorEmail || '',
|
||||
date: date || '',
|
||||
date: timestamp || '',
|
||||
message: message || ''
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
|
||||
Reference in new issue
Block a user