- verify a or Link usage for internal/external navigation
- clean data/content types (required fields cannot be null but add anyway for type safety)
- make colours/colour variables consistent across website (including logos)
- check text uses p, h1, etc. tags for seo
- add secondary global font to repo
- routing? (with dashes)
- add type props to files in /actions
- blur when image is rendering
- global util file (stringToList, url checker for Media, etc.)
- font (fraunces) not being applied globally
- double check parallax effect on phone ui screen
- min-h-screen doesn't account for footer height.
- Git
- VS Code
- VS Code Extensions:
- Open Git Bash
- Navigate to the location where you want the AUSCO project to be
- Run: "git clone https://github.com/UoaWDCC/ausco"
- Run: "cd ausco"
- Run: "code ." (This automatically opens the repo in VS Code, if it's not working, you'll have to do it manually)
- Open the VS terminal
- Navigate to the ausco folder
- Run: "npm install"
- Run: "npm run dev"
- Go to your browser and enter: "http://localhost:3000"
- Any saved changes you make in VS Code will be automatically reflected in localhost:3000
PAYLOAD_SECRET="a710400222333f83c1b1bd6abb7bd3116e3321f813c48efe8ba93bc75cd16b82"
DATABASE_URI="mongodb+srv://ausco:ausco!!!@ausco.ioi3ahr.mongodb.net/"
ausco@wdcc.co.nz
e1160e47
- Create a new branch (copy the command in your assigned Jira ticket, under "Development - Create branch", and run this command in VS Code Terminal).
- Each ticket also represents a component of the home page, so when you begin development, use your respective component, which can be found in the (frontend)/components folder.
- Ensure you are committing and pushing your work as you develop!
- Ensure you are on your feature branch (use "git checkout your-feature-branch-name" to switch to your feature branch)
- Run: "git add ." (This will add all files with changes to the staging area)
- Run: "git commit -m "(header): (message)"" (See below section for header/message guidelines)
- Run: "git push" (If this is your first time pushing a newly created branch, you may need to copy and paste the recommended command shown by Git)
- Git commit command: "git commit -m "(header): (message)""
- Common git header examples:
- feat – a new feature
- fix – a bug fix
- docs – documentation changes
- style – formatting, missing semicolons, etc. (no code changes)
- refactor – code change that neither fixes a bug nor adds a feature
- perf – performance improvement
- revert – reverts a previous commit
- Keep git messages concise and specific to one type of change. One sentence to summarise the changes made is sufficient. If you need to use more than one sentence, chances are, you need to commit more often.
- Some examples:
- feat: add user login functionality
- fix: correct password validation bug
- docs: update README with installation steps
- style: format code with Prettier
- refactor: simplify authentication logic
Run git pull on the main branch.
git checkout main
git pull
git checkout your-feature-branch
git merge main
This will pull new changes made to the main branch into your feature branch.
- The folder src\app(frontend)\assets for media you may need for your tickets.
- If the folder does not contain the media you need, send us a message on Discord and we'll look to get it sorted.
- We are using tailwind for styling
- We are using shadcn ui for pre-built components
- Visit this site to find different components https://ui.shadcn.com/docs/components/accordion
- Follow the instructions to install the component
- We are using Lucide icon library for our icons.
- Lucide is already installed into our repo so no additional installation is required.
- Visit the Lucide site to browse the different icons: https://lucide.dev/icons/
- Select/Search for the icon you want to use and follow the instructions on how to import it into your file.
- For example: If I wanted to use Facebook icon, run the following code at the top of your file:
import { Facebook } from "lucide-react";- And then you can use the Facebook icon as such:
const App = () => {
return (
<Facebook />
);
};- Go to GitHub's AUSCO page.
- Select the "Pull requests" tab at the top left corner.
- Select the "New pull request" button (in green on the right).
- Select your branch.
- Select the "Create pull request" button (in green on the right).
- Fill in the description.
- Select the "Create pull request" button (in green).
- Await approval !