fix record short msg to a single line
Dependencies
- [2]
BJXUYQ2Yshow untracked file contents in read-only text editor - [3]
MYGIBRRHwip custom theme - [4]
XIASAP3Gclippy - [5]
ACDXXAX2refactor main's updates into smaller fns - [6]
I56UGW7Umake record test, fix log update - [7]
X6AK4QPXfinish recording test - [8]
KMB6FND3test view update fn rather than direct fn calls - [9]
WAOGSCOJvery nice refactor, wip adding channels logs - [10]
WH57EHNMupdate tests - [11]
EJPSD5XOshared allowed actions conditions between update and view - [12]
7WCB5YQJrefactor msgs and modules - [13]
AZ5D2LQUallow to set record description - [14]
2RCPMZ6Efix test - [15]
JZXYSIYDchannel selection! - [16]
UR4J677Rnav for log changes and refactors - [*]
23SFYK4Qbig view refactor into a new crate - [*]
VCNKFNUFapp init test - [*]
6YZAVBWUInitial commit
Change contents
- replacement in inflorescence_view/src/view.rs at line 34
EditRecordMsg(text_editor::Action),EditRecordMsg(String), - replacement in inflorescence_view/src/view.rs at line 257
el(text_editor(msg).placeholder("Type short message here...").on_action(Msg::EditRecordMsg)),el(text_input("Type short message here...", msg).on_input(Msg::EditRecordMsg)), - replacement in inflorescence_view/src/theme.rs at line 446
text_editor::Style {let active = text_editor::Style { - edit in inflorescence_view/src/theme.rs at line 456
};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
msg: text_editor::Content,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())),))),Msg::View(view::Msg::EditRecordMsg(record_msg.to_string())), - replacement in inflorescence/src/test.rs at line 172
assert_eq!(&msg.text(), record_msg);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())),))),Msg::View(view::Msg::EditRecordMsg(record_msg.to_string())), - replacement in inflorescence/src/test.rs at line 283
assert_eq!(&msg.text(), record_msg);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())),))),Msg::View(view::Msg::EditRecordMsg(record_msg.to_string())), - replacement in inflorescence/src/test.rs at line 327
assert_eq!(&msg.text(), record_msg);assert_eq!(msg.as_str(), record_msg); - replacement in inflorescence/src/test.rs at line 358
RecordChanges::Typing{ msg, desc: _ } if msg.text() == record_msgRecordChanges::Typing{ msg, desc: _ } if msg.as_str() == record_msg - replacement in inflorescence/src/test.rs at line 403
assert_eq!(&msg.text(), "");assert_eq!(msg.as_str(), ""); - replacement in inflorescence/src/main.rs at line 411
old_msg: msg.text(),old_msg: msg.clone(), - replacement in inflorescence/src/main.rs at line 1032
Some(RecordChanges::Canceled { old_msg, old_desc }) => (text_editor::Content::with_text(&old_msg),text_editor::Content::with_text(&old_desc),),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
(text_editor::Content::new(), text_editor::Content::new())(String::new(), text_editor::Content::new()) - replacement in inflorescence/src/main.rs at line 1047
fn edit_record_msg(state: &mut State,action: text_editor::Action,) -> Task<Msg> {fn edit_record_msg(state: &mut State, new_msg: String) -> Task<Msg> { - replacement in inflorescence/src/main.rs at line 1053
msg.perform(action);*msg = new_msg; - replacement in inflorescence/src/main.rs at line 1084
let msg = msg.text().trim().to_string();let msg = msg.trim().to_string(); - replacement in inflorescence/src/main.rs at line 1126
let old_msg = msg.text();let old_msg = old_msg.trim();let old_msg = msg.trim();