Programming-Simplified-Community / Social-Coder

Open Source Social Media platform tailored for developers!
GNU General Public License v3.0
18 stars 0 forks source link

[WIP] Code Jam API #25

Closed JBraunsmaJr closed 2 years ago

JBraunsmaJr commented 2 years ago

This PR is a WIP.

Implements #22

Showcase

image

Closes #22

github-actions[bot] commented 2 years ago

🦙 MegaLinter status: :warning: WARNING

Descriptor Linter Files Fixed Errors Elapsed time
✅ CSHARP dotnet-format 37 22 0 109.65s
✅ HTML htmlhint 1 0 0.3s
✅ JSON eslint-plugin-jsonc 3 0 0 1.01s
✅ JSON prettier 3 3 0 0.7s
✅ JSON v8r 3 0 3.25s
:warning: MARKDOWN markdownlint 1 1 2 0.44s
✅ MARKDOWN markdown-table-formatter 1 1 0 0.31s
✅ REPOSITORY checkov yes no 9.77s
✅ REPOSITORY gitleaks yes no 0.87s
✅ REPOSITORY git_diff yes no 0.05s
✅ REPOSITORY secretlint yes no 1.45s
✅ REPOSITORY trivy yes no 3.35s
✅ SPELL misspell 45 0 0 0.11s
✅ YAML prettier 2 1 0 0.61s
✅ YAML v8r 2 0 3.0s
✅ YAML yamllint 2 0 0.26s

See errors details in artifact MegaLinter reports on CI Job page _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

JBraunsmaJr commented 2 years ago
image

This will require standardization of all datetimes to use UTC. When displaying we can convert to local time using the new extension method.

JBraunsmaJr commented 2 years ago

image

Working on adding additional information to topic cards.

JBraunsmaJr commented 2 years ago

When a user has not registered for a topic they'll see the register button as depicted below. We only have 1 parameter needed when registering (do you want to be on a team or be solo). Clicking the register button will bring up a popover menu with 2 icons that correlate to solo / team. Clicking one of those icons will send the appropriate request to register you.

image image image

JBraunsmaJr commented 2 years ago

Maybe add a bit of padding between Heading Topic 0,1,2,4 etc. Seems a bit bunched up with the picture. Thoughts?

Padding issue

Good call, shall add a smidge of padding in the next push

JBraunsmaJr commented 2 years ago

image

Added administrator icon to username display in the appbar -- should help a user know whether or not they are a standard user or not.

Certain topic actions such as delete were to be locked from general users... so adding the administrator ability was needed.

The first user to login becomes admin. Idea being, whoever sets this up for their community is 99% likely to be the community leader/owner anyhow. So it makes sense. They'll login to make sure stuff is working / setup before opening it up to general use.

Later we can add the ability for an admin to manage user roles

JBraunsmaJr commented 2 years ago

image Added a dropdown navigational menu when user clicks on their username.

JBraunsmaJr commented 2 years ago

image

The admin dashboard has the ability to manage topics. Right now this is what the tabled view looks like.

Added Scope

JBraunsmaJr commented 2 years ago

Pagination Progress

image image image

Todo

JBraunsmaJr commented 2 years ago
  1. Didn't realize @typeparam was a valid directive in Blazor. This opened a lot of doors for us in terms of code reusability!
  2. RenderFragments are our friends
JBraunsmaJr commented 2 years ago

Breaking Changes

JBraunsmaJr commented 2 years ago
JBraunsmaJr commented 2 years ago

Showcasing admin topic view when a topic is accepting applicants image

This is the dialog that is able to both edit and create topics image

As an administrator on the admin portal, one can add/edit/delete topics.