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

[refactor] replace React Bootstrap with MUI to optimize UX #64

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

Soecka
Copy link
Contributor

@Soecka Soecka commented Oct 10, 2024

PR-64 PR-64 PR-64 Powered by Pull Request Badge

[add] darkmode
[polish] MainNavigator, ColorModeDropdown
[config] tailwind, eslint, postcss
[migrate] replace bootstrap with material-ui within components [fix] dark mode flicker

Checklist(清单):

  • Labels
  • Assignees
  • Reviewers

[polish] MainNavigator, ColorModeDropdown
[config] tailwind, eslint, postcss
[migrate] replace bootstrap with material-ui within components
[fix] dark mode flicker
@Soecka Soecka added the feature New feature or request label Oct 10, 2024
@Soecka Soecka added this to the 官网2.0 milestone Oct 10, 2024
@Soecka Soecka requested a review from TechQuery October 10, 2024 17:05
[polish] partner logo for dark mode
[polish] project, member card layout
[fix] project card languages logo missing
[unfinshed] member, project detail
@wangrunlin
Copy link
Member

这个 PR 内容好多,不过 Vercel 部署似乎失败了,我用在线环境看下效果。

@wangrunlin
Copy link
Member

这个 PR 内容好多,不过 Vercel 部署似乎失败了,我用在线环境看下效果。

确实是有问题的,直接跑 dev 跑不起来,可能整体环境还有些问题,或者需要环境变量。

@Soecka
Copy link
Contributor Author

Soecka commented Oct 14, 2024

这个 PR 内容好多,不过 Vercel 部署似乎失败了,我用在线环境看下效果。

是的,pnpm build 没通过,我有些 detail 页面还没改完,有报错,稍等哈~

Comment on lines +47 to +51
<div className="">
<MemberCard className="sticky-top" style={{ top: '6.5rem' }} {...member} />
</div>
<div className="">
<Tabs className="">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="">
<MemberCard className="sticky-top" style={{ top: '6.5rem' }} {...member} />
</div>
<div className="">
<Tabs className="">
<MemberCard className="sticky-top" style={{ top: '6.5rem' }} {...member} />
<Tabs>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没写完

</Row>
</Container>
),
<div role='tabpanel'></div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是干嘛的?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没写完

Comment on lines +76 to +89
50: 'var(--mui-palette-grey-50)',
100: 'var(--mui-palette-grey-100)',
200: 'var(--mui-palette-grey-200)',
300: 'var(--mui-palette-grey-300)',
400: 'var(--mui-palette-grey-400)',
500: 'var(--mui-palette-grey-500)',
600: 'var(--mui-palette-grey-600)',
700: 'var(--mui-palette-grey-700)',
800: 'var(--mui-palette-grey-800)',
900: 'var(--mui-palette-grey-900)',
A100: 'var(--mui-palette-grey-A100)',
A200: 'var(--mui-palette-grey-A200)',
A400: 'var(--mui-palette-grey-A400)',
A700: 'var(--mui-palette-grey-A700)'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然是 JS 配置文件,类似大片有规律的配置直接用 [].map() 迭代出来吧。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你可以提 issue,我不会在这个 PR 改

[fix] type error of lifecycle method
[polish] review details
@Soecka Soecka requested a review from TechQuery October 15, 2024 14:47
pages/index.tsx Outdated
Comment on lines 31 to 28
new GitRepositoryModel('idea2app').getList({}, 1, 9),
new GitRepositoryModel('idea2app').getList({ relation: [] }, 1, 9),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无需变更

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型报错

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型报错

具体啥错?以前咋没有

Copy link
Contributor Author

@Soecka Soecka Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

以前配置的不严格,限制的插件规则更严格一些,next 关于插件配置文档不够清晰,他都是推荐用自己的
我翻插件官方文档配的https://typescript-eslint.io/getting-started/legacy-eslint-setup#additional-configs
我把这两行删了吧

'eslint:recommended',
-'plugin:@typescript-eslint/strict',
-'plugin:@typescript-eslint/stylistic'

Copy link
Contributor Author

@Soecka Soecka Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型“{}”的参数不能赋给类型“RepositoryFilter”的参数。
  类型 "{}" 中缺少属性 "relation",但类型 "RepositoryFilter" 中需要该属性。ts(2345)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型“{}”的参数不能赋给类型“RepositoryFilter”的参数。
  类型 "{}" 中缺少属性 "relation",但类型 "RepositoryFilter" 中需要该属性。ts(2345)

把上游库字段改成可选的就行了:https://github.com/idea2app/MobX-GitHub/blob/6cc83bcee84023d2116729b49e5b11fb1e5c8cbe/source/Repository.ts#L29-L31

[remove] ul with nav in MainNavigator
[fix] typescript eslint strict mode
@Soecka Soecka requested a review from TechQuery October 16, 2024 05:54
@TechQuery TechQuery changed the title dark mode [refactor] replace React Bootstrap with MUI to optimize UX Oct 16, 2024
[optimize] reduce Dependency size
@TechQuery TechQuery added the enhancement Some improvements label Oct 16, 2024
@TechQuery TechQuery self-assigned this Oct 16, 2024
@TechQuery TechQuery merged commit 144cbc7 into v3 Oct 16, 2024
1 check passed
@TechQuery TechQuery deleted the mui/darkmode branch October 16, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvements feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants