diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a6c52c0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: Deploy sprint + +on: + push: + branches: [master] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy via SSH + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + port: ${{ secrets.SERVER_PORT }} + key: ${{ secrets.SERVER_SSH_KEY }} + script: | + /home/ob/.local/bin/s diff --git a/packages/frontend/src/pages/Test.tsx b/packages/frontend/src/pages/Test.tsx index 2e66a0b..a380b39 100644 --- a/packages/frontend/src/pages/Test.tsx +++ b/packages/frontend/src/pages/Test.tsx @@ -1,53 +1,52 @@ -import { useState } from "react"; -import LogOutButton from "@/components/log-out-button"; -import ThemeToggle from "@/components/theme-toggle"; -import { Button } from "@/components/ui/button"; -import ColourPicker from "@/components/ui/colour-picker"; import Icon, { iconNames, iconStyles } from "@/components/ui/icon"; function Test() { - const [colour, setColour] = useState("#e05656"); - return ( -
-
-

Other test components

-
- -
- - - - -
- +
-

Icon Demo

-

- All {iconNames.length} icons across {iconStyles.length} styles -

-
- - {iconStyles.map((iconStyle) => ( - - ))} + {Array.from( + { length: Math.ceil(iconNames.length / 10) }, + (_, groupNumber) => groupNumber + 1, + ).flatMap((groupNumber) => [ + , + ...iconStyles.map((iconStyle) => ( + + )), + ])} - {iconNames.map((name) => ( - - - {iconStyles.map((iconStyle) => ( - - ))} + {Array.from({ length: 10 }, (_, rowNumber) => rowNumber + 1).map((rowNumber) => ( + + {Array.from( + { length: Math.ceil(iconNames.length / 10) }, + (_, groupNumber) => groupNumber + 1, + ).flatMap((groupNumber) => { + const iconIndex = (groupNumber - 1) * 10 + (rowNumber - 1); + const name = iconNames[iconIndex]; + + return [ + , + ...iconStyles.map((iconStyle) => ( + + )), + ]; + })} ))} diff --git a/todo.md b/todo.md index 04df177..b7da5e1 100644 --- a/todo.md +++ b/todo.md @@ -1,22 +1,15 @@ # HIGH PRIORITY - FEATURES: -- org settings: - - manage issue types - - create, edit, delete - - assign icons to issue types (ensure each available icon is in EACH icon set) - filters -- time tracking: - - add overlay in the bottom left for active timers if there are any. this should be minimal with the issue key (API-005), the time, and a play/pause + end button - pricing page - see jira and other competitors - explore payment providers (stripe is the only one i know) -- add "modal=true" in issue urls that are copied, and open issue-modal.tsx instead of the issue-detail-pane.tsx +- real logo # LOW PRIORITY - dedicated /register route (currently login/register are combined on /login) -- real logo - issues - assignee "note" for extra context on their role in the task - deadline
Name - {iconStyle} - + Name + + {iconStyle} +
{name} - -
+ {name ?? ""} + + {name ? : null} +