Skip to content

Commit

Permalink
Feature: add update form (#437)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: awpala <[email protected]>
  • Loading branch information
3 people authored Aug 20, 2024
1 parent 299ea02 commit 4cf9fb0
Show file tree
Hide file tree
Showing 30 changed files with 16,804 additions and 16,425 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
ARG VARIANT="20-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}

RUN apt-get update && apt-get install -y openjdk-11-jdk \
RUN apt-get update && apt-get install -y \
# Note: `openjdk-11-jdk` required for Firebase Emulators suite
openjdk-11-jdk \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
30 changes: 13 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,36 @@
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--name", "omshub-website-dev"],
"mounts": [
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume"
// cache `node_modules`
"source=${localWorkspaceFolderBasename}-node_modules,target=${containerWorkspaceFolder}/node_modules,type=volume",
// cache firebase emulators suite JAR files -- ref: https://firebase.google.com/docs/emulator-suite/install_and_configure#integrate_with_your_ci_system
"source=${localWorkspaceFolderBasename}-fb_emulators_root,target=/root/.cache/firebase/emulators/,type=volume", // root user
"source=${localWorkspaceFolderBasename}-fb_emulators_nonroot,target=/home/${containerUser}/.cache/firebase/emulators/,type=volume" // non-root user (e.g., `node`)
],
"customizations": {
"vscode": {
"settings": {},
"workspaceFolder":"${containerWorkspaceFolder}",
"workspaceFolder": "${containerWorkspaceFolder}",
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-azuretools.vscode-docker",
"oderwat.indent-rainbow",
"mhutchie.git-graph"
],
]
}
},
"containerEnv": {
"CHOKIDAR_USEPOLLING":"true",
"WATCHPACK_POLLING":"true"
"CHOKIDAR_USEPOLLING": "true",
"WATCHPACK_POLLING": "true"
},
"forwardPorts": [
// Application and Storybook
3000,
6006,
3000, 6006,
// Local Firebase Emulator Suite
4000,
4400,
4500,
5000,
5001,
8080,
9099,
9150,
9199
4000, 4400, 4500, 5000, 5001, 8080, 9099, 9150, 9199
],
"portsAttributes": {
// Application and Storybook
Expand Down
30 changes: 30 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Add 'root' label to any root file changes
# Quotation marks are required for the leading asterisk
root:
- changed-files:
- any-glob-to-any-file: '*'

# Add 'AnyChange' label to any changes within the entire repository
AnyChange:
- changed-files:
- any-glob-to-any-file: '**'

# Add 'Documentation' label to any change to .md files within the entire repository
Documentation:
- changed-files:
- any-glob-to-any-file: '**/*.md'

# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- all:
- changed-files:
- any-glob-to-any-file: 'src/**/*'
- all-globs-to-all-files: '!**/*.md'

# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feature', 'feature']

# Add 'release' label to any PR that is opened against the `main` branch
release:
- base-branch: 'main'
32 changes: 16 additions & 16 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Congratulations on your first issue! We will look into it!"
pr-message: "Congratulations on your first PR! We will be reviewing it! "
name: Greetings

on: [pull_request_target, issues]

jobs:
greeting:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Congratulations on your first issue! We will look into it!"
pr-message: "Congratulations on your first PR! We will be reviewing it! "
47 changes: 25 additions & 22 deletions .github/workflows/label.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
on: [pull_request_target]

jobs:
label:

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Add label
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
54 changes: 27 additions & 27 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '36 0 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '36 0 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
Loading

0 comments on commit 4cf9fb0

Please sign in to comment.