1.0.28
This commit is contained in:
46 files changed
+7202
-233
No files matched your search
@@ -200,8 +200,8 @@
|
||||
* Sync rawContent TO variables.
|
||||
* Parses raw content for non-secrets, preserves existing secrets.
|
||||
*/
|
||||
function syncRawToVariables() {
|
||||
const { vars, warnings } = parseRawContent(rawContent);
|
||||
function syncRawToVariables(content?: string) {
|
||||
const { vars, warnings } = parseRawContent(content ?? rawContent);
|
||||
parseWarnings = warnings;
|
||||
|
||||
// Preserve existing secrets (they're not in rawContent)
|
||||
@@ -240,8 +240,9 @@
|
||||
// Form → Text: sync variables to raw (preserves comments)
|
||||
syncVariablesToRaw();
|
||||
} else if (newMode === 'form' && viewMode === 'text') {
|
||||
// Text → Form: sync raw to variables (preserves secrets)
|
||||
syncRawToVariables();
|
||||
// Text → Form: use textEditorContent which falls back to generatedRawContent
|
||||
// when rawContent is empty (fixes vars lost on view switch for git stacks)
|
||||
syncRawToVariables(textEditorContent);
|
||||
}
|
||||
|
||||
viewMode = newMode;
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<span class="text-muted-foreground font-normal">({release.date})</span>
|
||||
</h3>
|
||||
<div class="space-y-1.5 ml-1">
|
||||
{#each release.changes as change}
|
||||
{#each [...release.changes].sort((a, b) => a.type === b.type ? 0 : a.type === 'feature' ? -1 : 1) as change}
|
||||
{@const { icon: Icon, class: iconClass } = getChangeIcon(change.type)}
|
||||
<div class="flex items-start gap-2">
|
||||
<Icon class="w-4 h-4 mt-0.5 shrink-0 {iconClass}" />
|
||||
|
||||
Reference in new issue
Block a user