Skip to content

Commit

Permalink
chore: Remove unused workflow files and github actions, update depend…
Browse files Browse the repository at this point in the history
…encies
  • Loading branch information
sojeda committed Dec 13, 2024
1 parent 6efd86c commit e73afab
Show file tree
Hide file tree
Showing 176 changed files with 17,097 additions and 11,036 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{cjs,mjs,js,jsx,ts,tsx,json,css}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Please provide detailed steps for reproducing the issue.

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

- Firmware Version:
- Operating System:
- SDK version:
- Toolchain version:
* Firmware Version:
* Operating System:
* SDK version:
* Toolchain version:

## Failure Logs

Expand Down
24 changes: 11 additions & 13 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
# TaskTitle - [###](https://app.clickup.com/t/###)
# {0} - [{1}](https://app.clickup.com/t/{2})

## 💻 What type of change is this?

- [ ] 💎 Feature
- [ ] 🐛 Bug Fix
- [ ] 📝 Documentation Update
- [ ] 🎨 Styling
- [ ] 🧑‍💻 Code Refactor
- [ ] 🔥 Performance Improvements
- [ ] ✅ Test
- [ ] 🤖 Build / CI
{3}

## ⭐ Description

Expand All @@ -18,7 +11,7 @@ Please include a summary of the change and which issue is fixed. Please also inc
Example:
-->

For more background, see ticket **CU-#[in-progress].**
For more background, see ticket **{1}[in-progress].**

<!--
ONLY ADD SECTION IF A NEW PACKAGE IS ADDED
Expand All @@ -39,21 +32,26 @@ Please include before AND after screenshots of the change, or proof of test abou

### Before

