feat: Added filtering by optional tags in the main page. Created TagFilter... #40

Merged
tt2022 merged 8 commits from feat/filter-by-tags into master 2025-06-11 02:45:24 +00:00
19 changed files with 214 additions and 437 deletions
Showing only changes of commit 3d95ea3763 - Show all commits

View File

@@ -17,7 +17,7 @@
.filter((tag) => allTags.includes(tag)) .filter((tag) => allTags.includes(tag))
); );
let filteredStudySpaces = $derived(() => let filteredStudySpaces = $derived(
selectedTags.length === 0 selectedTags.length === 0
? studySpaces ? studySpaces
: studySpaces.filter((space) => { : studySpaces.filter((space) => {
@@ -108,7 +108,7 @@
</form> </form>
</div> </div>
{#each filteredStudySpaces() as studySpace (studySpace.id)} {#each filteredStudySpaces as studySpace (studySpace.id)}
{@const imgUrl = {@const imgUrl =
studySpace.study_space_images.length > 0 studySpace.study_space_images.length > 0
? supabase.storage ? supabase.storage