Skip to content

Commit 4cf9fb0

Browse files
Feature: add update form (#437)
* fix: improved dev container speed * fix: minor configuration change for dev container and update to script * feat: added update form * feat: fixed space issue with update form * fix: fix conflict and removed unused dependencies * feat: add dark mode * feat(darkmode): minor styling update for darkmode * feat(darkmode): added working light and dark mode with persistent state, defaulted to system * chore(darkmode): remove next-themes * chore(darkmode): remove random function * feat(darkmode): remove unused type * fix(dark mode): redesigned mobile nav and login to accomodate dark mode * fix(dark mode): added skeleton for component flash that would occur for user * fix(dark mode): fixing user component flash when logged in * feat(dark mode): default user profile pics * fix(dark mode): fix dark mode in form editor and other areas * fix(light mode styling): fix light mode styling text * fix(reviewcard): fix style flash when reloading page * fix(markdown): add other markdown plugins and formatted files * fix(profile micon): fix get calling profile icon * chore(types): extract generic type `TNullable` to avoid redundancy * chore: simplify backend imports * fix(devcontainer): revert setting to make user `root` the default * chore(Dockerfile): minor cleanup and commenting * fix(devcontainer): fix dependency install and add name `omshub-website-dev` for container * chore(devcontainer): fix formatting * chore(devcontainer): update VS Code extensions * chore(devcontainer): rearrange position of property * fix(AuthContext): remove email from local storage on logout * chore(example.env): clarify examples for env var `TZ` * chore(devcontainer): add caching for firebase emulator JAR files * fix: darkmode instead of replacing styles, just import the darkmode styles that aren't loaded during switch * chore(fmt): format files * fix(reviewform): update nullable types * chore(tiptap): remove unused tiptap file * chore: fix usage of `TNullable` type * fix(labeler): fix filename * fix(labeler): update filepath for config * fix: correct labeler GitHub Actions workflow * fix(labeler): fix filename * chore(label): rename labeler to label * fix(label): checkout code for labeler.yml --------- Co-authored-by: awpala <adam.w.pala@gmail.com> Co-authored-by: awpala <adam@adam-pala.com>
1 parent 299ea02 commit 4cf9fb0

30 files changed

+16804
-16425
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
ARG VARIANT="20-bullseye"
55
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
66

7-
RUN apt-get update && apt-get install -y openjdk-11-jdk \
7+
RUN apt-get update && apt-get install -y \
8+
# Note: `openjdk-11-jdk` required for Firebase Emulators suite
9+
openjdk-11-jdk \
810
&& apt-get clean \
911
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,36 @@
55
"build": {
66
"dockerfile": "Dockerfile"
77
},
8+
"runArgs": ["--name", "omshub-website-dev"],
89
"mounts": [
9-
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
10+
// cache `node_modules`
11+
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
12+
// cache firebase emulators suite JAR files -- ref: https://firebase.google.com/docs/emulator-suite/install_and_configure#integrate_with_your_ci_system
13+
"source=${localWorkspaceFolderBasename}-fb_emulators_root,target=/root/.cache/firebase/emulators/,type=volume", // root user
14+
"source=${localWorkspaceFolderBasename}-fb_emulators_nonroot,target=/home/${containerUser}/.cache/firebase/emulators/,type=volume" // non-root user (e.g., `node`)
1015
],
1116
"customizations": {
1217
"vscode": {
1318
"settings": {},
14-
"workspaceFolder":"${containerWorkspaceFolder}",
19+
"workspaceFolder": "${containerWorkspaceFolder}",
1520
// Add the IDs of extensions you want installed when the container is created.
1621
"extensions": [
1722
"dbaeumer.vscode-eslint",
1823
"esbenp.prettier-vscode",
19-
"ms-azuretools.vscode-docker",
24+
"oderwat.indent-rainbow",
2025
"mhutchie.git-graph"
21-
],
26+
]
2227
}
2328
},
2429
"containerEnv": {
25-
"CHOKIDAR_USEPOLLING":"true",
26-
"WATCHPACK_POLLING":"true"
30+
"CHOKIDAR_USEPOLLING": "true",
31+
"WATCHPACK_POLLING": "true"
2732
},
2833
"forwardPorts": [
2934
// Application and Storybook
30-
3000,
31-
6006,
35+
3000, 6006,
3236
// Local Firebase Emulator Suite
33-
4000,
34-
4400,
35-
4500,
36-
5000,
37-
5001,
38-
8080,
39-
9099,
40-
9150,
41-
9199
37+
4000, 4400, 4500, 5000, 5001, 8080, 9099, 9150, 9199
4238
],
4339
"portsAttributes": {
4440
// Application and Storybook

.github/labeler.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Add 'root' label to any root file changes
2+
# Quotation marks are required for the leading asterisk
3+
root:
4+
- changed-files:
5+
- any-glob-to-any-file: '*'
6+
7+
# Add 'AnyChange' label to any changes within the entire repository
8+
AnyChange:
9+
- changed-files:
10+
- any-glob-to-any-file: '**'
11+
12+
# Add 'Documentation' label to any change to .md files within the entire repository
13+
Documentation:
14+
- changed-files:
15+
- any-glob-to-any-file: '**/*.md'
16+
17+
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
18+
source:
19+
- all:
20+
- changed-files:
21+
- any-glob-to-any-file: 'src/**/*'
22+
- all-globs-to-all-files: '!**/*.md'
23+
24+
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
25+
feature:
26+
- head-branch: ['^feature', 'feature']
27+
28+
# Add 'release' label to any PR that is opened against the `main` branch
29+
release:
30+
- base-branch: 'main'

.github/workflows/greetings.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Greetings
2-
3-
on: [pull_request_target, issues]
4-
5-
jobs:
6-
greeting:
7-
runs-on: ubuntu-latest
8-
permissions:
9-
issues: write
10-
pull-requests: write
11-
steps:
12-
- uses: actions/first-interaction@v1
13-
with:
14-
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
issue-message: "Congratulations on your first issue! We will look into it!"
16-
pr-message: "Congratulations on your first PR! We will be reviewing it! "
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Congratulations on your first issue! We will look into it!"
16+
pr-message: "Congratulations on your first PR! We will be reviewing it! "

.github/workflows/label.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
# This workflow will triage pull requests and apply a label based on the
2-
# paths that are modified in the pull request.
3-
#
4-
# To use this workflow, you will need to set up a .github/labeler.yml
5-
# file with configuration. For more information, see:
6-
# https://github.com/actions/labeler
7-
8-
name: Labeler
9-
on: [pull_request_target]
10-
11-
jobs:
12-
label:
13-
14-
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
pull-requests: write
18-
19-
steps:
20-
- uses: actions/labeler@v4
21-
with:
22-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler
7+
8+
name: Labeler
9+
on: [pull_request_target]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
- name: Add label
23+
uses: actions/labeler@v4
24+
with:
25+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/stale.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2-
#
3-
# You can adjust the behavior by modifying this file.
4-
# For more information, see:
5-
# https://github.com/actions/stale
6-
name: Mark stale issues and pull requests
7-
8-
on:
9-
schedule:
10-
- cron: '36 0 * * *'
11-
12-
jobs:
13-
stale:
14-
15-
runs-on: ubuntu-latest
16-
permissions:
17-
issues: write
18-
pull-requests: write
19-
20-
steps:
21-
- uses: actions/stale@v5
22-
with:
23-
repo-token: ${{ secrets.GITHUB_TOKEN }}
24-
stale-issue-message: 'Stale issue message'
25-
stale-pr-message: 'Stale pull request message'
26-
stale-issue-label: 'no-issue-activity'
27-
stale-pr-label: 'no-pr-activity'
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '36 0 * * *'
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v5
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-issue-message: 'Stale issue message'
25+
stale-pr-message: 'Stale pull request message'
26+
stale-issue-label: 'no-issue-activity'
27+
stale-pr-label: 'no-pr-activity'

0 commit comments

Comments
 (0)