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

Add a commit and compare view #1026

Merged
merged 4 commits into from
Aug 26, 2024
Merged

Add a commit and compare view #1026

merged 4 commits into from
Aug 26, 2024

Conversation

ikhoon
Copy link
Contributor

@ikhoon ikhoon commented Aug 23, 2024

Motivation:

Central Dogma UI does not provide a commit view or changes view between revisions.

Modifications:

  • Remove a history tab in a file editor and add a commit view button instead.
    • The history tab didn't have a deep link for it.
    • As a result, we can't directly enter the history view from a URL
    • Addtionally, the orignal page wasn't preserved when we navigated pages back and forth.
  • Add history view pages on /app/projects/<proj>/repos/<repo>/commits.
  • Add a commit view page on `/app/projects//repos//commit/₩
  • Add a changes view page on /app/projects/<proj>/repos/<repo>/compare/<head-rev>/base/<base-rev>
  • Dependencies)
    • Add prismjs 1.29.0 for syntax highlights for the diff view.
    • Add react-diff-viewer-continued 3.4.0 for the beautiful diff UI.

Result:

You can now track changes using diff UI.

Motivation:

Central Dogma UI does not provide a commit view or changes view between
revisions.

Modifications:

- Remove a history tab in a file editor and add a commit view button
  instead.
  - The history tab didn't have a deep link for it.
  - As a result, we can't directly enter the history view from a URL
  - Addtionally, the orignal page wasn't preserved when we navigated
    pages back and forth.
- Add history view pages on `/app/projects/<proj>/repos/<repo>/commits`.
- Add a commit view page on
  `/app/projects/<proj>/repos/<repo>/commit/<revision>
- Add a changes view page on
  `/app/projects/<proj>/repos/<repo>/compare/<head-rev>/base/<base-rev>`
- Dependencies)
  - Add prismjs 1.29.0 for syntax highlights for the diff view.
  - Add react-diff-viewer-continued 3.4.0 for the beatiful diff UI.

Result:

You can now track changes using diff UI.
@ikhoon ikhoon added this to the 0.70.0 milestone Aug 23, 2024
@ikhoon
Copy link
Contributor Author

ikhoon commented Aug 23, 2024

  • History
    image
  • Changes
    image
  • Commit
    image

Copy link
Member

@minwoox minwoox left a comment

Choose a reason for hiding this comment

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

👍 👍 👍 👍 👍

Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@minwoox minwoox merged commit 906b1da into line:main Aug 26, 2024
10 checks passed
@ikhoon ikhoon deleted the file-revision branch August 30, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants