<commit_before>// Copyright (c) 2019, <NAME> and contributors
// For license information, please see license.txt

frappe.ui.form.on('Dashboard Chart', {
	onload: function(frm) {
		var wrapper = $(frm.fields_dict["filters_json"].wrapper).empty();
		let filter_table = $(`<table class="table table-bordered">
			<thead>
				<tr>
					<td>${ __("Filter") }</td>
					<td>${ __("Value") }</td>
				</tr>
			</thead>
			<tbody></tbody>
		</table>`);

		const filters = JSON.parse(frm.doc.filters_json);

		Object.keys(filters).forEach(key => {
			const filter_row = $(`<tr>
				<td>${frappe.model.unscrub(key)}</td>
				<td>${filters[key]}</td>
			</tr>`);
			filter_table.find('tbody').append(filter_row);
		});

		wrapper.append(filter_table);
	},
	refresh: function(frm) {

	}
});<commit_msg>refactor(dashboard): Remove tabular filter view<commit_after>// Copyright (c) 2019, <NAME> and contributors
// For license information, please see license.txt

frappe.ui.form.on('Dashboard Chart', {
	refresh: function(frm) {

	}
});
{'fraction_non_alphanumeric': 0.19863013698630136, 'fraction_numerical': 0.007827788649706457, 'mean_word_length': 4.115, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5996311', 'n_tokens_mistral': 414, 'n_tokens_neox': 365, 'n_words': 72}