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

chore: release hac v0.2.0 #6

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 34 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

## [0.2.0] - 2024-06-20

### Bug Fixes

- Fixing resizing crashing when drawing hint
- Using chars().count() instead of len()
- Fixing broken tests

### Features

- Rendering request headers onscreen
- Selecting and moving around headers
- Deleting headers and help overlays
- Header forms editing and creation
- Sending headers through request
- Redesign of create request form
- Editing headers on the sidebar
- Creating directories on the sidebar
- Initial implementation of parent selector
- Deleting requests and headers
- Removing parent from a request
- Editing directories on the sidebar

### Refactor

- Separating body editor to request editor to implement headers
- Hints are now controlled by its own component

### Wip

- Headers pane rendering
- Header edit form without key handling

## [0.1.1] - 2024-06-03

### Bug Fixes
Expand All @@ -10,6 +43,7 @@

- Packaging hac as nix flake
- Adding how to try with nix to readme
- Release hac v0.1.1

### Refactor

Expand All @@ -29,49 +63,22 @@

### Bug Fixes

- Weird coloring of status bar
- Fixing delete backwards
- Fixing broken tests for tree traversal
- Fixing screen manager tests failing
- Only showing cursor when editing the uri

### Features

- Synchronization of requests to file system
- Properly syncing and allowing further edits
- Adding better comments througout the app
- Adding initial CLI interfacing
- Proper extension for collections
- Handling other http methods
- Allow for changing urls
- Correct handling of new collections
- Showing cursor on uri pane
- Displaying status time and size of requests
- Hiding body tab when request method has no body
- Displaying error messages on request
- Chunking error text to multiline
- Synchronization problems are now gone
- Empty state for responses
- Enabling dry run and better readme

### Miscellaneous Tasks

- Updated readme, licensing and getting project ready for use
- Adding contributing guidelines
- Pull request and issue templates
- Initial todos, have to do a lot more
- Renaming project to hac
- Setting up publishing to crates.io
- Setting packages metadata
- Renaming tui to client for publishing
- Release hac v0.1.0

### Refactor

- Changing schemas to collection naming

### Testing

- Testing ascii error art


10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resolver = "2"
name = "hac"

[workspace.package]
version = "0.1.0"
version = "0.2.0"

[workspace.dependencies]
hac-config = { path = "hac-config" }
Expand Down
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ lint:
# =================================== #

# uses convco to figure out the next version
new_version := "$(convco version --bump)"
new_version := "$(convco version --bump --minor)"

release:
git cliff -t "{{new_version}}" > CHANGELOG.md
Expand Down
2 changes: 1 addition & 1 deletion hac-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-cli"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
2 changes: 1 addition & 1 deletion hac-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-client"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
1 change: 0 additions & 1 deletion hac-client/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ impl<'app> App<'app> {
config: &'app hac_config::Config,
dry_run: bool,
) -> anyhow::Result<Self> {

let terminal = Terminal::new(CrosstermBackend::new(std::io::stdout()))?;
Ok(Self {
screen_manager: ScreenManager::new(
Expand Down
14 changes: 9 additions & 5 deletions hac-client/src/pages/collection_viewer/request_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'re> RequestEditor<'re> {
ReqEditorTabs::Body => self.body_editor.draw(frame, size)?,
ReqEditorTabs::Headers => self.headers_editor.draw(frame, size)?,
ReqEditorTabs::Query => UnderConstruction::new(self.colors).draw(frame, size)?,
ReqEditorTabs::Auth => self.auth_editor.draw(frame, size)?,
ReqEditorTabs::Auth => UnderConstruction::new(self.colors).draw(frame, size)?,
}

Ok(())
Expand Down Expand Up @@ -285,13 +285,17 @@ impl Eventful for RequestEditor<'_> {
},
ReqEditorTabs::Headers => match self.headers_editor.handle_key_event(key_event)? {
Some(HeadersEditorEvent::Quit) => return Ok(Some(RequestEditorEvent::Quit)),
Some(HeadersEditorEvent::RemoveSelection) => {
return Ok(Some(RequestEditorEvent::RemoveSelection))
}
None => {}
},
ReqEditorTabs::Query => {}
ReqEditorTabs::Auth => match self.auth_editor.handle_key_event(key_event)? {
Some(_) => todo!(),
None => {}
},
ReqEditorTabs::Auth => {
if (self.auth_editor.handle_key_event(key_event)?).is_some() {
todo!()
}
}
}

Ok(None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use crate::pages::{Eventful, Renderable};

#[derive(Debug)]
pub struct AuthEditor<'ae> {
colors: &'ae hac_colors::colors::Colors,
_colors: &'ae hac_colors::colors::Colors,
}

impl<'ae> AuthEditor<'ae> {
pub fn new(colors: &'ae hac_colors::colors::Colors) -> Self {
AuthEditor { colors }
AuthEditor { _colors: colors }
}
}

Expand All @@ -25,7 +25,7 @@ impl Renderable for AuthEditor<'_> {
impl Eventful for AuthEditor<'_> {
type Result = ();

fn handle_key_event(&mut self, key_event: KeyEvent) -> anyhow::Result<Option<Self::Result>> {
fn handle_key_event(&mut self, _key_event: KeyEvent) -> anyhow::Result<Option<Self::Result>> {
Ok(None)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct BodyEditor<'be> {
/// Only KeyAction::Complex are stored here as any other kind of key action can be acted upon
/// instantly
keymap_buffer: Option<KeyAction>,
collection_store: Rc<RefCell<CollectionStore>>,
_collection_store: Rc<RefCell<CollectionStore>>,
}

impl<'be> BodyEditor<'be> {
Expand All @@ -60,7 +60,7 @@ impl<'be> BodyEditor<'be> {
Self {
body,
tree,
collection_store,
_collection_store: collection_store,
styled_display,
cursor: Cursor::default(),
editor_mode: EditorMode::Normal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use super::headers_editor_edit_form::{HeadersEditorForm, HeadersEditorFormEvent}
#[derive(Debug)]
pub enum HeadersEditorEvent {
Quit,
RemoveSelection,
}

#[derive(Debug)]
Expand Down Expand Up @@ -438,6 +439,7 @@ impl Eventful for HeadersEditor<'_> {
.borrow_mut()
.push_overlay(CollectionViewerOverlay::HeadersForm(self.selected_row));
}
KeyCode::Esc => return Ok(Some(HeadersEditorEvent::RemoveSelection)),
KeyCode::Char('n') => {
let idx = headers.len();
headers.push(HeaderMap {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use hac_core::collection::types::*;

use crate::ascii::LOGO_ASCII;
use crate::pages::collection_viewer::collection_store::CollectionStore;
use crate::pages::input::Input;
Expand Down
2 changes: 1 addition & 1 deletion hac-colors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-colors"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
2 changes: 1 addition & 1 deletion hac-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-config"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
2 changes: 1 addition & 1 deletion hac-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-core"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
1 change: 0 additions & 1 deletion hac-core/src/collection/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ where
CollectionError::Unknown(msg)
}
}

Loading