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

UI: replace Obscuro logos with Ten #1649

Conversation

Jennievon
Copy link
Contributor

Why this change is needed

Please provide a description and a link to the underlying ticket

https://github.com/ten-protocol/ten-internal/issues/2426

What changes were made as part of this PR

Please provide a high level list of the changes made

Update logos for Tenscan and Ten Gateway

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

@Jennievon Jennievon added the easy Bug which is easy to fix label Nov 16, 2023
Copy link

coderabbitai bot commented Nov 16, 2023

The existing content is already well-structured and aligns with the provided instructions. Therefore, no modifications are necessary.


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

@Jennievon Jennievon force-pushed the jennifer/2402-updated-uis-with-placeholder-logo-and-create-as-pr branch from 460fefd to 8c6343f Compare November 16, 2023 12:38
@Jennievon Jennievon requested review from 0xjba and CaisManai November 16, 2023 12:39
@Jennievon Jennievon self-assigned this Nov 16, 2023
Copy link
Contributor

@0xjba 0xjba left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 35b5ce4 and 8c6343f.
Files ignored due to filter (4)
  • tools/obscuroscan_v2/frontend/src/assets/imgs/obscuro.svg
  • tools/obscuroscan_v2/frontend/src/assets/imgs/ten.svg
  • tools/walletextension/api/staticOG/obscuro.svg
  • tools/walletextension/api/staticOG/ten.svg
Files selected for processing (3)
  • tools/obscuroscan_v2/frontend/src/views/NavbarView.vue (2 hunks)
  • tools/walletextension/api/staticOG/index.html (1 hunks)
  • tools/walletextension/api/staticOG/style.css (1 hunks)
Files skipped from review due to trivial changes (1)
  • tools/walletextension/api/staticOG/index.html
Additional comments: 1
tools/walletextension/api/staticOG/style.css (1)
  • 19-26: The changes to the .logo class seem appropriate for the rebranding effort, ensuring the logo fits well within the designated space and maintains its aspect ratio. The padding ensures that the logo has some space around it, which can be important for design aesthetics. However, it's important to verify that the fixed width and height work well across all expected viewport sizes and devices. If responsiveness is a concern, consider using relative units like percentages or viewport units for width and height, and ensure that the logo scales nicely on different screen sizes.

Comment on lines 2 to 66
<RouterLink to="/personal"> <el-button link class="paddedTop">Personal</el-button></RouterLink>
<el-button link class="paddedTop">
<el-dropdown>
<span class="el-dropdown-link">
Blockchain
</span>
<template #dropdown>
<el-dropdown-menu>
<RouterLink to="/transactions"> <el-dropdown-item>Transactions</el-dropdown-item></RouterLink>
<RouterLink to="/batches"> <el-dropdown-item>Batches</el-dropdown-item></RouterLink>
<RouterLink to="/blocks"> <el-dropdown-item>Blocks</el-dropdown-item></RouterLink>
</el-dropdown-menu>
</template>
</el-dropdown>
</el-button>
<el-button link class="paddedTop" style="margin: 0px">
<el-dropdown>
<span class="el-dropdown-link">
Resources
</span>
<template #dropdown>
<el-dropdown-menu>
<RouterLink to="/decrypt"> <el-dropdown-item>Decrypt</el-dropdown-item></RouterLink>
<RouterLink to="/verified"> <el-dropdown-item>Verified Data</el-dropdown-item></RouterLink>
</el-dropdown-menu>
</template>
</el-dropdown>
</el-button>
</el-radio-group>
</nav>
</el-col>
<el-col :span="5" >
<meta-mask-connect-button />
</el-col>
<!-- <el-col :span="4" >-->
<!-- <search-bar-item />-->
<!-- </el-col>-->
</el-row>
<el-row justify="space-around">
<el-col :span="2">
<img
src="@/assets/imgs/ten.svg"
alt="obscu.ro"
class="header-image"
style="max-height: 5vh"
/>
</el-col>
<el-col :span="10" :offset="7">
<nav class="nav-bar">
<el-radio-group size="default">
<RouterLink to="/"> <el-button link class="paddedTop"> Home</el-button></RouterLink>
<RouterLink to="/personal">
<el-button link class="paddedTop">Personal</el-button></RouterLink
>
<el-button link class="paddedTop">
<el-dropdown>
<span class="el-dropdown-link"> Blockchain </span>
<template #dropdown>
<el-dropdown-menu>
<RouterLink to="/transactions">
<el-dropdown-item>Transactions</el-dropdown-item></RouterLink
>
<RouterLink to="/batches">
<el-dropdown-item>Batches</el-dropdown-item></RouterLink
>
<RouterLink to="/blocks">
<el-dropdown-item>Blocks</el-dropdown-item></RouterLink
>
</el-dropdown-menu>
</template>
</el-dropdown>
</el-button>
<el-button link class="paddedTop" style="margin: 0px">
<el-dropdown>
<span class="el-dropdown-link"> Resources </span>
<template #dropdown>
<el-dropdown-menu>
<RouterLink to="/decrypt">
<el-dropdown-item>Decrypt</el-dropdown-item></RouterLink
>
<RouterLink to="/verified">
<el-dropdown-item>Verified Data</el-dropdown-item></RouterLink
>
</el-dropdown-menu>
</template>
</el-dropdown>
</el-button>
</el-radio-group>
</nav>
</el-col>
<el-col :span="5">
<meta-mask-connect-button />
</el-col>
<!-- <el-col :span="4" >-->
<!-- <search-bar-item />-->
<!-- </el-col>-->
</el-row>
</el-main>
</el-container>
</header>
Copy link

Choose a reason for hiding this comment

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

The restructuring of the HTML template and the replacement of the logo image source from "obscuro.svg" to "ten.svg" align with the rebranding requirements. The use of RouterLink for navigation is a Vue.js best practice for SPA routing, which should provide better performance and user experience by avoiding full page reloads. The inline styles, such as style="max-height: 5vh" on the logo image and style="margin: 0px" on the el-button, could be moved to the scoped CSS for better maintainability and to keep the template cleaner.

Comment on lines 89 to 91
.paddedTop {
padding: 10px;
}
Copy link

Choose a reason for hiding this comment

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

The .paddedTop class has been updated to include padding, which should ensure consistent spacing for elements with this class. However, the class name .paddedTop suggests that it only adds padding to the top, but the CSS rule applies padding to all sides. Consider renaming the class to reflect its purpose more accurately, such as .padded or .padded-all, to avoid confusion.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 8c6343f and 49a7468.
Files ignored due to filter (2)
  • tools/obscuroscan_v2/frontend/public/favicon.ico
  • tools/walletextension/api/staticOG/favicon.ico
Files selected for processing (2)
  • tools/obscuroscan_v2/frontend/index.html (1 hunks)
  • tools/walletextension/api/staticOG/index.html (2 hunks)
Files skipped from review due to trivial changes (2)
  • tools/obscuroscan_v2/frontend/index.html
  • tools/walletextension/api/staticOG/index.html

@Jennievon Jennievon merged commit bb3a2bd into main Nov 16, 2023
1 of 2 checks passed
@Jennievon Jennievon deleted the jennifer/2402-updated-uis-with-placeholder-logo-and-create-as-pr branch November 16, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Bug which is easy to fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants