Skip to content

Conversation

@hwakabh
Copy link
Owner

@hwakabh hwakabh commented Dec 1, 2024

Issue/PR link

closes: #449

What does this PR do?

Describe what changes you make in your branch:

  • unified time formats with yyyy/mm in About.vue

Screenshot 2024-12-01 at 22 59 04

(Optional) Additional Contexts

Describe additional information for reviewers (i.e. What does not included)

  • e2e testings are not included in this PR, since this requires merge into main to confirm changes would be applied

Summary by CodeRabbit

  • Improvements
    • Enhanced readability of career history entries by changing date format to a slash-separated style and adding "at" before company names.
  • Bug Fixes
    • Maintained error handling and data fetching functionality for education and publications without introducing new issues.

@coderabbitai
Copy link

coderabbitai bot commented Dec 1, 2024

Walkthrough

The changes in the About.vue file focus on updating the formatting of career history entries. The date format has been changed from a hyphenated style to a slash-separated style, and the word "at" has been added before company names in the career history list. The overall structure, data fetching logic, and error handling remain unchanged, ensuring that the functionality of displaying books, movies, education, and publications is preserved.

Changes

File Change Summary
web-frontend/src/pages/About.vue Updated date format in career history from yyyy-mm to yyyy/mm and added "at" before company names.

Assessment against linked issues

Objective Addressed Explanation
Unify time format across the site (#449)

Possibly related PRs

Suggested labels

app(ui)


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added bugs Something isn't working app(ui) Issue or PR related to frontend UI labels Dec 1, 2024
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.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (1)
web-frontend/src/pages/About.vue (1)

Line range hint 1-196: Consider comprehensive date format unification

While the career history section has been updated to use yyyy/mm format, this PR could be more comprehensive by including similar updates to education and publication dates. This would fully achieve the goal of unified time formats across the site as mentioned in issue #449.

Additionally, consider adding end-to-end tests to verify date format consistency once merged into the main branch, as mentioned in the PR description.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between aea2ff7 and 136f30f.

📒 Files selected for processing (1)
  • web-frontend/src/pages/About.vue (1 hunks)
🔇 Additional comments (2)
web-frontend/src/pages/About.vue (2)

Line range hint 171-175: Verify education dates format consistency

While career history dates have been updated to yyyy/mm format, the education section might need similar treatment. The current implementation directly renders dates from the API response without formatting.

Consider using a date formatting function to ensure consistency:

- <div> {{ e.start }} - {{ e.end }} : {{ e.title }} </div>
+ <div> {{ formatDate(e.start) }} - {{ formatDate(e.end) }} : {{ e.title }} </div>

Add this to your script setup:

const formatDate = (date) => {
  if (!date) return '';
  const d = new Date(date);
  return `${d.getFullYear()}/${String(d.getMonth() + 1).padStart(2, '0')}`;
};

Line range hint 184-187: Standardize publication dates format

For consistency with the new yyyy/mm format, publication dates should also be standardized.

Update the template to use the same date formatting function suggested for education dates:

- <li> Presented at {{ pb.date }}, <a :href="pb.link" target="_target">Download Link(pdf)</a></li>
+ <li> Presented at {{ formatDate(pb.date) }}, <a :href="pb.link" target="_target">Download Link(pdf)</a></li>

Comment on lines +113 to +115
<li>2024/10 - Present: Resident Solutions Engineer at <a href="https://www.hashicorp.com/" target="_blank" rel="noopener noreferrer">HashiCorp</a></li>
<li>2021/01 - 2023/12: Chief Technology Officer at <a href="https://glocalist.co/ja-JP/" target="_blank" rel="noopener noreferrer">Glocalist</a></li>
<li>2019/06 - 2024/10: Telco Solutions Architect at <a href="https://www.vmware.com" target="_blank" rel="noopener noreferrer">VMware</a><br>(merged by Broadcom)</li>
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix date inconsistency in career history

There appears to be an overlap in the timeline:

  • HashiCorp position starts from 2024/10
  • VMware position ends in 2024/10

This creates ambiguity about which role is current. Please clarify the exact dates to avoid confusion.

@hwakabh hwakabh merged commit 4016f4e into main Dec 1, 2024
5 checks passed
@hwakabh hwakabh deleted the fix/449/timeformats branch December 1, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app(ui) Issue or PR related to frontend UI bugs Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ui): unify time format

2 participants