Skip to content

Commit

Permalink
Collectz to Orna change
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Feb 15, 2024
1 parent 2394dd5 commit 9d30794
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 30 deletions.
4 changes: 2 additions & 2 deletions e2e/profiles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ test.describe("Given a Profile link", async () => {

await expect(v1Profile.options).toHaveText([
"Buttrfly",
"Collectz",
"Hey",
"LensFrens",
"Lensta",
"Orna",
"Riff",
"Soclly",
"Tape",
Expand Down Expand Up @@ -151,9 +151,9 @@ test.describe("Given a Profile link with `by` attribution param", async () => {
await expect(v1Profile.options).toHaveText([
"Hey",
"Buttrfly",
"Collectz",
"LensFrens",
"Lensta",
"Orna",
"Riff",
"Soclly",
"Tape",
Expand Down
8 changes: 1 addition & 7 deletions e2e/publications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ test.describe("Given a Publication link", async () => {
test("Then it should show relevant app options", async ({ imagePost }) => {
await imagePost.open();

await expect(imagePost.options).toHaveText([
"Buttrfly",
"Collectz",
"Hey",
"Lensta",
"Soclly",
]);
await expect(imagePost.options).toHaveText(["Buttrfly", "Hey", "Lensta", "Orna", "Soclly"]);
});
});
});
Expand Down
21 changes: 0 additions & 21 deletions manifests/collectz.json

This file was deleted.

21 changes: 21 additions & 0 deletions manifests/orna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"appId": "orna.art",
"name": "Orna",
"description": "Lens collects, people and communities",
"platform": "web",
"icon": {
"url": "https://bitcloutweb.azureedge.net/public/lens/images/Icon_round250OrnaFullTiny.png",
"background": "#000"
},
"routes": {
"home": "https://orna.art/",
"profile": {
"url": "https://orna.art/u/:handle"
},
"publication": {
"url": "https://orna.art/c/:id",
"supports": ["IMAGE", "AUDIO", "VIDEO", "THREED"]
}
},
"twitter": "nftz_me"
}
24 changes: 24 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,30 @@ const nextConfig = {
destination: "/u/:handle?by=tape",
permanent: false,
},
{
source: "/p/:id",
has: [
{
type: "query",
key: "by",
value: "collectz",
},
],
destination: "/p/:id?by=orna.art",
permanent: false,
},
{
source: "/u/:handle",
has: [
{
type: "query",
key: "by",
value: "collectz",
},
],
destination: "/u/:handle?by=orna.art",
permanent: false,
},
// v1 to v2 handle redirect
{
source: "/u/:handle",
Expand Down

0 comments on commit 9d30794

Please sign in to comment.