![image](https://github.com/Light-it-labs/lightranet/assets/17851841/f55f13c3-0f79-4d38-a6d9-51444daf3c81)

### After

![image](https://github.com/Light-it-labs/lightranet/assets/17851841/38fd90e3-09e0-4af4-85e0-b8801d479f8c)


## 💬 Comments

<!--
Please describe any known issues, bugs, or unintended consequences with this change. Also, please include any additional comments you feel are relevant to the reviewer.
-->
Ex:
This pr is blocked by #1234.
Im awaiting backend changes to be merged before I can complete this, etc.
This
-->

## ✅ Checklist

- [ ] This PR can be merged (it is not a draft, work in progress, or blocked on another PR)
### To review
- [ ] I have tested this change locally in multiple screen sizes
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
Expand Down
42 changes: 42 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
draft:
- changed-files:
- any-glob-to-any-file: '**'

feature:
- head-branch: ['^feature', 'feature']

bugfix:
- head-branch: [ '^bugfix', 'bugfix' ]

hotfix:
- head-branch: [ '^hotfix', 'hotfix' ]

release:
- base-branch: 'main'

have testing:
- changed-files:
- any-glob-to-any-file: tests/**

migrations:
- changed-files:
- any-glob-to-any-file: database/migrations/**

dependencies:
- changed-files:
- any-glob-to-any-file: ['composer.**', 'package.**', 'package-lock.**', 'poetry.lock', 'yarn.lock', 'pnpm-lock.**']

change env:
- changed-files:
- any-glob-to-any-file: '.env.**'

include command:
- changed-files:
- any-glob-to-any-file: 'src/Shared/App/Console/**'

documentation:
- changed-files:
- any-glob-to-any-file: ['README.**', 'docs/**']

refactor:
- head-branch: [ '^refactor', 'refactor' ]
12 changes: 0 additions & 12 deletions .github/workflows/issues.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/pull-requests.yml

This file was deleted.

71 changes: 71 additions & 0 deletions .github/workflows/set-pr-title-and-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Set PR title

on:
pull_request:
types:
- opened

jobs:
set-title:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Set PR title
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { owner, repo, number: pull_number } = context.issue;
const pr = context.payload.pull_request;
const body = pr.body || '';
const branchName = pr.head.ref;
const baseBranch = pr.base.ref;
const changeTypes = {
feature: '- [x] 💎 Feature',
bugfix: '- [x] 🐛 Bug Fix',
hotfix: '- [x] 🔥 Hot Fix',
release: '- [x] 🚀 Release',
};
const format = (str, ...args) => {
return str.replace(/{(\d+)}/g, (match, number) => {
return typeof args[number] !== 'undefined' ? args[number] : match;
});
};
const today = new Date();
let title = `Invalid branch name 👀 (type/task-id/description)`;
let updatedBody = body;
if (["main", "master"].includes(baseBranch)) {
title = `[Release] vX.X.X 🚀 - ${today.toLocaleDateString('en-GB')}`;
updatedBody = '';
} else if (["main", "master", "staging", "develop", "demo"].includes(branchName)) {
title = `Merge from ${branchName} to ${baseBranch}`;
} else {
try {
const [type, id, description] = branchName.split('/');
const templateTitle = description.split("-").join(' ').replace(/\b\w/g, (l) => l.toUpperCase());
const taskCode = id.startsWith("CU-") ? id.split("CU-").join('') : id;
const typeOfChange = changeTypes[type] || '- [ ] Unknown Type';
title = `[${id}] ${templateTitle}`;
updatedBody = format(body, templateTitle, id, taskCode, typeOfChange);
} catch (e) {
}
}
await github.rest.pulls.update({
owner,
repo,
pull_number,
title,
body: updatedBody
});
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
55 changes: 0 additions & 55 deletions .github/workflows/tests.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/update-changelog.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ yarn-error.log
/.idea
/.nova
/.vscode
/.zed
/_ide_helper.php
/.phpstorm.meta.php
/reports/
/tsconfig.tsbuildinfo
/.phpunit.cache/
/.zed

# Sentry Config File
.env.sentry-build-plugin
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.13.1
v22.11.0
7 changes: 7 additions & 0 deletions .storybook/images/favicon.ico
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<svg width="57" height="83" viewBox="0 0 57 83" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M45.2914 35.3701H11.5826C8.21783 35.3701 5.49018 38.135 5.49018 41.5456C5.49018 44.9562 8.21783 47.721 11.5826 47.721H45.2914C48.6561 47.721 51.3838 44.9562 51.3838 41.5456C51.3838 38.135 48.6561 35.3701 45.2914 35.3701ZM11.5826 32.851C6.84524 32.851 3.00488 36.7437 3.00488 41.5456C3.00488 46.3475 6.84523 50.2402 11.5826 50.2402H45.2914C50.0287 50.2402 53.8691 46.3475 53.8691 41.5456C53.8691 36.7437 50.0287 32.851 45.2914 32.851H11.5826Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M23.2956 8.78935L6.44117 38.3801C4.7588 41.3338 5.75719 45.1106 8.67114 46.8159C11.5851 48.5212 15.3111 47.5092 16.9935 44.5555L33.8479 14.9648C35.5303 12.0111 34.5319 8.2343 31.6179 6.52899C28.704 4.82369 24.9779 5.83568 23.2956 8.78935ZM4.28884 37.1205C1.92018 41.2791 3.32585 46.5966 7.42849 48.9976C11.5311 51.3985 16.7772 49.9737 19.1458 45.8151L36.0002 16.2244C38.3689 12.0658 36.9632 6.74827 32.8606 4.34732C28.7579 1.94636 23.5119 3.37119 21.1432 7.52976L4.28884 37.1205Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.0065 38.4444L23.1521 68.0351C21.4697 70.9888 22.4681 74.7656 25.3821 76.4709C28.296 78.1762 32.0221 77.1642 33.7044 74.2106L50.5588 44.6199C52.2412 41.6662 51.2428 37.8893 48.3289 36.184C45.4149 34.4787 41.6889 35.4907 40.0065 38.4444ZM20.9998 66.7755C18.6311 70.9341 20.0368 76.2517 24.1394 78.6526C28.2421 81.0536 33.4881 79.6287 35.8568 75.4702L52.7112 45.8794C55.0798 41.7209 53.6742 36.4033 49.5715 34.0023C45.4689 31.6014 40.2228 33.0262 37.8542 37.1848L20.9998 66.7755Z" fill="black"/>
<path d="M34.7132 71.6174C34.7132 75.1311 31.9031 77.9795 28.4367 77.9795C24.9703 77.9795 22.1602 75.1311 22.1602 71.6174C22.1602 68.1037 24.9703 65.2552 28.4367 65.2552C31.9031 65.2552 34.7132 68.1037 34.7132 71.6174Z" fill="black"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M36.6069 11.3442C36.6069 15.6389 33.1722 19.1204 28.9353 19.1204C24.6984 19.1204 21.2637 15.6389 21.2637 11.3442C21.2637 7.04952 24.6984 3.56799 28.9353 3.56799C33.1722 3.56799 36.6069 7.04952 36.6069 11.3442ZM28.9353 16.8163C31.9168 16.8163 34.3338 14.3664 34.3338 11.3442C34.3338 8.32201 31.9168 5.87205 28.9353 5.87205C25.9537 5.87205 23.5367 8.32201 23.5367 11.3442C23.5367 14.3664 25.9537 16.8163 28.9353 16.8163Z" fill="black"/>
</svg>
Binary file added .storybook/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import type { StorybookConfig } from "@storybook/react-vite";
import { mergeConfig } from "vite";

const config: StorybookConfig = {

/**
* Fix for asset loading due to Laravel-Vite setup
* https://github.com/storybookjs/storybook/issues/22550#issuecomment-1661920350
*/
async viteFinal(config) {
return mergeConfig(config, {
server: {
origin: ''
},
});
},

stories: [
"../resources/js/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],

staticDirs: ["./images"],

addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
"@storybook/addon-a11y",
"@chromatic-com/storybook",
],

framework: {
name: "@storybook/react-vite",
options: {},
},

docs: {},

typescript: {
reactDocgen: "react-docgen-typescript",
},
};
export default config;
5 changes: 5 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<link
rel="shortcut icon"
type="image/x-icon"
href="https://cdn.prod.website-files.com/651178dd2e51892e3c569ce3/651178dd2e51892e3c569ee7_FaviconLogoPNG.png"
/>
10 changes: 10 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { addons } from "@storybook/manager-api";

import DefaultTheme from "./theme";

addons.setConfig({
theme: DefaultTheme,
sidebar: {
showRoots: true,
},
});
Loading

0 comments on commit e73afab

Please sign in to comment.