Skip to content

Commit

Permalink
chore: Change the location of the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Blu-J committed Sep 16, 2024
1 parent 80edb73 commit bcc5054
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
18 changes: 0 additions & 18 deletions core/startos/src/version/v0_3_6_alpha_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ use super::v0_3_5::V0_3_0_COMPAT;
use super::{v0_3_5_2, VersionT};
use crate::db::model::Database;
use crate::prelude::*;
use crate::{
db::model::Database,
notifications::{notify, NotificationLevel},
};

lazy_static::lazy_static! {
static ref V0_3_6_alpha_0: exver::Version = exver::Version::new(
Expand All @@ -31,20 +27,6 @@ impl VersionT for Version {
&V0_3_0_COMPAT
}
async fn up(&self, db: &TypedPatchDb<Database>) -> Result<(), Error> {
let message_update = include_str!("update_details/v0_3_6.md").to_string();

db.mutate(|db| {
notify(
db,
None,
NotificationLevel::Success,
"Welcome to StartOS 0.3.6!".to_string(),
"Click \"View Details\" to learn all about the new version".to_string(),
message_update,
)?;
Ok(())
})
.await?;
Err(Error::new(eyre!("unimplemented"), ErrorKind::Unknown))
}
async fn down(&self, _db: &TypedPatchDb<Database>) -> Result<(), Error> {
Expand Down
17 changes: 16 additions & 1 deletion core/startos/src/version/v0_3_6_alpha_7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use exver::{PreReleaseSegment, VersionRange};
use super::v0_3_5::V0_3_0_COMPAT;
use super::{v0_3_6_alpha_6, VersionT};
use crate::db::model::Database;
use crate::notifications::{notify, NotificationLevel};
use crate::prelude::*;

lazy_static::lazy_static! {
Expand All @@ -26,7 +27,21 @@ impl VersionT for Version {
fn compat(&self) -> &'static VersionRange {
&V0_3_0_COMPAT
}
async fn up(&self, _db: &TypedPatchDb<Database>) -> Result<(), Error> {
async fn up(&self, db: &TypedPatchDb<Database>) -> Result<(), Error> {
let message_update = include_str!("update_details/v0_3_6.md").to_string();

db.mutate(|db| {
notify(
db,
None,
NotificationLevel::Success,
"Welcome to StartOS 0.3.6!".to_string(),
"Click \"View Details\" to learn all about the new version".to_string(),
message_update,
)?;
Ok(())
})
.await?;
Ok(())
}
async fn down(&self, _db: &TypedPatchDb<Database>) -> Result<(), Error> {
Expand Down
2 changes: 2 additions & 0 deletions web/projects/ui/src/app/services/api/api.fixures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { configBuilderToSpec } from 'src/app/util/configBuilderToSpec'
import { T, CB } from '@start9labs/start-sdk'
import { GetPackagesRes } from '@start9labs/marketplace'

import markdown from 'raw-loader!../../../../../shared/assets/markdown/md-sample.md'

const mockBlake3Commitment: T.Blake3Commitment = {
hash: 'fakehash',
size: 0,
Expand Down

0 comments on commit bcc5054

Please sign in to comment.