fix record short msg to a single line

tzemanovic
Jan 29, 2026, 12:51 PM
YTOYRQ2MPUW3FJK64HPML5KQIB66G6CJJFQ4BGOAHT4MSAQAKFIAC

Dependencies

  • [2] BJXUYQ2Y show untracked file contents in read-only text editor
  • [3] MYGIBRRH wip custom theme
  • [4] XIASAP3G clippy
  • [5] ACDXXAX2 refactor main's updates into smaller fns
  • [6] I56UGW7U make record test, fix log update
  • [7] X6AK4QPX finish recording test
  • [8] KMB6FND3 test view update fn rather than direct fn calls
  • [9] WAOGSCOJ very nice refactor, wip adding channels logs
  • [10] WH57EHNM update tests
  • [11] EJPSD5XO shared allowed actions conditions between update and view
  • [12] 7WCB5YQJ refactor msgs and modules
  • [13] AZ5D2LQU allow to set record description
  • [14] 2RCPMZ6E fix test
  • [15] JZXYSIYD channel selection!
  • [16] UR4J677R nav for log changes and refactors
  • [*] 23SFYK4Q big view refactor into a new crate
  • [*] VCNKFNUF app init test
  • [*] 6YZAVBWU Initial commit

Change contents

  • replacement in inflorescence_view/src/view.rs at line 34
    [12.213][11.331:371](),[11.331][11.331:371]()
    EditRecordMsg(text_editor::Action),
    [12.213]
    [13.1014]
    EditRecordMsg(String),
  • replacement in inflorescence_view/src/view.rs at line 257
    [13.1275][13.1275:1439]()
    el(text_editor(msg)
    .placeholder("Type short message here...")
    .on_action(Msg::EditRecordMsg)),
    [13.1275]
    [13.1439]
    el(text_input("Type short message here...", msg)
    .on_input(Msg::EditRecordMsg)),
  • replacement in inflorescence_view/src/theme.rs at line 446
    [3.4981][4.280:309]()
    text_editor::Style {
    [3.4981]
    [3.5023]
    let active = text_editor::Style {
  • edit in inflorescence_view/src/theme.rs at line 456
    [3.5419]
    [4.310]
    };
    match status {
    text_editor::Status::Active => active,
    text_editor::Status::Hovered => text_editor::Style {
    border: Border {
    color: background.base.text,
    ..active.border
    },
    ..active
    },
    text_editor::Status::Focused { .. } => text_editor::Style {
    border: Border {
    color: primary.strong.color,
    ..active.border
    },
    ..active
    },
    text_editor::Status::Disabled => text_editor::Style {
    background: Background::Color(background.weak.color),
    value: active.placeholder,
    ..active
    },
  • replacement in inflorescence_model/src/model.rs at line 83
    [13.2694][13.2694:2729]()
    msg: text_editor::Content,
    [13.2694]
    [13.2729]
    msg: String,
  • replacement in inflorescence/src/test.rs at line 160
    [6.3677][12.9179:9249](),[12.9249][8.575:647](),[8.575][8.575:647](),[8.647][6.3782:3795](),[6.3782][6.3782:3795]()
    Msg::View(view::Msg::EditRecordMsg(text_editor::Action::Edit(
    text_editor::Edit::Paste(Arc::new(record_msg.to_string())),
    ))),
    [6.3677]
    [6.3942]
    Msg::View(view::Msg::EditRecordMsg(record_msg.to_string())),
  • replacement in inflorescence/src/test.rs at line 172
    [10.3727][13.4824:4873]()
    assert_eq!(&msg.text(), record_msg);
    [10.3727]
    [13.4873]
    assert_eq!(msg.as_str(), record_msg);
  • replacement in inflorescence/src/test.rs at line 271
    [7.1559][12.9748:9818](),[12.9818][8.867:939](),[8.867][8.867:939](),[8.939][7.1664:1677](),[7.1664][7.1664:1677]()
    Msg::View(view::Msg::EditRecordMsg(text_editor::Action::Edit(
    text_editor::Edit::Paste(Arc::new(record_msg.to_string())),
    ))),
    [7.1559]
    [7.1677]
    Msg::View(view::Msg::EditRecordMsg(record_msg.to_string())),
  • replacement in inflorescence/src/test.rs at line 283
    [10.4866][13.5239:5288]()
    assert_eq!(&msg.text(), record_msg);
    [10.4866]
    [13.5288]
    assert_eq!(msg.as_str(), record_msg);
  • replacement in inflorescence/src/test.rs at line 315
    [7.2328][12.9967:10037](),[12.10037][8.1162:1234](),[8.1162][8.1162:1234](),[8.1234][7.2433:2446](),[7.2433][7.2433:2446]()
    Msg::View(view::Msg::EditRecordMsg(text_editor::Action::Edit(
    text_editor::Edit::Paste(Arc::new(record_msg.to_string())),
    ))),
    [7.2328]
    [13.5504]
    Msg::View(view::Msg::EditRecordMsg(record_msg.to_string())),
  • replacement in inflorescence/src/test.rs at line 327
    [13.5878][13.5878:5927]()
    assert_eq!(&msg.text(), record_msg);
    [13.5878]
    [13.5927]
    assert_eq!(msg.as_str(), record_msg);
  • replacement in inflorescence/src/test.rs at line 358
    [13.6832][13.6832:6910]()
    RecordChanges::Typing{ msg, desc: _ } if msg.text() == record_msg
    [13.6832]
    [13.6910]
    RecordChanges::Typing{ msg, desc: _ } if msg.as_str() == record_msg
  • replacement in inflorescence/src/test.rs at line 403
    [10.5492][13.8239:8280]()
    assert_eq!(&msg.text(), "");
    [10.5492]
    [13.8280]
    assert_eq!(msg.as_str(), "");
  • replacement in inflorescence/src/main.rs at line 411
    [13.10646][13.10646:10691]()
    old_msg: msg.text(),
    [13.10646]
    [13.10691]
    old_msg: msg.clone(),
  • replacement in inflorescence/src/main.rs at line 1032
    [13.11489][13.11489:11708]()
    Some(RecordChanges::Canceled { old_msg, old_desc }) => (
    text_editor::Content::with_text(&old_msg),
    text_editor::Content::with_text(&old_desc),
    ),
    [13.11489]
    [13.11708]
    Some(RecordChanges::Canceled { old_msg, old_desc }) => {
    (old_msg, text_editor::Content::with_text(&old_desc))
    }
  • replacement in inflorescence/src/main.rs at line 1036
    [13.11771][13.11771:11850]()
    (text_editor::Content::new(), text_editor::Content::new())
    [13.11771]
    [2.1071]
    (String::new(), text_editor::Content::new())
  • replacement in inflorescence/src/main.rs at line 1047
    [5.4783][5.4783:4876]()
    fn edit_record_msg(
    state: &mut State,
    action: text_editor::Action,
    ) -> Task<Msg> {
    [5.4783]
    [9.88834]
    fn edit_record_msg(state: &mut State, new_msg: String) -> Task<Msg> {
  • replacement in inflorescence/src/main.rs at line 1053
    [13.12049][13.12049:12078]()
    msg.perform(action);
    [13.12049]
    [13.12078]
    *msg = new_msg;
  • replacement in inflorescence/src/main.rs at line 1084
    [9.89158][13.12555:12604]()
    let msg = msg.text().trim().to_string();
    [9.89158]
    [13.12604]
    let msg = msg.trim().to_string();
  • replacement in inflorescence/src/main.rs at line 1126
    [9.90217][10.11703:11737](),[10.11737][13.13111:13149]()
    let old_msg = msg.text();
    let old_msg = old_msg.trim();
    [9.90217]
    [13.13149]
    let old_msg = msg.trim();