mirror of
https://github.com/wassname/talk.git
synced 2026-07-25 13:30:59 +08:00
* resovle import error by removing useContext from ui component * update snaps * create useUIContext hook * add site and community models * create sites and communities on install * add site name to install wizard * add site id to stories * pass site id to stream query in embed * fix spec * add sites query * list sites in organization config * add route for new sites * add create site mutation * view and update sites * show embed codes for sites * add site id to comments * allow filtering moderation queues by site id * add site selector to queue * move sites config routes * Revert "move sites config routes" This reverts commit 4ed5345d3e1df6263f8390b64214956c43c4d8cd. * update sites routes * show site name in moderate card * remove site selector from queue selector * style create site form * edit site form * clean up ts * move :storyID paths to /storeis/:storyID * make queues respect site id * add site switcher * styles for site selector * add global notifications * style app notifications * clear notifications after x miliseconds * use notification component in add site form * fix types * make notifications dismissable * dismiss site created notification * remove button letter spacing if lowercase * filter stories by site in search * add site name to story search results * add site column to stories table * filter stories table by site * make sure notification displays after site creation * paginate sites table * paginage site selector * add paginated site filter to stories table * fix merge conflicts * sort by createdAt * default to 20 sites * delete comments * add translation tags * make site ID not mandatory * Fix tests and specs * only include site id in embed code for multisite * update tenant cache when adding first site * only show site selector if multiple sites * use story url instead of site id for story upsert * update snaps * make ui conditional on multisite * update snaps and remove unnecessary site ID * sloppily calculate counts for filtered queues * get origins of allowed domains * add migration * enable migration * only show permitted domains if mulltisite is false * remove site id from embed code * update snaps * undo updates to singletonresolver * remove refernces to communities * fix mints * remove community reference * update copy in installation * use sites services in installer * remove unused loader * correct error text for useNotification * order sites by name * make multisite a computed property * use map/filter instead of for/of for url origins * add missing/incorrect translations * remove references to siteID * remove references to tenant isURLpermitted * add comments to schema updates * simplify filtering stories by site * remove domains config from advanced * fix: adjusted CSP header generation * add migration to create indexes on site * clear notifications on navigate * remove count for filtering by site * throw duplicate error for allowed domains * handle errors for create/update sites * remove contacturl and contactemail from sites * fix types for counts * sort imports * ensure props get passed down to link version of button component * add url and email fields back into organization config * sort imports * fix moderation queues resolver types * fix appearance of sites dropdown * add status role to notificaiton * remove duplicate layout file * fix: rename allowedDomains -> allowdOrigins * move Link conditional from button to basebutton component * fix merge conflict * fix mutation optimistic response * make sure to prop gets passed to link * change labels on install steps * show story's site in site selector when moderating by story * feat: support site counting * update snap * remove multisite from settings * move paginated select to admin/components * fix circular import errors * remove uicontext component from v2 timestamp Co-authored-by: Wyatt Johnson <accounts+github@wyattjoh.ca>