Compare views: start with a view the zone is linked to
The tab picked the first other view in view order, so a zone linked with one view opened compared with an unrelated one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
aca0abc780
commit
5cd22f52d4
3 files changed
+13
-2
No files matched your search
@@ -88,7 +88,10 @@ export async function render(el, params, query) {
|
||||
// the same. ?name= (and &type=) narrows it to one name.
|
||||
async function compareTab(el, zone, query) {
|
||||
const others = zone.other_views || [];
|
||||
const withSel = select([...(others.length > 1 ? [["", "all other views"]] : []), ...others.map((v) => [v, v])], query.get("with") || others[0] || "");
|
||||
// A linked zone starts with a view it is linked to: that is the
|
||||
// comparison that matters (its differences are its own records).
|
||||
const linked = (zone.linked_with || []).filter((v) => others.includes(v));
|
||||
const withSel = select([...(others.length > 1 ? [["", "all other views"]] : []), ...others.map((v) => [v, v])], query.get("with") || linked[0] || others[0] || "");
|
||||
const nameIn = input({ value: query.get("name") || "", placeholder: "all names, or one: www, @", class: "mono", style: { width: "200px" } });
|
||||
const typeIn = input({ value: query.get("type") || "", placeholder: "any type", class: "mono", style: { width: "90px" } });
|
||||
let showSame = false;
|
||||
|
||||
Reference in new issue
Block a user