diff --git a/inlang/source-code/editor/src/pages/@host/@owner/@repository/Layout.tsx b/inlang/source-code/editor/src/pages/@host/@owner/@repository/Layout.tsx
index 9f571156d8..790ed478e5 100644
--- a/inlang/source-code/editor/src/pages/@host/@owner/@repository/Layout.tsx
+++ b/inlang/source-code/editor/src/pages/@host/@owner/@repository/Layout.tsx
@@ -18,6 +18,7 @@ import IconSync from "~icons/material-symbols/sync-outline"
import IconTranslate from "~icons/material-symbols/translate"
import IconSettings from "~icons/material-symbols/settings-outline"
import IconDescription from "~icons/material-symbols/description-outline"
+import IconTag from "~icons/material-symbols/tag"
import { WarningIcon } from "./components/Notification/NotificationHint.jsx"
import { showToast } from "#src/interface/components/Toast.jsx"
import { isValidLanguageTag, type LanguageTag } from "@inlang/sdk"
@@ -46,6 +47,8 @@ export function Layout(props: { children: JSXElement }) {
setFilteredMessageLintRules,
filteredLanguageTags,
setFilteredLanguageTags,
+ filteredIds,
+ setFilteredIds,
languageTags,
currentBranch,
activeProject,
@@ -86,6 +89,11 @@ export function Layout(props: { children: JSXElement }) {
/>
),
},
+ {
+ name: "Message Ids",
+ icon: ,
+ component: ,
+ },
])
const [selectedFilters, setSelectedFilters] = createSignal([])
@@ -121,7 +129,7 @@ export function Layout(props: { children: JSXElement }) {
//add initial language filter
createEffect(
on(project, () => {
- if (lixErrors().length === 0 && project()) {
+ if (project()) {
addFilter("Language")
if (filteredLanguageTags().length === 0 && project()!.settings())
setFilteredLanguageTags(project()!.settings()!.languageTags)
@@ -129,6 +137,17 @@ export function Layout(props: { children: JSXElement }) {
})
)
+ //add initial language filter
+ createEffect(
+ on(project, () => {
+ if (project() && filteredIds().length > 0) {
+ addFilter("Message Ids")
+ if (filteredLanguageTags().length === 0 && project()!.settings())
+ setFilteredIds(project()!.query.messages.includedMessageIds())
+ }
+ })
+ )
+
//add initial lintRule filter
createEffect(
on(project, () => {
@@ -720,7 +739,7 @@ function LintFilter(props: { clearFunction: any }) {
}>
- everyMessage
+ not selected