UX: styling, fix import, hide brands immediately, sort brands by frequency, see #2071

This commit is contained in:
Pieter Vander Vennet 2024-08-09 14:43:30 +02:00
parent 6c6f988f3c
commit a70dbf0043
3 changed files with 24 additions and 12 deletions

View file

@ -1,11 +1,10 @@
import { Translation, TypedTranslation } from "../../UI/i18n/Translation"
import { TagsFilter } from "../../Logic/Tags/TagsFilter"
import Translations from "../../UI/i18n/Translations"
import { TagUtils, UploadableTag } from "../../Logic/Tags/TagUtils"
import { TagUtils } from "../../Logic/Tags/TagUtils"
import { And } from "../../Logic/Tags/And"
import { Utils } from "../../Utils"
import { Tag } from "../../Logic/Tags/Tag"
import Link from "../../UI/Base/Link"
import {
MappingConfigJson,
QuestionableTagRenderingConfigJson,
@ -18,6 +17,7 @@ import NameSuggestionIndex from "../../Logic/Web/NameSuggestionIndex"
import { GeoOperations } from "../../Logic/GeoOperations"
import { Feature } from "geojson"
import MarkdownUtils from "../../Utils/MarkdownUtils"
import { UploadableTag } from "../../Logic/Tags/TagTypes"
export interface Mapping {
readonly if: UploadableTag
@ -928,9 +928,7 @@ export default class TagRenderingConfig {
* The keys that should be erased if one has to revert to 'unknown'.
* Might give undefined
*/
public
settableKeys(): string[] | undefined {
public settableKeys(): string[] | undefined {
const toDelete = new Set<string>()
if (this.freeform) {
toDelete.add(this.freeform.key)
@ -966,7 +964,8 @@ export class TagRenderingConfigUtils {
config.freeform.key,
tags,
country.split(";"),
center
center,
{sortByFrequency: true}
)
)
})