cms
cms copied to clipboard
feat: introducing Qs&As, reddit like tiny platform
PR feat:
Introducing tiny reddit like platform where people can ask questions or post something and people can reply.
In the prisma Schema two models are seperated (questions,answers) because with single recursive model it would be hard to get recursive answers.
Resolves #[Issue Number if there]
Checklist before requesting a review
- [x] I have performed a self-review of my code
- [x] I assure there is no similar/duplicate pull request regarding same issue
- [x] I assure that the build i working in local
are you thinking off adding a subreddit sort of thing as well, if yes then till which depth. @siinghd. Something like this also engages community quite much : https://codeforces.com/blog/entry/127903
are you thinking off adding a subreddit sort of thing as well, if yes then till which depth. @siinghd. Something like this also engages community quite much : https://codeforces.com/blog/entry/127903
This is just like that, looks same as that
@hkirat veere can you look at this?
wow nice are these attached per video? or is this a global thing?
@hkirat this is global thing, i think for video we could just expand the comments. We already have different type of comments.
In this somehow we could reference the video... like github does with pr's
Can we put this behind a globally configurable feature flag @siinghd ? Happy to merge it but need to be able to disable it quickly if there are bugs
Maybe generally add a frontend feature flag functionality if possible
@hkirat sure let me do it
@hkirat should be done, maybe its dumb but i have added env var NEXT_PUBLIC_DISABLE_FEATURES = "featurea,featureb,featurec"
if you add qa
or QA
, basically you disable it, from server side it will redirect the user to '/'. if you are not in the page actions also can't be used i think. let me know if this is what u were thinking
Maybe u also want to disable some things on clientside (like conditional rendering) thats why the env is with NEXT_PUBLIC
MMMM build has some problems with const session = await getServerSession(authOptions), let me check
@hkirat ok veere should have fixed the build, idk why there were issues with session types and other types but should be working now.
But do check one time https://github.com/code100x/cms/pull/436/commits/5e0429ee98c0818991f74baaf84280fe21789491
/bounty $600 Will be testing after merging