1
0

2 Commits 8f2745fac5 ... d9ac6423a2

Autor SHA1 Mensagem Data
  Sam Jaffe d9ac6423a2 feat: add project notes using a ScrollView to enable multiple lines há 2 semanas atrás
  Sam Jaffe ad892cf561 chore: default text há 2 semanas atrás

+ 1 - 0
Todos/Model/Project.swift

@@ -18,6 +18,7 @@ final class Project: Codable, Ordered, Aggregate {
   var category: String = ""
   @Relationship(deleteRule: .cascade, inverse: \Task.project)
   var tasks: [Task] = []
+  var notes: String = ""
 
   init(sortOrder: Int = 0) {
     self.sortOrder = sortOrder

+ 5 - 1
Todos/View/ProjectPanelView.swift

@@ -30,7 +30,11 @@ struct ProjectPanelView: View {
       Toggle("Move Tasks", isOn: $move)
         .padding(.trailing, 10)
     }
-    HStack {
+    HStack(alignment: .top) {
+      ScrollView {
+        TextField("Project Notes", text: $item.notes, axis: .vertical)
+          .padding(.leading, 20)
+      }.frame(maxHeight: 85)
       if let grp = $allGroups.first(where: { $0.name.wrappedValue == item.category }) {
         ColorPicker("", selection: grp.color).disabled(true).scaledToFit()
       }

+ 1 - 1
Todos/View/Settings/CategorySettingsView.swift

@@ -17,7 +17,7 @@ struct CategorySettingsView: View {
         ColorPicker("", selection: group.color, supportsOpacity: false)
       }
       TableColumn("Name") { group in
-        TextField("", text: group.name)
+        TextField("Category Name", text: group.name)
           .onSubmit(addGroup)
       }
       TableColumn("") { group in

+ 2 - 2
Todos/View/Settings/URLHintSettingsView.swift

@@ -15,11 +15,11 @@ struct URLHintSettingsView: View {
     Text("Custom rules to expand a tag into a URL")
     Table(of: Binding<URLHint>.self) {
       TableColumn("Tag Prefix") { hint in
-        TextField("", text: hint.prefix)
+        TextField("Match Text", text: hint.prefix)
           .onSubmit(addHint)
       }
       TableColumn("URL Expansion") { hint in
-        TextField("", text: hint.replacement)
+        TextField("Replace With", text: hint.replacement)
           .onSubmit(addHint)
       }
       TableColumn("") { hint in