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: add contribute tab #3102

Merged
merged 11 commits into from
May 20, 2024
Merged

feat: add contribute tab #3102

merged 11 commits into from
May 20, 2024

Conversation

meelrossi
Copy link
Contributor

@meelrossi meelrossi commented May 13, 2024

image

Copy link

vercel bot commented May 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2024 9:00pm

@coveralls
Copy link

coveralls commented May 13, 2024

Pull Request Test Coverage Report for Build 9164902267

Details

  • 116 of 146 (79.45%) changed or added relevant lines in 17 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.4%) to 47.421%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib/api/worlds.ts 9 10 90.0%
src/modules/ens/sagas.ts 21 22 95.45%
src/modules/ens/selectors.ts 3 4 75.0%
src/components/WorldListPage/hooks.ts 0 2 0.0%
src/components/WorldListPage/utils.tsx 10 12 83.33%
src/components/WorldListPage/WorldContributorTab/WorldContributorTab.tsx 24 27 88.89%
src/lib/api/ens.ts 7 14 50.0%
src/lib/api/marketplace.ts 1 14 7.14%
Files with Coverage Reduction New Missed Lines %
src/lib/api/marketplace.ts 1 20.45%
Totals Coverage Status
Change from base Build 9128874990: 0.4%
Covered Lines: 5513
Relevant Lines: 10625

💛 - Coveralls

Copy link
Contributor

@LautaroPetaccio LautaroPetaccio left a comment

Choose a reason for hiding this comment

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

Looks great! I've left some comments to check

src/modules/ens/selectors.ts Show resolved Hide resolved
src/lib/api/worlds.ts Show resolved Hide resolved
src/components/WorldListPage/utils.tsx Outdated Show resolved Hide resolved
src/components/WorldListPage/NameTabs/NameTabs.spec.tsx Outdated Show resolved Hide resolved
src/modules/ens/sagas.ts Show resolved Hide resolved
src/modules/ens/sagas.ts Show resolved Hide resolved
src/modules/ens/sagas.ts Outdated Show resolved Hide resolved
src/modules/ens/reducer.ts Show resolved Hide resolved

if (!items.length) {
return (
<Empty className="empty-names-container" height={500}>
Copy link
Contributor

Choose a reason for hiding this comment

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

This component has classes, but it doesn't have a module.css associated with it, is it getting styled by a component which is up the chain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes its getting it from the parent component

expect(screen.getByRole('button', { name: t('worlds_list_page.table.unpublish_scene') })).toBeInTheDocument()
})

describe('when unpublish button is clicked', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that the article is missing, would you mind adding it?

Suggested change
describe('when unpublish button is clicked', () => {
describe('when the unpublish button is clicked', () => {

The same goes for other describes and its in the file.

export default function WorldUrl({ ens, deploymentsByWorlds }: Props) {
const url = getExplorerUrl(ens.subdomain)
return isWorldDeployed(deploymentsByWorlds, ens) ? (
<div className="world-url">
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about styling this component with its own WorldUrl.module.css file?

return render(<WorldUrl ens={ens} deploymentsByWorlds={{}} {...props} />)
}

describe('when world has a scene deployed', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that the article is missing, would you mind adding it?

Suggested change
describe('when world has a scene deployed', () => {
describe('when a world has a scene deployed', () => {

The same goes for other its and describes in the file.


describe('when handling fetch contributable names actions', () => {
describe('when handling fetch contributable names request action', () => {
it('should reset contributable names error', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that the article is missing here, would you mind adding it?

Suggested change
it('should reset contributable names error', () => {
it('should reset the contributable names error', () => {

The same goes for other its and describes in the file.

)
})

it('should add contributable names to the state', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('should add contributable names to the state', () => {
it('should remove the loading action from the state', () => {

})
})

describe('when using getContributableNamesError selector', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that there are some articles missing, would you mind adding them?

Suggested change
describe('when using getContributableNamesError selector', () => {
describe('when using the getContributableNamesError selector', () => {

The same goes for other its and describes in the file.

})

const [ownerByNameDomain, ownerByEnsDomain]: [Record<string, string>, Record<string, string>] = yield all([
call([marketplace, 'fetchENSOwnerByDomain'], nameDomains),
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about exercising the failure of any of these requests in a test?

Copy link
Contributor

@LautaroPetaccio LautaroPetaccio left a comment

Choose a reason for hiding this comment

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

🚀

@meelrossi meelrossi merged commit f1266d7 into master May 20, 2024
7 checks passed
@meelrossi meelrossi deleted the feat/collaborator-tab branch May 20, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants