Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(76): zustand removal & structure refactor #80

Merged
merged 29 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a67109e
Docs initialized
RyRy79261 Mar 14, 2024
eb77e50
Breadcrumb & Data sources added
RyRy79261 Mar 14, 2024
b22c055
Read states updated
RyRy79261 Mar 14, 2024
1cfa9c5
Reordered, renamed, restructured
RyRy79261 Mar 14, 2024
f673808
initial zustand swap
RyRy79261 Mar 15, 2024
b1d680d
Collection of hooks added
RyRy79261 Mar 15, 2024
29ddd70
Zustand almost removed
RyRy79261 Mar 18, 2024
62db4e0
Ready to merge
RyRy79261 Mar 18, 2024
b34e8f3
Merge branch 'develop' into feat/76-zustand-removal
RyRy79261 Mar 18, 2024
4aff3dd
Renamed aliases
RyRy79261 Mar 19, 2024
118f114
Fixed linting
RyRy79261 Mar 19, 2024
6782257
Removed unneeded const
RyRy79261 Mar 19, 2024
2619984
Merged develop
RyRy79261 Mar 19, 2024
ae3a792
Fixing GH action
RyRy79261 Mar 20, 2024
ae8ef20
Version added
RyRy79261 Mar 20, 2024
603d672
Doc routes updated
RyRy79261 Mar 20, 2024
e5c23ba
Fix-63 proposals design fixes (#78)
AnnaJ-P11 Mar 21, 2024
44b7c89
Fixed status
RyRy79261 Mar 21, 2024
fe141df
Fixed status
RyRy79261 Mar 21, 2024
dfcd521
Merged Develop
RyRy79261 Mar 21, 2024
0afdc17
Fixed status again
RyRy79261 Mar 21, 2024
96070b4
Feedback
RyRy79261 Mar 21, 2024
a5ab7a4
Structure change
RyRy79261 Mar 21, 2024
fd41c36
Fixing dependency issue
RyRy79261 Mar 21, 2024
278bbea
Structure change
RyRy79261 Mar 21, 2024
1dcca71
Removed stray file
RyRy79261 Mar 21, 2024
a9f5ab8
Merge branch 'develop' into feat/76-zustand-removal
RyRy79261 Mar 22, 2024
0397512
Use proposals hook
RyRy79261 Mar 22, 2024
3a68fea
Merge branch 'develop' into feat/76-zustand-removal
RyRy79261 Mar 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 54 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,61 @@
{
"plugins": [
"@typescript-eslint"
],
"extends": [
"next/core-web-vitals",
"plugin:prettier/recommended"
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"prettier/prettier": ["error",{
"endOfLine": "auto"}]
}
"endOfLine": "auto"}],
"@typescript-eslint/array-type": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/class-literal-property-style": "off",
"@typescript-eslint/consistent-generic-constructors": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/prefer-function-type": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/triple-slash-reference": "off",
"no-var": "off",
"prefer-const": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": [
"error",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none",
"ignoreRestSiblings": true
}
],
"no-use-before-define": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-useless-constructor": "warn",
"@typescript-eslint/prefer-literal-enum-member": "error"
}
}
10 changes: 7 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 20.11.0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-yarn.lock') }}

- name: Install modules
run: npm install
run: pnpm install

- name: Lint
run: npm run lint
run: pnpm run lint
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Mento Governance UI

## Description

This is the UI repo for Mento Governance.

## Table of Contents

- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Project Spec](#project-spec)
<!-- - [Credits](#credits)
- [License](#license) -->

## Prerequisites

- [node.js](https://nodejs.org/en) >= 20.11.0
Expand All @@ -24,43 +24,43 @@ This is the UI repo for Mento Governance.
```bash
pnpm install && cp .env .env.local
```

## Usage

```bash
pnpm dev
```

## Project spec

Please refer to our [spec documents by clicking here.](./docs/introduction.md)
Please refer to our [spec documents by clicking here.](./docs/index.md)

<!-- ## Credits

List your collaborators, if any, with links to their GitHub profiles.

If you used any third-party assets that require attribution, list the creators with links to their primary web presence in this section.

If you followed tutorials, include links to those here as well.

## License

The last section of a high-quality README file is the license. This lets other developers know what they can and cannot do with your project. If you need help choosing a license, refer to [https://choosealicense.com/](https://choosealicense.com/). -->

<!-- ## Badges

![badmath](https://img.shields.io/github/languages/top/lernantino/badmath)

Badges aren't necessary, per se, but they demonstrate street cred. Badges let other developers know that you know what you're doing. Check out the badges hosted by [shields.io](https://shields.io/). You may not understand what they all represent now, but you will in time.

## Features

If your project has a lot of features, list them here. -->

<!-- ## How to Contribute

If you created an application or package and would like other developers to contribute it, you can include guidelines for how to do so. The [Contributor Covenant](https://www.contributor-covenant.org/) is an industry standard, but you can always write your own if you'd prefer. -->

<!-- ## Tests
Go the extra mile and write tests for your application. Then provide examples on how to run them here. -->

Go the extra mile and write tests for your application. Then provide examples on how to run them here. -->
32 changes: 0 additions & 32 deletions app/(routes)/create-proposal/page.tsx

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading