add missing undecoded diffs views
[?]
May 7, 2025, 5:30 PM
O7PQIOJ3BIIOHXWLLO5SF263A4CW52HIU2BPL72DJ66X7KD3KEYACDependencies
- [2]
ZVI4AWERwoot contents_diff - [3]
DCSUCH6Radd undecoded diff view, improve decoded view style - [4]
MJDGPSHGWIP contents diff
Change contents
- edit in crates/inflorescence/src/diff.rs at line 370
}fn undecodable_contents_to_str(contents: &UndecodableContents) -> &str {match contents {UndecodableContents::ShortBase64(short) => short,UndecodableContents::UnknownEncoding => "Unknown encoding",} - replacement in crates/inflorescence/src/diff.rs at line 585
DiffWithoutContents::Move => todo!(),DiffWithoutContents::SolveNameConflict => todo!(),DiffWithoutContents::UnsolveNameConflict => todo!(),DiffWithoutContents::SolveOrderConflict => todo!(),DiffWithoutContents::UnsolveOrderConflict => todo!(),DiffWithoutContents::ResurrectZombines => todo!(),DiffWithoutContents::AddRoot => todo!(),DiffWithoutContents::DelRoot => todo!(),DiffWithoutContents::Move => el(text("Move")),DiffWithoutContents::SolveNameConflict => {el(text("Solve name conflict"))}DiffWithoutContents::UnsolveNameConflict => {el(text("Unsolve name conflict"))}DiffWithoutContents::SolveOrderConflict => {el(text("Solve order conflict"))}DiffWithoutContents::UnsolveOrderConflict => {el(text("Unsolve order conflict"))}DiffWithoutContents::ResurrectZombines => el(text("Resurrect zombies")),DiffWithoutContents::AddRoot => el(text("Add root")),DiffWithoutContents::DelRoot => el(text("Delete root")), - replacement in crates/inflorescence/src/diff.rs at line 605
} => todo!(),} => {let line_num = *line;let line = undecodable_contents_to_str(contents);el(row([el(code_view(if *deleted { "- " } else { "+ " })),el(line_num_view(line_num, 1)),el(code_view(line).width(Length::Fill)),]))} - replacement in crates/inflorescence/src/diff.rs at line 619
} => todo!(),} => {let line_num = *line;let change_line = undecodable_contents_to_str(change_contents);let replacement_line =undecodable_contents_to_str(replacement_contents);el(column([el(row([el(code_view("- ")),el(line_num_view(line_num, 1)),el(code_view(change_line).width(Length::Fill)),])),el(row([el(code_view("+ ")),el(line_num_view(line_num, 1)),el(code_view(replacement_line).width(Length::Fill)),])),]))}