-
Notifications
You must be signed in to change notification settings - Fork 0
fix: z #81
fix: z #81
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,7 @@ const isInitialized = ref(false); | |||||
| const messages = { | ||||||
| en: { | ||||||
| appTitle: 'TaskGraph', | ||||||
| aboutUs: 'About us', | ||||||
| specialThanks: 'Special Thanks', | ||||||
| helpTitle: 'How to use', | ||||||
| guestMode: 'Guest Mode', | ||||||
|
|
@@ -95,6 +96,7 @@ const messages = { | |||||
| }, | ||||||
| ja: { | ||||||
| appTitle: 'TaskGraph', | ||||||
| aboutUs: 'About us', | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Japanese translation is missing for The 🌐 Proposed fix- aboutUs: 'About us',
+ aboutUs: '私たちについて',📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| specialThanks: '謝意', | ||||||
| helpTitle: '使い方', | ||||||
| guestMode: 'ゲストモード', | ||||||
|
|
@@ -121,9 +123,9 @@ const messages = { | |||||
| range1w: '1週間', | ||||||
| range2w: '2週間', | ||||||
| range1m: '1か月', | ||||||
| axisDuration: '時間', | ||||||
| axisDuration: '所要時間', | ||||||
| axisMotivation: 'モチベーション', | ||||||
| axisStatus: 'ステータス', | ||||||
| axisStatus: '状態', | ||||||
| visualNone: 'なし', | ||||||
| controlWindow: '表示範囲', | ||||||
| controlYAxis: 'Y軸', | ||||||
|
|
@@ -145,7 +147,7 @@ const messages = { | |||||
| drawerCancel: 'キャンセル', | ||||||
| drawerCreating: '作成中...', | ||||||
| drawerNoDescription: '説明なし', | ||||||
| drawerStatus: 'ステータス', | ||||||
| drawerStatus: '状態', | ||||||
| drawerStatusAriaView: '詳細画面のタスクステータス', | ||||||
| drawerStatusAriaEdit: '編集画面のタスクステータス', | ||||||
| drawerMotivation: 'モチベーション', | ||||||
|
|
@@ -162,7 +164,7 @@ const messages = { | |||||
| statusDone: '完了', | ||||||
| groupedTasks: 'グループ化タスク', | ||||||
| groupedTasksCount: '件のタスク', | ||||||
| statusPrefix: 'ステータス', | ||||||
| statusPrefix: '状態', | ||||||
| past: '過去', | ||||||
| future: '未来', | ||||||
| thanksClose: '閉じる', | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,7 +22,7 @@ | |||||||||||||
| --bg-danger-hover: #fef2f2; | ||||||||||||||
|
|
||||||||||||||
| --z-header: 20; | ||||||||||||||
| --z-dropdown: 40; | ||||||||||||||
| --z-dropdown: 5000; | ||||||||||||||
| --z-drawer: 50; | ||||||||||||||
| --z-modal: 1000; | ||||||||||||||
|
Comment on lines
+25
to
27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dropdown layer is now above modal/drawer overlays Line 25 sets 💡 Suggested z-index hierarchy fix- --z-dropdown: 5000;
+ --z-dropdown: 40;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create flow can report failure after a successful item creation
At Lines 218-221, status is updated in a second call after
createItem. If that second call fails, the catch path treats the whole operation as failed even though the item already exists, which can lead to duplicate retries.🔧 Suggested safe handling of post-create status update
async function submitCreate(): Promise<void> { if (!createTitle.value.trim() || !createDue.value.trim()) return; isCreating.value = true; try { const id = await createItem({ title: createTitle.value.trim(), description: createDescription.value, motivation: createMotivation.value, due: new Date(createDue.value).toISOString(), durationMinutes: createDuration.value, }); - const createStatus = fromUiStatus(createStatusUi.value); - if (createStatus !== 'todo') { - await updateItemStatus(id, createStatus); - } + const createStatus = fromUiStatus(createStatusUi.value); + if (createStatus !== 'todo') { + try { + await updateItemStatus(id, createStatus); + } catch (error) { + console.error('Failed to apply initial status after create:', error); + } + } const created = repositoryItems.value.find((item) => item.id === id) ?? null; if (created) { emit('select-item', created); emit('update:mode', 'view'); emit('success'); } } catch (error) { console.error('Failed to create item:', error); } finally { isCreating.value = false; } }📝 Committable suggestion
🤖 Prompt for AI Agents