|
|
@@ -159,6 +159,10 @@ type widget interface {
|
|
|
|
|
|
// -------- creatIssue definitions --------------------------------------------
|
|
|
// ----------------------------------------------------------------------------
|
|
|
+// TODO invoke editor for descriptions
|
|
|
+// TODO handle reset on esc
|
|
|
+// TODO handle errors and display gracefully
|
|
|
+// TODO implement description field in create.create
|
|
|
|
|
|
// data struct for createIssue
|
|
|
type inputField struct {
|
|
|
@@ -166,10 +170,7 @@ type inputField struct {
|
|
|
title string
|
|
|
}
|
|
|
|
|
|
-// TODO invoke editor for descriptions
|
|
|
-// TODO handle reset on esc
|
|
|
-
|
|
|
-// widget for creating an issue
|
|
|
+// struct definition for create widget
|
|
|
type create struct {
|
|
|
inputFields []inputField
|
|
|
Path string
|
|
|
@@ -461,8 +462,6 @@ func (m Model) load() tea.Msg {
|
|
|
// type wrapper for create.create() result
|
|
|
type createResult Issue
|
|
|
|
|
|
-// TODO implement description field in createIssue.create cmd
|
|
|
-
|
|
|
// A tea.Cmd to translate create.inputs to a new Issue object
|
|
|
func (c create) create() tea.Msg {
|
|
|
data := make(map[string]string)
|